Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Gokhale__Sushant
Beginner
893 Views

Error installing SGX driver - "Cannot use CONFIG_STACK_VALIDATION=y"

Jump to solution

Hi,

While trying to install the Intel SGX driver from the official site, I am getting the following error:

dell@dell:~/Downloads/linux-sgx-driver-master$ make
make -C /lib/modules/4.15.0-36-generic/build SUBDIRS=/home/dell/Downloads/linux-sgx-driver-master modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-36-generic'
Makefile:975: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  CC  /home/dell/Downloads/linux-sgx-driver-master/sgx_main.o
  CC  /home/dell/Downloads/linux-sgx-driver-master/sgx_page_cache.o
  CC  /home/dell/Downloads/linux-sgx-driver-master/sgx_ioctl.o
  CC  /home/dell/Downloads/linux-sgx-driver-master/sgx_vma.o
  CC  /home/dell/Downloads/linux-sgx-driver-master/sgx_util.o
  CC  /home/dell/Downloads/linux-sgx-driver-master/sgx_encl.o
  LD  /home/dell/Downloads/linux-sgx-driver-master/isgx.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/dell/Downloads/linux-sgx-driver-master/isgx.mod.o
  LD  /home/dell/Downloads/linux-sgx-driver-master/isgx.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-36-generic'

 

 

Note that I already have a following directory on my desktop( and I don't know if its related or not):

dell@dell:~/Downloads/linux-sgx-driver-master$ ls /opt/intel/sgxdriver/
uninstall.sh

 

 

Requesting to please help me as to how the issue is to be resolved.

0 Kudos
1 Solution
Scott_R_Intel
Employee
893 Views
Hi Sushant. It looks as though the driver might have been built even though you got that warning. But, to get rid of the warning, try installing one of those packages it mentions. For example, on Ubuntu you would do this: sudo apt install libelf-dev Regards. Scott

View solution in original post

2 Replies
Scott_R_Intel
Employee
894 Views
Hi Sushant. It looks as though the driver might have been built even though you got that warning. But, to get rid of the warning, try installing one of those packages it mentions. For example, on Ubuntu you would do this: sudo apt install libelf-dev Regards. Scott

View solution in original post

Gokhale__Sushant
Beginner
893 Views

Thanks Scott. The driver was already built and I didn't need to install the package.

Reply