kamiyaa opened a new issue, #446:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/issues/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);
       };
   };
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@teaclave.apache.org
For additional commands, e-mail: notifications-h...@teaclave.apache.org

Reply via email to