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
Hard-coded strip path breaks Linux -> Darwin builds #131206
I cross-compile code for Darwin from Linux, which now fails due to the strip path being hard-coded in latest nightly, which I believe is caused by this PR #130781
I expected to see this happen: successful compilation
Instead, this happened:
error: unable to run `/usr/bin/strip`: No such file or directory (os error 2)
I'm not sure why /usr/bin/strip was chosen as the strip to use, as an end user - that is surprising, in fact I would have expected the strip from the environment to be used by default. If the intention is to set a default to a hardcoded path, then it looks like a configuration option must be provided.
Alternatively, perhaps cargo could use /usr/bin/strip if found and otherwise use strip from environment?
@taiki-e no, that's a different issue, since strip does work fine on Linux to strip Darwin binaries. The issue here is the hardcoded path introduced a week ago
Oh, sorry, I missed the information that that used to work.
(In any case, I think the correct solution to these problems is the same one: #123151)
indeed, LLVM strip works great for my use case, on current nightly, however, there is no way to make sure it's used other than explicitly putting the binary in /usr/bin/strip.
Will #123151 land before 1.83? I don't think #130781 should land in a release and seems that it currently targets 1.83
Activity
taiki-e commentedon Oct 3, 2024
Duplicate of #114411(The results are not exactly the same, but things are broken for the same cause.)
rvolosatovs commentedon Oct 3, 2024
@taiki-e no, that's a different issue, since
stripdoes work fine on Linux to strip Darwin binaries. The issue here is the hardcoded path introduced a week agobuild(nix): pin nightly rust
build(nix): pin nightly rust
taiki-e commentedon Oct 3, 2024
Oh, sorry, I missed the information that that used to work.
(In any case, I think the correct solution to these problems is the same one: #123151)
rvolosatovs commentedon Oct 3, 2024
indeed, LLVM
stripworks great for my use case, on currentnightly, however, there is no way to make sure it's used other than explicitly putting the binary in/usr/bin/strip.Will #123151 land before 1.83? I don't think #130781 should land in a release and seems that it currently targets 1.83
build(nix): pin nightly rust
jieyouxu commentedon Oct 3, 2024
#130781 cc @monkeydbobo and @davidtwco
Not sure how to solve the strip situation...
10 remaining items
madsmtm commentedon Oct 10, 2024
Opened #131480 to fix this directly, in case #131405 ends up taking some time.
Rollup merge of rust-lang#131480 - madsmtm:macos-fix-strip-binary, r=…
Unrolled build for rust-lang#131480
Rollup merge of rust-lang#131405 - davidtwco:hardcoded-strip-macos, r…
Unrolled build for rust-lang#131405
Auto merge of rust-lang#138250 - jieyouxu:ios-mitigation, r=<try>
Auto merge of rust-lang#138250 - jieyouxu:ios-mitigation, r=<try>
feat: bump rust version to 1.86
feat: bump rust version to 1.86
feat: bump rust version to 1.86
feat: bump rust version to 1.86
feat: bump rust version to 1.86