You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by Jeff Zhao <no...@github.com.INVALID> on 2023/08/29 18:06:51 UTC
[apache/incubator-teaclave-sgx-sdk] undefined reference (Issue #446)
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: <ap...@github.com>
Re: [apache/incubator-teaclave-sgx-sdk] undefined reference (Issue #446)
Posted by Jeff Zhao <no...@github.com.INVALID>.
Closed #446 as completed.
--
Reply to this email directly or view it on GitHub:
https://github.com/apache/incubator-teaclave-sgx-sdk/issues/446#event-10246346529
You are receiving this because you are subscribed to this thread.
Message ID: <ap...@github.com>