Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build binary file use ubuntu 22.04 with SGX enabled #70

Open
quangtuyen88 opened this issue Mar 26, 2024 · 5 comments
Open

Can't build binary file use ubuntu 22.04 with SGX enabled #70

quangtuyen88 opened this issue Mar 26, 2024 · 5 comments

Comments

@quangtuyen88
Copy link

Got this err when run make build

Compile into Enclave_t.o
Compile into unsinged enclave
/usr/bin/ld: /opt/intel/sgxsdk/lib64/libsgx_tprotected_fs.a(file_flush.o): in function `protected_fs_file::multi_thread_update_data_nodes()':
file_flush.cpp:(.text._ZN17protected_fs_file30multi_thread_update_data_nodesEv+0x472): undefined reference to `pthread_create'
/usr/bin/ld: file_flush.cpp:(.text._ZN17protected_fs_file30multi_thread_update_data_nodesEv+0x4bf): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status

My server support SGX and SGX SDK installed

cpuid -1 | grep SGX
      SGX: Software Guard Extensions supported = true
      SGX_LC: SGX launch config supported      = true
   Software Guard Extensions (SGX) capability (0x12/0):
      SGX1 supported                           = true
      SGX2 supported                           = false
      SGX ENCLV E*VIRTCHILD, ESETCONTEXT       = false
      SGX ENCLS ETRACKC, ERDINFO, ELDBC, ELDUC = false
   SGX attributes: ECREATE SECS.ATTRIBUTES (0x12/1):
   SGX Enclave Page Cache (EPC) enumeration (0x12/0x2):
   SGX Enclave Page Cache (EPC) enumeration (0x12/0x3):
ls /opt/intel/sgxsdk/
SampleCode  bin  buildenv.mk  environment  include  lib64  licenses  pkgconfig  sdk_libs  uninstall.sh
ls /dev/sgx*
/dev/sgx_enclave  /dev/sgx_provision  /dev/sgx_vepc

/dev/sgx:
enclave  provision
@delneg
Copy link
Contributor

delneg commented Mar 27, 2024

Hello, which branch ?

@quangtuyen88
Copy link
Author

Hello @delneg I'm using master branch

@delneg
Copy link
Contributor

delneg commented Mar 27, 2024

I've had this error, it was fixed with cb1b1a8

@delneg
Copy link
Contributor

delneg commented Mar 27, 2024

So until this lands in master, it won't build with newer sgx sdk

@quangtuyen88
Copy link
Author

I see. Thanks.. this time I still able to install use .deb file from the release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants