(1)use the cpu-ci image;
(2)when type the command"
cmake … -DUSE_LLVM=ON -DUSE_SGX=/opt/sgxsdk -DRUST_SGX_SDK=/opt/rust-sgx-sdk
make -j4
the result is as below:
remember to run the following command to initialize submodules
git submodule update --init --recursive
Hey @whyseu, Glad to see you’re interested in DUSE_SGX
!
The error you’re getting about dmlc/logging.h: No such file or directory
is almost certainly because git submodule update --init --recursive
did no fetch dmlc/dmlc-core
. There might have been a network error during the fetch.
Would you mind creating a new image and using git clone --recursive https://github.com/dmlc/tvm.git
? That should ensure everything is in the repo. You can verify this by making sure the subdirectories in tvm/3rdparty
are full.
It works, thank you. But there are still some errors.
it says that “llvm-ar-6.0: …/build/libmodel.a: Text file busy.” and give such error:
You should change the line endings of your TVM repo to lf
instead of crlf
. This resource might be helpful.
It looks like TVM wasn’t built with SGX enabled. Could you rm -r tvm/build
and re-build by copying and pasting the commands from the README? Hopefully that will work!
My CPU don’t support the TVM…