Skip to content

Possible regression causing linking of proc_macro #1374

@snowp

Description

@snowp

We updated rules_rust from 0.4.0 to 28ac6b1 and ran into an issue where proc_macro is now statically linked into a test binary, causing

/home/runner/.cache/bazel/_bazel_runner/374864cd5aeb008ef6a614637fda772e/sandbox/linux-sandbox/630/execroot/__main__/bazel-out/k8-fastbuild/bin/src/wrapper/buffer_test.runfiles/__main__/src/wrapper/_buffer_test: error while loading shared libraries: libstd-05b39ac0cb4c5688.so: cannot open shared object file: No such file or directory

21eed19...28ac6b1

I made sure that this was not coming from the Rust version upgrade (tried bad sha + 1.60).

I don't have a simple reproducer, though I suspect it's coming from our usage of cxx, though we also make use of other proc_macro libraries such as tokio, thiserror, prost, etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions