LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   make can not pass, why? (https://www.linuxquestions.org/questions/linux-kernel-70/make-can-not-pass-why-4175635615/)

Yufei He 08-03-2018 02:02 PM

make can not pass, why?
 
yufei@Yufei-LMINT ~/mykernel/hello world $ make
make -C /lib/modules/4.4.0-53-generic/build M=/home/yufei/mykernel/hello world modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-53-generic'
arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support
Makefile:691: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[1]: *** No rule to make target 'world'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-53-generic'
makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

Ser Olmy 08-03-2018 05:20 PM

Your .config file contains two settings that are not supported by your compiler and your binutils package respectively.

As for the compiler, either upgrade to a later version of gcc that supports -fstack-protector-strong, or disable CONFIG_CC_STACKPROTECTOR_STRONG. Perhaps CONFIG_CC_STACKPROTECTOR_REGULAR will work.

Same goes for the X86_X32 issue (32-bit ABI support on x86_64 kernels); either upgrade the binutils package or disable the kernel setting.

AwesomeMachine 08-06-2018 12:58 AM

What exactly are you trying to compile? A kernel? Which version of gcc are you using? Also, you need to put the full path for 'hello world modules' in quotes, or the shell will break it up.


All times are GMT -5. The time now is 02:01 PM.