genkernel all:コンパイラはfstack-protectorをサポートしません。

genkernel all:コンパイラはfstack-protectorをサポートしません。

私はGentooをインストールしたことがありません。 linux-4.9.16-gentooのgccに問題があります。

livecd / # genkerel all
...
Cannot use config_cc_stackprotector_regular: -fstack-protector not supported by compiler
make: *** [Makefile:1066: prepare-compiler-check] Error 1
Failed to compile "prepare" target...

livecd / # ls -l /usr/src/linux
... linux-4.9.16-gentoo
livecd / # gcc --version
gcc (Gentoo 5.4.0-r3 p1.3, pie-0.6.5) 5.4.0

livecd / # cat /etc/portages/make.conf
...
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
USE="bindlist -gnome -kde -minimal -qt4"

livecd / # gcc-config -l
[1] i686-pc-linux-gnu-5.4.0

結果なしでgccを4.9.4に変更しました。

ここhttps://www.gentoo.org/support/news-items/2014-06-15-gcc48_ssp.html GCC 4.8.3 のデフォルト値は -fstack-protector です。どうすれば修正できますか?

ベストアンサー1

これは働きます:

genkernel --menuconfig all

おすすめ記事