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)`
```
= 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
```
```rust
enclave {
from "sgx_tstd.edl" import *;
trusted {
public unsigned int ecall_random_function();
};
untrusted {
sgx_status_t ocall_get_num([out] uint32_t *n);
};
};
```
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/446
You are receiving this because you are subscribed to this thread.
Message ID: <apache/incubator-teaclave-sgx-sdk/issues/[email protected]>