Community
cancel
Showing results for 
Search instead for 
Did you mean: 
318 Views

SGX Driver : error: code model kernel does not support PIC mode

Hi,

I have enabled the SGX from BIOS. After that trying to install SGX driver and encountered following error:

make[1]: Entering directory '/usr/src/linux-headers-4.15.0-47-generic'
  CC   /home/amubashwir/Downloads/linux-sgx-driver-master/sgx_main.o
cc1: error: code model kernel does not support PIC mode
scripts/Makefile.build:332: recipe for target '/home/amubashwir/Downloads/linux-sgx-driver-master/sgx_main.o' failed
make[2]: *** [/home/amubashwir/Downloads/linux-sgx-driver-master/sgx_main.o] Error 1
Makefile:1552: recipe for target '_module_/home/amubashwir/Downloads/linux-sgx-driver-master' failed
make[1]: *** [_module_/home/amubashwir/Downloads/linux-sgx-driver-master] Error 2

 

Please help.

OS: Ubuntu 18.04.

gcc: 7.3.0

 

 

0 Kudos
0 Replies
Reply