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

Duplicated linking of rust-std #68

Open
termoshtt opened this issue Aug 12, 2022 · 0 comments
Open

Duplicated linking of rust-std #68

termoshtt opened this issue Aug 12, 2022 · 0 comments
Labels
bug Fix bug.

Comments

@termoshtt
Copy link
Owner

https://github.com/termoshtt/ocipkg/runs/7785162736?check_suite_focus=true

 = note: /usr/bin/ld: /home/runner/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-69edc9ac8de4d39c.rlib(std-69edc9ac8de4d39c.std.2a45fe64-cgu.0.rcgu.o): in function `rust_oom':
          /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/alloc.rs:334: multiple definition of `rust_oom'; /home/runner/.local/share/ocipkg/ghcr.io/termoshtt/ocipkg/static/rust/__0dbc47b/libocipkg_static_rust.a(std-7ca39ac42651c3df.std.41a414a5-cgu.0.rcgu.o):/rustc/a8314ef7d0ec7b75c336af2c9857bfaf43002bfc/library/std/src/alloc.rs:334: first defined here

example/static/rust/exe causes above link error, which caused by linking rust-std twice; first linked in creating static library, and second is when building exe crate. It seems that this did not happen if two rust-std version matches.

@termoshtt termoshtt added the bug Fix bug. label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fix bug.
Projects
None yet
Development

No branches or pull requests

1 participant