Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译psi/java bug #448

Open
cs1317 opened this issue Dec 13, 2024 · 1 comment
Open

编译psi/java bug #448

cs1317 opened this issue Dec 13, 2024 · 1 comment

Comments

@cs1317
Copy link

cs1317 commented Dec 13, 2024

我的编译命令是:
cd yacl
bazel build //examples/psi/java:LibEcdhPsi_deploy.jar
我的报错:
`Starting local Bazel server and connecting to it...
WARNING: For repository 'rules_proto', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph.
WARNING: For repository 'abseil-cpp', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph.
WARNING: For repository 'rules_python', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph.
WARNING: For repository 'platforms', the root module requires module version [email protected], but got [email protected] in the resolved dependency graph.
WARNING: Target pattern parsing failed.

ERROR: Skipping '//examples/psi/java:LibEcdhPsi_deploy.jar': no such package 'examples/psi/java': Package is considered deleted due to --deleted_packages

ERROR: no such package 'examples/psi/java': Package is considered deleted due to --deleted_packages
INFO: Elapsed time: 2.231s
INFO: 0 processes.
ERROR: Build did NOT complete successfully`

@cs1317
Copy link
Author

cs1317 commented Dec 13, 2024

修改.bazelignore文件后,新的报错是:
WARNING: Target pattern parsing failed.
ERROR: Skipping '//examples/psi/java:LibEcdhPsi_deploy.jar': error loading package 'examples/psi/java': Unable to find package for @@[unknown repo 'rules_jni' requested from @@ (did you mean 'rules_java'?)]//jni:java_jni_library.bzl: The repository '@@[unknown repo 'rules_jni' requested from @@ (did you mean 'rules_java'?)]' could not be resolved: No repository visible as '@rules_jni' from main repository.
ERROR: error loading package 'examples/psi/java': Unable to find package for @@[unknown repo 'rules_jni' requested from @@ (did you mean 'rules_java'?)]//jni:java_jni_library.bzl: The repository '@@[unknown repo 'rules_jni' requested from @@ (did you mean 'rules_java'?)]' could not be resolved: No repository visible as '@rules_jni' from main repository.
INFO: Elapsed time: 0.072s
INFO: 0 processes.
ERROR: Build did NOT complete successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant