Skip to content

Instantly share code, notes, and snippets.

@vincenzopalazzo
Created October 4, 2023 22:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vincenzopalazzo/e7612cc50a07a0ddaf21cdf6a772b35e to your computer and use it in GitHub Desktop.
Save vincenzopalazzo/e7612cc50a07a0ddaf21cdf6a772b35e to your computer and use it in GitHub Desktop.
test -f config.h || (rm -f stamp-h1 && make stamp-h1)
g++ -std=c++11 -I../../../../gittea/open-source/gcc/libcpp -I. -I../../../../gittea/open-source/gcc/libcpp/../include -I../../../../gittea/open-source/gcc/libcpp/include -g -O2 -W -Wall -Wno-narrowing -Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long -fno-exceptions -fno-rtti -I../../../../gittea/open-source/gcc/libcpp -I. -I../../../../gittea/open-source/gcc/libcpp/../include -I../../../../gittea/open-source/gcc/libcpp/include -c -o expr.o -MT expr.o -MMD -MP -MF .deps/expr.Tpo ../../../../gittea/open-source/gcc/libcpp/expr.cc
../../../../gittea/open-source/gcc/libcpp/expr.cc: In function 'unsigned int cpp_classify_number(cpp_reader*, const cpp_token*, const char**, location_t)':
../../../../gittea/open-source/gcc/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);
| ~~~~~~~~~~~
../../../../gittea/open-source/gcc/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);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../gittea/open-source/gcc/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);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../gittea/open-source/gcc/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_C2X_COMPAT,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
868 | virtual_location, 0, message);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../gittea/open-source/gcc/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_C2X_COMPAT,
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
871 | virtual_location, 0, message);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../../gittea/open-source/gcc/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);
| ~~~~~~~~
cc1plus: some warnings being treated as errors
make[3]: *** [Makefile:227: expr.o] Error 1
make[3]: Leaving directory '/home/vincent/build-dir/gcc/build-x86_64-pc-linux-gnu/libcpp'
make[2]: *** [Makefile:3146: all-build-libcpp] Error 2
make[2]: Leaving directory '/home/vincent/build-dir/gcc'
make[1]: *** [Makefile:25911: stage1-bubble] Error 2
make[1]: Leaving directory '/home/vincent/build-dir/gcc'
make: *** [Makefile:1090: all] Error 2
[vincent@vincenzopalazzo-arch-dev gcc]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment