Package Details: dosbox-gcc 14.2.0-1

Git Clone URL: https://aur.archlinux.org/dosbox-gcc.git (read-only, click to copy)
Package Base: dosbox-gcc
Description: djgpp cross-compiler for the dosbox environment
Upstream URL: http://gcc.gnu.org
Licenses: GPL, custom, LGPL, FDL
Groups: djgpp
Submitter: janezz55
Maintainer: janezz55
Last Packager: janezz55
Votes: 1
Popularity: 0.000000
First Submitted: 2017-09-04 18:37 (UTC)
Last Updated: 2024-08-29 05:12 (UTC)

Latest Comments

filand commented on 2025-11-18 18:45 (UTC)

Same issue here. This is due to the -Werror=format-security setting in the /etc/makepkg.conf, which prevents gcc from building. Usually it's a good idea to activate that option, but gcc mentions in the documentation, that it can lead to problems building that. There are two possible workarounds for that:

  1. Temporarily remove -Werror=format-security from the CXXFLAGS in /etc/makepkg.conf
  2. Add CXXFLAGS="$CXXFLAGS -Wno-format-security" to the build() step in the PKGBUILD file right after accordant CPPFLAGS line.

jagh122 commented on 2025-09-15 20:38 (UTC)

Has anyone successfully build this package?

All I get is this error:

../../../gcc-14.2.0/libcpp/expr.cc: In function ‘unsigned int cpp_classify_number(cpp_reader*, const cpp_token*, const char**, location_t)’:
../../../gcc-14.2.0/libcpp/expr.cc:842:35: error: format not a string literal and no format arguments [-Werror=format-security]
  842 |             cpp_warning_with_line (pfile, CPP_W_LONG_LONG, virtual_location,
      |             ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  843 |                                    0, message);
      |                                    ~~~~~~~~~~~
../../../gcc-14.2.0/libcpp/expr.cc:845:38: error: format not a string literal and no format arguments [-Werror=format-security]
  845 |             cpp_pedwarning_with_line (pfile, CPP_W_LONG_LONG,
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
  846 |                                       virtual_location, 0, message);
      |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-14.2.0/libcpp/expr.cc:855:33: error: format not a string literal and no format arguments [-Werror=format-security]
  855 |           cpp_warning_with_line (pfile, CPP_W_SIZE_T_LITERALS,
      |           ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  856 |                                  virtual_location, 0, message);
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-14.2.0/libcpp/expr.cc:867:42: error: format not a string literal and no format arguments [-Werror=format-security]
  867 |                 cpp_pedwarning_with_line (pfile, CPP_W_C11_C23_COMPAT,
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  868 |                                           virtual_location, 0, message);
      |                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-14.2.0/libcpp/expr.cc:870:39: error: format not a string literal and no format arguments [-Werror=format-security]
  870 |                 cpp_warning_with_line (pfile, CPP_W_C11_C23_COMPAT,
      |                 ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  871 |                                        virtual_location, 0, message);
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../gcc-14.2.0/libcpp/expr.cc:877:35: error: format not a string literal and no format arguments [-Werror=format-security]
  877 |               cpp_error_with_line (pfile, CPP_DL_PEDWARN, virtual_location, 0,
      |               ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  878 |                                    message);

hppyromz commented on 2019-09-06 07:28 (UTC)

Thank You for sharing this https://www.mariankeyesbooks.com/