-
Notifications
You must be signed in to change notification settings - Fork 3
Description
f如果使用官方interconnection-impl的源码,不修改repositories.bzl,其中
def ic_impl_deps():
_com_github_nlohmann_json()
maybe(
git_repository,
name = "spulib",
commit = SPU_COMMIT_ID,
remote = "{}/{}.git".format(SECRETFLOW_GIT, SPU_REPOSITORY),
# remote = "https://github.com/reacher1130/spu.git",
)
这是可以bazel编译通过的;
如果将其中的spu的git依赖库改成自己fork过的spu的main分支,并且spu中的repositories.bzl的yacl的git依赖库也改成自己fork过的yacl的main分支,就会出现如下编译问题:
ERROR: /root/develop/interconnection-impl/ic_impl/algo/lr/BUILD.bazel:19:11: error loading package '@spulib//libspu/mpc': at /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/spulib/bazel/spu.bzl:20:6: at /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/yacl/bazel/yacl.bzl:20:6: at /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/rules_foreign_cc/foreign_cc/defs.bzl:8:6: at /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/rules_foreign_cc/foreign_cc/ninja.bzl:8:5: at /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/rules_foreign_cc/foreign_cc/private/framework.bzl:5:6: at /root/.cache/bazel/_bazel_root/b12e4e3f9a14f11e902c5f6f1fe2e080/external/bazel_features/features.bzl:3:6: Unable to find package for @bazel_features_globals//:globals.bzl: The repository '@bazel_features_globals' could not be resolved: Repository '@bazel_features_globals' is not defined. and referenced by '//ic_impl/algo/lr:lr_handler'
需求:对yacl其中相关互联互通部分的代码进行修改和日志输出,因此需要在bzl中修改为自己的yacl库,非常感谢!