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

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

Open
a2102107 opened this issue Mar 14, 2024 · 1 comment
Open

Comments

@a2102107
Copy link

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
Copy link
Collaborator

imlk0 commented Mar 25, 2024

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.

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