You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build error: generated a symlink in a tarball #135554
When building rust-1.84.0 from the source tarball on Linux I'm seeing the following in a backtrace:
thread 'main' panicked at src/utils/tarball.rs:397:21: generated a symlink in a tarball: /builddir/build/BUILD/rustc-1.84.0-src/build/tmp/tarball/rustc/x86_64-unknown-linux-gnu/rustc-1.84.0-x86_64-unknown-linux-gnu/rustc/lib/rustlib/x86_64-unknown-linux-gnu/bin/rust-objcopy
Looking at another issue I tried llvm-tools = false and hit a different issue:
src.symlink_metadata() failed with No such file or directory (os error 2) ("src = /builddir/build/BUILD/rustc-1.84.0-src/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-objcopy")
I'm inclined to just patch out the test for the symlink in the tarfile for now as that appears to be only there because of windows but this seems like a problem regardless.
changed the title [-]1.84.0 profile="dist" build error: generated a symlink in a tarball[/-][+]build error: generated a symlink in a tarball[/+]on Jan 16, 2025
Activity
onur-ozkan commentedon Jan 16, 2025
We should resolve symlinks before adding them to tarballs. I plan to submit a PR for this in a few hours.
[-]1.84.0 profile="dist" build error: generated a symlink in a tarball[/-][+]build error: generated a symlink in a tarball[/+]onur-ozkan commentedon Jan 16, 2025
You can cherry-pick #135585 until we backport it into the stable release.
bryteise commentedon Jan 16, 2025
Thanks!
Rollup merge of rust-lang#135585 - onur-ozkan:135554, r=Kobzol
Unrolled build for rust-lang#135585