Open reacher1130 opened 3 weeks ago
已经安装好了
还是那个问题,
还是那个问题,
你好,具体解决方式是什么呢
同时,在另一个ubuntu wsl平台上,编译spu是可以正常通过的,但编译interconnection-impl会一直卡在: (secretflow) root@DESKTOP-UMI6HU8:~/develop/interconnection-impl# bazel build -c opt ic_impl/ic_main Computing main repo mapping: Fetching repository @@bazel_skylib; starting 142s
如果清除bazel缓存,重新编译会出现如下情况:
Starting local Bazel server and connecting to it...
DEBUG: /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/xla/third_party/repo.bzl:132:14:
Warning: skipping import of repository 'llvm-raw' because it already exists.
ERROR: Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/tsl/tools/toolchains/cpus/aarch64/aarch64.bzl", line 312, column 43, in
epo mapping: Fetching repository @@bazel_skylib; starting 142s
你这样尝试一下
conda config --append channels conda-forge
conda config --append channels bioconda
由于环境出现了变化需要先删除缓存bazel clean --expunge。
还是一样的问题
还是一样的问题 在一下编译环境运行pip list 看一下
还是一样的问题 在一下编译环境运行pip list 看一下
尝试安装一下spu后进行编译 pip install spu==0.9.2b0
root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080 把这个文件夹删掉再编译试试呢
还是会出现问题,编译该repo的时候现在会提示: ERROR: /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/local_cuda/BUILD: no such target '@@local_cuda//:cuda_runtime': target 'cuda_runtime' not declared in package '' defined by /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/local_cuda/BUILD ERROR: /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/rules_cuda/cuda/BUILD.bazel:85:11: every rule of type label_flag implicitly depends upon the target '@@local_cuda//:cuda_runtime', but this target could not be found because of: no such target '@@local_cuda//:cuda_runtime': target 'cuda_runtime' not declared in package '' defined by /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/local_cuda/BUILD ERROR: Analysis of target '//ic_impl:ic_main' failed; build aborted: Analysis failed
还有其它报错信息吗 也可以在 docker 镜像编译试下: https://github.com/secretflow/spu/blob/main/CONTRIBUTING.md#docker
cmake version 3.30.2 gcc version 11.1.0 (GCC) bazel 6.5.0 在centos7编译 提示: END BUILD LOGS rules_foreign_cc: Build wrapper script location: bazel-out/k8-opt/bin/external/com_github_openssl_openssl/openssl_foreign_cc/wrapper_build_script.sh rules_foreign_cc: Build script location: bazel-out/k8-opt/bin/external/com_github_openssl_openssl/openssl_foreign_cc/build_script.sh rules_foreign_cc: Build log location: bazel-out/k8-opt/bin/external/com_github_openssl_openssl/openssl_foreign_cc/Configure.log
Target //ic_impl:ic_main failed to build Use --verbose_failures to see the command lines of failed build steps. ERROR: /data/ant-sf/interconnection-impl/ic_impl/BUILD.bazel:19:10 Linking ic_impl/ic_main failed: (Exit 2): bash failed: error executing command (from target @com_github_openssl_openssl//:openssl) /bin/bash -c bazel-out/k8-opt/bin/external/com_github_openssl_openssl/openssl_foreign_cc/wrapper_build_script.sh
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging