我曾尝试按照英特尔的说明安装sgx,但它需要sgx_linux_x64_psw_.bin文件,我在任何地方都找不到它。我有驱动安装程序(sgx_linux_x64_driver_1.35.bin)和sdk安装程序(sgx_linux_x64_sdk_2.10.100.2.bin),英特尔似乎没有linux的psw?如果是这样,我如何正确地使用sgx?我尝试简单地执行驱动程序和sdk .bin文件,但sdk中的示例代码无法编译(在生成SGX_MODE=SIM之后),即使在将sgxsdk目录设置为/opt/intel/sgxsdk之后也是如此。我会得到以下编译错误:
/usr/bin/ld: warning: libsgx_uae_service_sim.so, needed by /opt/intel/sgxsdk/lib64/libsgx_urts_sim.so, not found (try using -rpath or -rpath-link)
/opt/intel/sgxsdk/lib64/libsgx_urts_sim.so: undefined reference to `get_launch_token'
collect2: error: ld returned 1 exit status
Makefile:235: recipe for target 'app' failed
make[1]: * [app] Error 1
make[1]: Leaving directory '/opt/intel/sgxsdk/SampleCode/SampleEnclave'
Makefile:180: recipe for target 'all' failed
make: * [all] Error 2对这两个问题的任何帮助都将不胜感激!
发布于 2020-10-13 03:51:28
因此,至少在我的案例中,问题似乎是我是A,使用的是虚拟机,它只能在模拟模式下运行,因此不可能获得完全工作的sgx版本。其次,我使用的是过时的安装指南,对于任何其他尝试使用这些东西的人,请确保从英特尔下载页面获得安装指南以及您正在下载的版本。
发布于 2020-10-26 19:55:04
从https://github.com/intel/linux-sgx下载源代码,按照说明编译,然后安装psw。
https://stackoverflow.com/questions/63350074
复制相似问题