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?
See this thread and this answer: this error could be the result of multiple gcc versions alternatives.
See "What exactly does update-alternatives do?"
Clear them out:
$ sudo update-alternatives --remove-all gcc
$ sudo update-alternatives --remove-all g++
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++
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 ofbinutilsfor agdbpatch.
Forcing it to reinstallbinutilsresolved the issue. It makes no sense, but it worked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With