不能使用CONFIG_CC_STACKPROTECTOR_STRONG:-fstack-protector-strong不受编译器支持 [英] Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler

查看:5711
本文介绍了不能使用CONFIG_CC_STACKPROTECTOR_STRONG:-fstack-protector-strong不受编译器支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的笔记本电脑上运行Ubuntu 16.10;

我最近从 git 下载了Linux内核,但是当我试图编译它时从终端发出make命令。

I'm running Ubuntu 16.10 in my laptop;
I have recently downloaded Linux kernel from git, but when I am trying to compile it with a make command from the terminal.

这是给我的

It is giving me

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

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

What should I do to resolve this problem?

推荐答案

this thread and 这个答案 a>:这个错误可能是多个gcc版本替代品的结果。

请参阅

See this thread and this answer: this error could be the result of multiple gcc versions alternatives.
See "What exactly does update-alternatives do?"

清除它们: / p>

Clear them out:

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

然后重新安装它们,并确保您的gcc和g ++引用t

Then re-install them, and make sure your gcc and g++ reference the same version.

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






注意(2017年3月):


Note (March 2017): doug65536 mentions in the comments another case:


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.

这篇关于不能使用CONFIG_CC_STACKPROTECTOR_STRONG:-fstack-protector-strong不受编译器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆