SPU (Secure Processing Unit) aims to be a provable, measurable secure computation device, which provides computation ability while keeping your private data protected.
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag.
rules_foreigncc: Printing build logs:
____ BEGIN BUILD LOGS _____
Bazel external C/C++ Rules. Building library fmtlib
Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/cmake
Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/ninja
cmake -DFMT_TEST=OFF -DCMAKE_TOOLCHAIN_FILE=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib.build_tmpdir/crosstool_bazel.cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib -DCMAKE_PREFIX_PATH=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib.ext_build_deps -DCMAKE_RANLIB= -DCMAKE_MAKE_PROGRAM=ninja -G Ninja /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/external/com_github_fmtlib_fmt
bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/buildscript.sh: line 112: cmake: command not found
____ END BUILD LOGS _____
rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/wrapper_build_script.sh
rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/build_script.sh
rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/CMake.log
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
rules_foreign_cc: Build failed!
rules_foreign_cc: Keeping temp build directory and dependencies directory for debug.
rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag.
rules_foreigncc: Printing build logs:
____ BEGIN BUILD LOGS _____
Bazel external C/C++ Rules. Building library msgpack
Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/cmake
Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/ninja
Issue Type
Build/Install
Modules Involved
Others
Have you reproduced the bug with SPU HEAD?
Yes
Have you searched existing issues?
Yes
SPU Version
spu 0.9.2b0
OS Platform and Distribution
anolis os 23.1
Python Version
3.10
Compiler Version
gcc 版本 12.3.0 20230508 (Anolis OS 12.3.0-5) (GCC)
Current Behavior?
ERROR: /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/external/com_github_fmtlib_fmt/BUILD.bazel:24:20: Foreign Cc - CMake: Building fmtlib failed: (Exit 127): bash failed: error executing command (from target @com_github_fmtlib_fmt//:fmtlib) (cd /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib && \ exec env - \ BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a \ BAZEL_LINKOPTS=-static-libstdc++:-static-libgcc \ PATH=/root/miniconda3/envs/secretflow/bin:/root/miniconda3/condabin:/root/.local/bin:/root/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \ /bin/bash -c bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/wrapper_build_script.sh)
Configuration: b31970f7587b61226d79424fd913eb94a75d0bc8399da15b61f8ffd8970f060f
Execution platform: @local_execution_config_platform//:platform
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging rules_foreign_cc: Build failed! rules_foreign_cc: Keeping temp build directory and dependencies directory for debug. rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag. rules_foreigncc: Printing build logs: ____ BEGIN BUILD LOGS _____
Bazel external C/C++ Rules. Building library fmtlib
Environment:__ BUILD_SCRIPT=bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/build_script.sh EXT_BUILD_ROOT=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib BUILD_LOG=bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/CMake.log PWD=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib BUILD_WRAPPER_SCRIPT=bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib_foreign_cc/wrapper_build_script.sh BAZEL_LINKOPTS=-static-libstdc++:-static-libgcc TMPDIR=/tmp EXT_BUILD_DEPS=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib.ext_build_deps BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a BUILD_TMPDIR=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib.build_tmpdir SHLVL=2 INSTALLDIR=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_fmtlib_fmt/fmtlib PATH=/root/.cache/bazel/_bazelroot/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib:/root/miniconda3/envs/secretflow/bin:/root/miniconda3/condabin:/root/.local/bin:/root/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin =/usr/bin/env
Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/cmake Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/129/execroot/spulib/ninja
ERROR: /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/external/com_github_msgpack_msgpack/BUILD.bazel:24:20: Foreign Cc - CMake: Building msgpack failed: (Exit 127): bash failed: error executing command (from target @com_github_msgpack_msgpack//:msgpack) (cd /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib && \ exec env - \ BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a \ BAZEL_LINKOPTS=-static-libstdc++:-static-libgcc \ PATH=/root/miniconda3/envs/secretflow/bin:/root/miniconda3/condabin:/root/.local/bin:/root/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \ /bin/bash -c bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack_foreign_cc/wrapper_build_script.sh)
Configuration: b31970f7587b61226d79424fd913eb94a75d0bc8399da15b61f8ffd8970f060f
Execution platform: @local_execution_config_platform//:platform
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging rules_foreign_cc: Build failed! rules_foreign_cc: Keeping temp build directory and dependencies directory for debug. rules_foreign_cc: Please note that the directories inside a sandbox are still cleaned unless you specify --sandbox_debug Bazel command line flag. rules_foreigncc: Printing build logs: ____ BEGIN BUILD LOGS _____
Bazel external C/C++ Rules. Building library msgpack
Environment:__ BUILD_SCRIPT=bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack_foreign_cc/build_script.sh EXT_BUILD_ROOT=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib BUILD_LOG=bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack_foreign_cc/CMake.log PWD=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib BUILD_WRAPPER_SCRIPT=bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack_foreign_cc/wrapper_build_script.sh BAZEL_LINKOPTS=-static-libstdc++:-static-libgcc TMPDIR=/tmp EXT_BUILD_DEPS=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack.ext_build_deps BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a BUILD_TMPDIR=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack.build_tmpdir SHLVL=2 INSTALLDIR=/root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/bazel-out/k8-opt/bin/external/com_github_msgpack_msgpack/msgpack PATH=/root/.cache/bazel/_bazelroot/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib:/root/miniconda3/envs/secretflow/bin:/root/miniconda3/condabin:/root/.local/bin:/root/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin =/usr/bin/env
Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/cmake Can not copy /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/145/execroot/spulib/ninja
ERROR: /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/external/com_github_herumi_mcl/BUILD.bazel:61:20: Foreign Cc - CMake: Building mcl-cmake failed: (Exit 127): bash failed: error executing command (from target @com_github_herumi_mcl//:mcl-cmake) (cd /root/.cache/bazel/_bazel_root/e58a711e46c6fe6f1f5547f91562fb00/sandbox/linux-sandbox/146/execroot/spulib && \ exec env - \ BAZEL_LINKLIBS=-l%:libstdc++.a:-l%:libgcc.a \ BAZEL_LINKOPTS=-static-libstdc++:-static-libgcc \ PATH=/root/miniconda3/envs/secretflow/bin:/root/miniconda3/condabin:/root/.local/bin:/root/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin \ /bin/bash -c bazel-out/k8-opt/bin/external/com_github_herumi_mcl/mcl-cmake_foreign_cc/wrapper_build_script.sh)
Configuration: b31970f7587b61226d79424fd913eb94a75d0bc8399da15b61f8ffd8970f060f
Execution platform: @local_execution_config_platform//:platform
Standalone code to reproduce the issue
Relevant log output
No response