undefined reference
kamiyaa opened this issue · 0 comments
kamiyaa commented
Not exactly sure what I'm missing here but anything I import inside Enclave.edl
results in undefined references. It compiles properly without any imports.
rustc 1.66.0-nightly (5c8bff74b 2022-10-21)
sgx_tstd = { rev = "v1.1.6", git = "https://github.com/apache/teaclave-sgx-sdk.git", features = ["net"] }
= note: /usr/bin/ld: ../lib/libEnclave_u.a(Enclave_u.o): in function `Enclave_u_clock_gettime_ocall':
Enclave_u.c:(.text+0x14): undefined reference to `u_clock_gettime_ocall'
/usr/bin/ld: ../lib/libEnclave_u.a(Enclave_u.o): in function `Enclave_u_thread_setwait_events_ocall':
Enclave_u.c:(.text+0x39): undefined reference to `u_thread_setwait_events_ocall'
/usr/bin/ld: ../lib/libEnclave_u.a(Enclave_u.o): in function `Enclave_u_thread_set_multiple_events_ocall':
Enclave_u.c:(.text+0x64): undefined reference to `u_thread_set_multiple_events_ocall'
/usr/bin/ld: ../lib/libEnclave_u.a(Enclave_u.o): in function `Enclave_u_thread_wait_event_ocall':
Enclave_u.c:(.text+0x85): undefined reference to `u_thread_wait_event_ocall'
/usr/bin/ld: ../lib/libEnclave_u.a(Enclave_u.o): in function `Enclave_u_thread_set_event_ocall':
Enclave_u.c:(.text+0xa1): undefined reference to `u_thread_set_event_ocall'
collect2: error: ld returned 1 exit status
enclave {
from "sgx_tstd.edl" import *;
trusted {
public unsigned int ecall_random_function();
};
untrusted {
sgx_status_t ocall_get_num([out] uint32_t *n);
};
};