You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by "rashmik8 (via GitHub)" <gi...@apache.org> on 2023/03/03 10:18:49 UTC

[GitHub] [incubator-teaclave-sgx-sdk] rashmik8 commented on pull request #260: Fix switchless sample code

rashmik8 commented on PR #260:
URL: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/260#issuecomment-1453294559

   I understand this issue has been closed but I needed more clarity on this one.  I tried including `-Wl,--whole-archive -lsgx_uswitchless -Wl,--no-whole-archive` in my file with main() however I run into following error:
   `= note: /opt/intel/sgxsdk/lib64/libsgx_uswitchless.a(sl_urts_loader_untrusted.o): In function `urts_loader_t::urts_loader_t()':
             sl_urts_loader_untrusted.cpp:(.text._ZN13urts_loader_tC2Ev+0x8): undefined reference to `sgx_set_switchless_itf'
             /opt/intel/sgxsdk/lib64/libsgx_uswitchless.a(sl_workers_untrusted.o): In function `tworker_process_calls':
             sl_workers_untrusted.c:(.text.tworker_process_calls+0x21): undefined reference to `sl_run_switchless_tworker'
             /opt/intel/sgxsdk/lib64/libsgx_uswitchless.a(sgx_ecall_switchless_untrusted.o): In function `init_tswitchless':
             sgx_ecall_switchless_untrusted.c:(.text.init_tswitchless+0x10): undefined reference to `sl_init_switchless'
             collect2: error: ld returned 1 exit status
   `
   Looks like it cannot find sgx_urts or other files.  Not sure what I am missing here.
   Apologies in advance if this is not the right place to post this.


-- 
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-unsubscribe@teaclave.apache.org

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


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