gpt4 book ai didi

linux - 无法使用 CONFIG_CC_STACKPROTECTOR_STRONG : -fstack-protector-strong not supported by compiler

转载 作者:太空狗 更新时间:2023-10-29 11:17:38 26 4
gpt4 key购买 nike

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

它给了我

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

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

最佳答案

参见 this threadthis answer : 此错误可能是多个 gcc 版本替代品的结果。
参见“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 月):doug65536提及 in the comments另一种情况:

I found a solution to the issue with my nvidia driver package.
I had installed a custom build of binutils for a gdb patch.
Forcing it to reinstall binutils resolved the issue. It makes no sense, but it worked.

关于linux - 无法使用 CONFIG_CC_STACKPROTECTOR_STRONG : -fstack-protector-strong not supported by compiler,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40772003/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com