Closed shjeon99 closed 5 years ago
Build Environment: Ubuntu 18.04.1 gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
It shows errors like below.
make -C sideloader KDIR=/lib/modules/4.5.6-azalea+/build UKDIR=/home/shjeon00/data/git/Azalea-unikernel --quiet arch/x86/Makefile:133: stack-protector enabled but compiler support broken Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler cc1: error: code model kernel does not support PIC mode scripts/Makefile.build:258: recipe for target '/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk/lkernel.o' failed make[4]: [/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk/lkernel.o] Error 1 Makefile:1392: recipe for target 'module/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk' failed make[3]: [module/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk] Error 2 Makefile:19: recipe for target 'modules' failed make[2]: [modules] Error 2 Makefile:6: recipe for target 'all' failed make[1]: [all] Error 2 Makefile:54: recipe for target 'sideloader' failed make: *** [sideloader] Error 2
I has appended -fno-pie flags in Makefile ( sideloader/lk/Makefile )
Ref: https://askubuntu.com/questions/851433/kernel-doesnt-support-pic-mode-for-compiling
Build Environment: Ubuntu 18.04.1 gcc version 7.3.0 (Ubuntu 7.3.0-27ubuntu1~18.04)
It shows errors like below.
make -C sideloader KDIR=/lib/modules/4.5.6-azalea+/build UKDIR=/home/shjeon00/data/git/Azalea-unikernel --quiet arch/x86/Makefile:133: stack-protector enabled but compiler support broken Makefile:666: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler cc1: error: code model kernel does not support PIC mode scripts/Makefile.build:258: recipe for target '/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk/lkernel.o' failed make[4]: [/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk/lkernel.o] Error 1 Makefile:1392: recipe for target 'module/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk' failed make[3]: [module/home/shjeon00/data/git/Azalea-unikernel/sideloader/lk] Error 2 Makefile:19: recipe for target 'modules' failed make[2]: [modules] Error 2 Makefile:6: recipe for target 'all' failed make[1]: [all] Error 2 Makefile:54: recipe for target 'sideloader' failed make: *** [sideloader] Error 2