Hello!
I have successfully built Cosmix on the computer, however when I get the following error in cosmix docker when I try to build the SampleEnclave in sgxsdk_samples.
Please help!
root@2cbf27f88c1f:/home/user/dev/cosmix/sgxsdk_samples/SampleEnclave# make
make[1]: Entering directory '/home/user/dev/cosmix/sgxsdk_samples/SampleEnclave'
GEN => App/Enclave_u.h
CC <= App/Enclave_u.c
CXX <= App/App.cpp
LINK => app
GEN => Enclave/Enclave_t.h
cc -m64 -O2 -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wcast-qual -Wconversion -Wredundant-decls -Wjump-misses-init -Wstrict-prototypes -Wunsuffixed-float-constants -I/home/user/dev/sgxsdk/include -I/home/user/dev/sgxsdk/include/tlibc -I/home/user/dev/sgxsdk/include/libcxx -nostdinc -fvisibility=hidden -fpie -ffunction-sections -fdata-sections -fstack-protector-strong -c Enclave/Enclave_t.c -o Enclave/Enclave_t.o
I Skipped Some Parts >>>>>>>>>>
Enclave/Enclave.o: In function suvm_mstore_free': llvm-link:(.text+0xcef0): undefined reference to __assert_fail'
Enclave/Enclave.o: In function suvm_mstore_alloc_size': llvm-link:(.text+0xcf56): undefined reference to __assert_fail'
llvm-link:(.text+0xcf75): undefined reference to `__assert_fail'
collect2: error: ld returned 1 exit status
Makefile:267: recipe for target 'enclave.so' failed
make[1]: *** [enclave.so] Error 1
make[1]: Leaving directory '/home/user/dev/cosmix/sgxsdk_samples/SampleEnclave'
Makefile:185: recipe for target 'all' failed
make: *** [all] Error 2
Hello!
I have successfully built Cosmix on the computer, however when I get the following error in cosmix docker when I try to build the SampleEnclave in sgxsdk_samples.
Please help!
root@2cbf27f88c1f:/home/user/dev/cosmix/sgxsdk_samples/SampleEnclave# make
make[1]: Entering directory '/home/user/dev/cosmix/sgxsdk_samples/SampleEnclave'
GEN => App/Enclave_u.h
CC <= App/Enclave_u.c
CXX <= App/App.cpp
LINK => app
GEN => Enclave/Enclave_t.h
cc -m64 -O2 -Wall -Wextra -Winit-self -Wpointer-arith -Wreturn-type -Waddress -Wsequence-point -Wformat-security -Wmissing-include-dirs -Wfloat-equal -Wundef -Wshadow -Wcast-align -Wcast-qual -Wconversion -Wredundant-decls -Wjump-misses-init -Wstrict-prototypes -Wunsuffixed-float-constants -I/home/user/dev/sgxsdk/include -I/home/user/dev/sgxsdk/include/tlibc -I/home/user/dev/sgxsdk/include/libcxx -nostdinc -fvisibility=hidden -fpie -ffunction-sections -fdata-sections -fstack-protector-strong -c Enclave/Enclave_t.c -o Enclave/Enclave_t.o
Enclave/Enclave.o: In function
suvm_mstore_free': llvm-link:(.text+0xcef0): undefined reference to__assert_fail'Enclave/Enclave.o: In function
suvm_mstore_alloc_size': llvm-link:(.text+0xcf56): undefined reference to__assert_fail'llvm-link:(.text+0xcf75): undefined reference to `__assert_fail'
collect2: error: ld returned 1 exit status
Makefile:267: recipe for target 'enclave.so' failed
make[1]: *** [enclave.so] Error 1
make[1]: Leaving directory '/home/user/dev/cosmix/sgxsdk_samples/SampleEnclave'
Makefile:185: recipe for target 'all' failed
make: *** [all] Error 2