Open burtonageo opened 3 months ago
This does not seem to be specific to macOS, I got the same result using, for example, --target=x86_64-unknown-redox
.
@rustbot label -O-macos
Met the same problem for ppc64le
target in Maturin: https://github.com/PyO3/maturin/discussions/2337
I have been experimenting with building crates as cdylibs/staticlibs out of tree as a workaround for emulating cargo artefacts on stable rust. I have created a repository with an example of this here. To minimally reproduce the error, run:
When building with static linking and LTO, I get the following error:
I have configured the
release
profile to use lto. When building with dynamic linking and LTO, or static linking without LTO, the build succeeds. This can be reproduced with eitherlto = "thin"
orlto = true
. To reproduce the error, runcargo build --release
. To disable static linking, use the--no-default-features
flag.Meta
rustc --version --verbose
:This issue is also seen on nightly:
rustc +nightly --version --verbose
: