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

Rust coverage with rules_rust//rust/settings:experimental_use_global_allocator fails to build #2838

Open
Ryang20718 opened this issue Sep 5, 2024 · 2 comments

Comments

@Ryang20718
Copy link

Ryang20718 commented Sep 5, 2024

repro

bazelisk coverage  --@rules_rust//rust/settings:experimental_use_cc_common_link=True --@rules_rust//rust/settings:experimental_use_global_allocator=True --@rules_rust//:no_std=alloc //test/inline_test_with_deps/... 

fails to generate coverage due to missing symbols

>>> referenced by alloc.rs:138 (library/alloc/src/alloc.rs:138)
>>>               std-0fbbe72b9e0d57dc.std.dece285a2424a0b-cgu.0.rcgu.o:(addr2line::Lines::parse::h055c13fc6fc793ec) in archive bazel-out/k8-fastbuild/bin/external/rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-0fbbe72b9e0d57dc.a
>>> referenced by alloc.rs:138 (library/alloc/src/alloc.rs:138)
>>>               std-0fbbe72b9e0d57dc.std.dece285a2424a0b-cgu.0.rcgu.o:(std::env::current_dir::hc4a8745007195713) in archive bazel-out/k8-fastbuild/bin/external/rust_linux_x86_64__x86_64-unknown-linux-gnu__stable_tools/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-0fbbe72b9e0d57dc.a
@krasimirgg
Copy link
Collaborator

Does it bazelisk build on itself without coverage?

@Ryang20718
Copy link
Author

yes @krasimirgg

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

2 participants