Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.
1453 Discussions

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

alam__A_K_M_Mubashwi
1,148 Views

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