@japhir and all: If you get
warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O)
there are two possibilities to get rid of that:
1) amend this package's PKGBUILD
after the definitions of CFLAGS
and CXXFLAGS
by the following line:
CPPFLAGS+=" -O2"
OR
2) edit your /etc/makepkg.conf
, and change the CPPFLAGS
line as follows:
CPPFLAGS="-D_FORTIFY_SOURCE=2 -O2"
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)