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

new to the compiles ... following build instructions in github - ubuntu 2204 - PSW issues

SHAICgroup
Beginner
322 Views

Please provide some ideas on the following -- I am following the github directives

thanks 

Build the Intel(R) SGX SDK and Intel(R) SGX PSW Package

platform info is follows --

=====================
SGX supported by CPU: true
SGX1 (ECREATE, EENTER, ...): true
SGX2 (EAUG, EACCEPT, EMODPR, ...): true
Flexible Launch Control (IA32_SGXPUBKEYHASH{0..3} MSRs): true
SGX extensions for virtualizers (EINCVIRTCHILD, EDECVIRTCHILD, ESETCONTEXT): false
Extensions for concurrent memory management (ETRACKC, ELDBC, ELDUC, ERDINFO): false
CET enclave attributes support (See Table 37-5 in the SDM): false
Key separation and sharing (KSS) support (CONFIGID, CONFIGSVN, ISVEXTPRODID, ISVFAMILYID report fields): true
Max enclave size (32-bit): 0x80000000
Max enclave size (64-bit): 0x100000000000000
EPC size: 0xfe000000
SGX driver loaded: true
AESMD installed: false
SGX PSW/libsgx installed: false
#PF/#GP information in EXINFO in MISC region of SSA supported: true
#CP information in EXINFO in MISC region of SSA supported: false

=====================

ls /dev/sgx*
/dev/sgx_enclave
/dev/sgx_provision
/dev/sgx_vepc
=====================

 

make sdk   <--- completed no error with library built

 

 

make psw <--- completed with following output

----------------------

make[4]: Leaving directory '/home/ubuntu/linux-sgx/psw/ae/aesm_service/source/build'
cp -f /home/ubuntu/linux-sgx/external/CppMicroServices/build/lib/libCppMicroServices.so.4.0.0 source/build/bin/
cp -f -r source/build/bin/* /home/ubuntu/linux-sgx/build/linux
make[3]: Leaving directory '/home/ubuntu/linux-sgx/psw/ae/aesm_service'
cp -f aesm_service/config/aesmd_service/aesmd.conf /home/ubuntu/linux-sgx/build/linux
cp -f aesm_service/config/aesmd_service/aesmd.service /home/ubuntu/linux-sgx/build/linux
cp -f data/prebuilt/* /home/ubuntu/linux-sgx/build/linux
make[2]: Leaving directory '/home/ubuntu/linux-sgx/psw/ae'
make[1]: Leaving directory '/home/ubuntu/linux-sgx/psw

---------------------------------end output

 

make deb_psw_pkg  <--- completed with following output

 

----------------------------

 

In file included from /home/ubuntu/sgxsdk/include/libcxx/cwchar:110,
from /home/ubuntu/sgxsdk/include/libcxx/__string:60,
from /home/ubuntu/sgxsdk/include/libcxx/string_view:179,
from /home/ubuntu/sgxsdk/include/libcxx/string:511,
from Enclave/qve.cpp:74:
/home/ubuntu/sgxsdk/include/libcxx/__support/sgx/support.h:8:8: warning: redundant redeclaration of ‘size_t wcsnrtombs(char*, const wchar_t**, size_t, size_t, mbstate_t*)’ in same scope [-Wredundant-decls]
8 | size_t wcsnrtombs(char *dst, const wchar_t **src,
| ^~~~~~~~~~
In file included from Enclave/qve_t.h:5,
from Enclave/qve.cpp:47:
/home/ubuntu/sgxsdk/include/tlibc/wchar.h:131:27: note: previous declaration of ‘size_t wcsnrtombs(char*, const wchar_t**, size_t, size_t, mbstate_t*)’
131 | size_t _TLIBC_CDECL_ wcsnrtombs(char *__restrict, const wchar_t **__restrict, size_t, size_t, mbstate_t *__restrict);
| ^~~~~~~~~~
Enclave/qve.cpp: In function ‘sgx_ql_qv_result_t status_error_to_ql_qve_result(Status)’:
Enclave/qve.cpp:307:16: error: ‘TEE_QV_RESULT_TD_RELAUNCH_ADVISED’ was not declared in this scope; did you mean ‘SGX_QL_QV_RESULT_TD_RELAUNCH_ADVISED’?
307 | return TEE_QV_RESULT_TD_RELAUNCH_ADVISED;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| SGX_QL_QV_RESULT_TD_RELAUNCH_ADVISED
Enclave/qve.cpp:309:16: error: ‘TEE_QV_RESULT_TD_RELAUNCH_ADVISED_CONFIG_NEEDED’ was not declared in this scope
309 | return TEE_QV_RESULT_TD_RELAUNCH_ADVISED_CONFIG_NEEDED;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:195: Enclave/qve.o] Error 1
make[3]: Leaving directory '/home/ubuntu/linux-sgx/external/dcap_source/QuoteVerification/QvE'
make[2]: *** [Makefile:39: QvE] Error 2
make[2]: Leaving directory '/home/ubuntu/linux-sgx/external/dcap_source/QuoteVerification'
make[1]: *** [Makefile:75: qve_wrapper] Error 2
make[1]: Leaving directory '/home/ubuntu/linux-sgx/external/dcap_source/QuoteGeneration'
make: *** [Makefile:246: deb_sgx_dcap_quote_verify] Error 2

 

-------------------------------------------------------------

What Have i missed? 

 

Thanks

0 Kudos
0 Replies
Reply