Closed digitalinformation closed 1 year ago
Can you post the latest error log after calling git config --global --add safe.directory /teaclave
?
Hello, there is no change after entering the command, as follows: Here are the error logs: CMakeOutput.log
@digitalinformation I think you need to execute this command inside docker, not on the host machine. You may change the docker command to
docker run --rm -v $(pwd):/teaclave -w /teaclave \
-it teaclave/teaclave-build-ubuntu-2004-sgx-2.17.1:0.2.0 \
bash -c ". /root/.cargo/env && \
. /opt/sgxsdk/environment && \
mkdir -p build && cd build && \
git config --global --add safe.directory '*' && \ # <--- Add this line
cmake -DTEST_MODE=ON .. && \
make -j"
or you can enter docker with an interactive shell like bash or something.
BTW, I think the build documentation on the website should be updated.
I have solved my problem, thank you very much.
-- Submodule update fatal: detected dubious ownership in repository at '/teaclave' To add an exception for this directory, call:
git config --global --add safe.directory /teaclave CMake Error at cmake/TeaclaveUtils.cmake:55 (message): git submodule update --init failed with 128, please checkout submodules Call Stack (most recent call first): CMakeLists.txt:52 (init_submodules)
-- Configuring incomplete, errors occurred! See also "/teaclave/build/CMakeFiles/CMakeOutput.log".