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

Add rules_cc as bazel_dep #1397

Merged
merged 1 commit into from
Nov 13, 2024
Merged

Conversation

phongt
Copy link
Contributor

@phongt phongt commented Nov 13, 2024

This fixed the error when using bazel build system for cxx as

https://github.com/dtolnay/cxx/blob/master/tools/bazel/rust_cxx_bridge.bzl#L3 using the rules_cc

ERROR: Skipping '//:cxx_helloworld': error loading package '': at /home/phongtran/.cache/bazel/_bazel_phongtran/2203687aa2e8f2dabc08191e61a17361/external/cxx.rs~/tools/bazel/rust_cxx_bridge.bzl:3:6: Unable to find package for @@[unknown repo 'rules_cc' requested from @@cxx.rs~]//cc:defs.bzl: The repository '@@[unknown repo 'rules_cc' requested from @@cxx.rs~]' could not be resolved: No repository visible as '@rules_cc' from repository '@@cxx.rs~'.
ERROR: error loading package '': at /home/phongtran/.cache/bazel/_bazel_phongtran/2203687aa2e8f2dabc08191e61a17361/external/cxx.rs~/tools/bazel/rust_cxx_bridge.bzl:3:6: Unable to find package for @@[unknown repo 'rules_cc' requested from @@cxx.rs~]//cc:defs.bzl: The repository '@@[unknown repo 'rules_cc' requested from @@cxx.rs~]' could not be resolved: No repository visible as '@rules_cc' from repository '@@cxx.rs~'.
INFO: Elapsed time: 2.428s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dtolnay dtolnay merged commit 21d7186 into dtolnay:master Nov 13, 2024
16 checks passed
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

Successfully merging this pull request may close these issues.

2 participants