I get stuck in a loop during build with these error messages:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
| ^~~~~~~
g++ -std=c++11 -fno-PIE -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wno-format -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I/tmp/makepkg/gcc-git/src/gcc/gcc -I/tmp/makepkg/gcc-git/src/gcc/gcc/. -I/tmp/makepkg/gcc-git/src/gcc/gcc/../include -I/tmp/makepkg/gcc-git/src/gcc/gcc/../libcpp/include -I/tmp/makepkg/gcc-git/src/gcc/gcc/../libcody -I/tmp/makepkg/gcc-git/src/gcc/gcc/../libdecnumber -I/tmp/makepkg/gcc-git/src/gcc/gcc/../libdecnumber/bid -I../libdecnumber -I/tmp/makepkg/gcc-git/src/gcc/gcc/../libbacktrace -I/tmp/makepkg/gcc-git/src/gcc-build/./isl/include -I/tmp/makepkg/gcc-git/src/gcc/isl/include -D_FORTIFY_SOURCE=2 -o tree-ssa-sink.o -MT tree-ssa-sink.o -MMD -MP -MF ./.deps/tree-ssa-sink.TPo /tmp/makepkg/gcc-git/src/gcc/gcc/tree-ssa-sink.c
In file included from /usr/include/bits/libc-header-start.h:33,
from /usr/include/stdio.h:27,
from /tmp/makepkg/gcc-git/src/gcc/gcc/system.h:46,
from /tmp/makepkg/gcc-git/src/gcc/gcc/tree-ssa-sink.c:22:
/usr/include/features.h:397:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
397 | # warning _FORTIFY_SOURCE requires compiling with optimization (-O)
| ^~~~~~~
(repeats)
Pinned Comments
DAC324 commented on 2021-09-17 08:04 (UTC)
In addition to the jamespharvey20's sticky comment: The current GCC 12 versions are labelled "Experimental" for a reason. Development is ongoing, and there are still significant bugs. Hence, it is not recommended to use GCC 12 as a daily driver or on production systems.
At the moment, it is not even possible to build a working Linux kernel with GCC 12, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941 .
jamespharvey20 commented on 2017-02-15 04:30 (UTC) (edited on 2017-02-15 11:01 (UTC) by jamespharvey20)