inclavare-containers / rats-tls

RATS architecture based TLS using librats
31 stars 33 forks source link

ld error: libc.so.6: error adding symbols: DSO missing from command line #188

Open a2102107 opened 8 months ago

a2102107 commented 8 months ago

System Info(Like Like RHEL or CentOS8)

LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: AlibabaCloud
Description:    Alibaba Cloud Linux release 3 (Soaring Falcon) 
Release:    3
Codename:   SoaringFalcon

Error:

[ 95%] Linking C shared library libsgx_stub_enclave.so
/usr/bin/ld: CMakeFiles/sgx_stub_enclave.dir/sgx_stub_ecall.c.o: undefined reference to symbol 'printf@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib64/libc.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [samples/sgx-stub-enclave/CMakeFiles/sgx_stub_enclave.dir/build.make:99: samples/sgx-stub-enclave/libsgx_stub_enclave.so] Error 1
make[2]: Leaving directory '/root/repo/rats-tls/build'
make[1]: *** [CMakeFiles/Makefile2:1132: samples/sgx-stub-enclave/CMakeFiles/sgx_stub_enclave.dir/all] Error 2
make[1]: Leaving directory '/root/repo/rats-tls/build'
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/root/repo/rats-tls/build'
imlk0 commented 7 months ago

Hi @a2102107, are you building with RATS_TLS_BUILD_MODE="sgx"? This may be caused by an old SGX SDK version, can you try runetest/compilation-testing:anolis8.6 docker image? We just updated it and it works well with the latest rats-tls code.