Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

"No dependency found" error while SGX PSW installer build

yg1
Beginner
1,141 Views
Hi, 
I'm getting the following error while building SGX PSW installer using linux-sgx github hub repo while "make deb_psw_pkg".
error.png
 
P.S
OS - Ubuntu 20.04.4
SDK version - 2.14.100
openssl vesion - 1.1.1m
I'm not sure what I'm missing. Kindly guide. 
 
Thank you
0 Kudos
8 Replies
JesusG_Intel
Moderator
1,071 Views

Hello yg1,


1. Install Prerequisites then download the Intel SGX for Linux source code:

$ sudo apt-get install build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl

$ sudo apt-get install libssl-dev libcurl4-openssl-dev protobuf-compiler libprotobuf-dev debhelper cmake reprepro unzip

$ git clone https://github.com/intel/linux-sgx.git

$ cd linux-sgx && make preparation


2. Build the debug versions of the SDK and SDK installer:

$ make sdk DEBUG=1

$ make sdk_install_pkg DEBUG=1


3. Install the SGX SDK

$ cd linux/installer/bin

$ ./sgx_linux_x64_sdk_${version}.bin

$ source ${sgx-sdk-install-path}/environment


4. Build the debug versions of the PSW and PSW installers:

$ make psw DEBUG=1

$ make deb_psw_pkg DEBUG=1


5. Install the PSW components and their symbol files.

The generated PSW installers are located under linux/installer/rpm/libsgx-urts, linux/installer/rpm/libsgx-enclave-common, linux/installer/rpm/libsgx-uae-service, linux/installer/rpm/libsgx-epid, linux/installer/rpm/libsgx-launch, linux/installer/rpm/libsgx-quote-ex and linux/installer/rpm/sgx-aesm-service

 

Execute the following commands in each PSW installer directory:

 

$ sudo dpkg -i *.deb

$ sudo dpkg -i *.ddeb


yg1
Beginner
990 Views

Hello Jesus,

 

Thank you for the reply.
I followed the steps but still I'm facing the same issue while "make deb_psw_pkg DEBUG=1" even after building in debug version. 

 

 

JesusG_Intel
Moderator
908 Views

Hello yg1,


I have not been able to reproduce your issue.


I noticed that your log says you are getting the 2.14 version of the software which is not the most current one.


Did you download a fresh copy of the package using git clone https://github.com/intel/linux-sgx.git? You should see version 2.15.101.1. I recommend starting fresh with a new download of the latest version of the software.


Use the same account privileges when running your make commands and sourcing the SDK environment file - all sudo or not sudo.


Run sudo apt-get update before going through the steps.


Sincerely,

Jesus G.

Intel Customer Support


JesusG_Intel
Moderator
878 Views

Hell yg1,


I realized I missed an important step in the instructions above.


After these commands:

$ git clone https://github.com/intel/linux-sgx.git

$ cd linux-sgx && make preparation


Run this:

Copy the mitigation tools corresponding to current OS distribution from external/toolset/{current_distr} to /usr/local/bin and make sure they have execute permission:

$ sudo cp external/toolset/{current_distr}/* /usr/local/bin

$ which ar as ld objcopy objdump ranlib



JesusG_Intel
Moderator
825 Views

Hello yg1,


Do you still need help with this issue?


Regards,

Jesus G.

Intel Customer Support


yg1
Beginner
782 Views

Hello Jesus, 

 

I followed your steps. But I faced the same issue. So, I requested for OS reinstall. Hopefully I will not face the issue after that. 

Thank you. 

JesusG_Intel
Moderator
726 Views

Hello yg1,


Can you install the PSW using Intel's apt repository rather than building from source?


1. Configure access to Intel's apt repository as detailed in page 11 of SGX Installation Guide for Linux :

$ echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu focal main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list ; wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add - ; sudo apt-get update


2. Install all components of the SGX PSW:

$ sudo apt-get install libsgx-launch libsgx-urts libsgx-epid libsgx-quote-ex libsgx-uae-service


JesusG_Intel
Moderator
672 Views

Hello yg1,


We have not heard from you in several days so we will no longer monitor this thread. We hope you were able to resolve your issue. Please start a new thread if you need further help.


Reply