无法使用 CONFIG_CC_STACKPROTECTOR_STRONG:编译器不支持 -fstack-protector-strong

2024-01-12

我在我的笔记本电脑上运行 Ubuntu 16.10;
我最近从以下网站下载了 Linux 内核git,但是当我尝试从终端使用 make 命令编译它时。

它正在给我

"error:Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: 
-fstack-protector-strong not supported by compiler" 

我应该怎么做才能解决这个问题?


See 这个线程 https://github.com/FreedomBen/rtl8188ce-linux-driver/issues/92 and 这个答案 https://askubuntu.com/questions/26498/choose-gcc-and-g-version:此错误可能是多个 gcc 版本替代的结果。
See "到底是做什么的update-alternatives do? https://askubuntu.com/questions/233190/what-exactly-does-update-alternatives-do"

清除它们:

$ sudo update-alternatives --remove-all gcc
$ sudo update-alternatives --remove-all g++

然后重新安装它们,并确保您的 gcc 和 g++ 引用相同的版本。

sudo update-alternatives --config gcc
sudo update-alternatives --config g++

注(2017 年 3 月):道格65536 https://stackoverflow.com/users/1127972/doug65536提及在评论中 https://stackoverflow.com/questions/40772003/cannot-use-config-cc-stackprotector-strong-fstack-protector-strong-not-support/40772208?noredirect=1#comment72432623_40772208另一个案例:

我找到了解决我的 nvidia 驱动程序包问题的方法。
我已经安装了一个自定义版本binutils for a gdb patch.
强制重新安装binutils解决了问题。这没有任何意义,但它确实有效。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

无法使用 CONFIG_CC_STACKPROTECTOR_STRONG:编译器不支持 -fstack-protector-strong 的相关文章

随机推荐