Uh oh!
There was an error while loading. Please reload this page.
The illumos linker does not support --strip-debug - #102418
Conversation
rust-highfive
commented
Sep 28, 2022
r? @nagisa (rust-highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
I believe the intended solution here would be to invoke an external tool after linking that could do this, similar to the handling for macOS as introduced in #82037.
You probably could just reuse the code path there, for the time being. That way when somebody gets to fixing the way we represent linkers in rustc, illumos will get automatically handled the mostly “right” way alongside with macOS (though you should still keep the comment to the effect that illumos does support --strip-all and could be improved to use that too)
There was a problem hiding this comment.
Thanks for taking a look at this. I've pushed a new commit which uses the linker's --strip-all but invokes an external strip utility for the --strip-debug case. After talking to people who know more about linkers than I do, they advised that it is best to let the linker do this when possible, hence the hybrid approach.
It may be that the illumos linker can be extended in the future to support --strip-debug but until then this seems like the best approach, and I'd like people to be able to successfully run the tests on illumos again.
709ea1b to
f8a3dc4Comparenagisa
commented
Oct 9, 2022
@bors r+ Seems OK. |
bors
commented
Oct 9, 2022
…agisa The illumos linker does not support --strip-debug When building and testing rust 1.64.0 on illumos, we saw a large number of failing tests associated with: ``` = note: ld: fatal: unrecognized option '--strip-debug' ld: fatal: use the -z help option for usage information collect2: error: ld returned 1 exit status ``` The illumos linker does not support the `--strip-debug` option (although it does support `--strip-all`).
JohnTitor
commented
Oct 10, 2022
This needs to run rustfmt (somehow CI didn't run on this PR): #102865 (comment) |
f8a3dc4 to
bb244dfComparebb244df to
f3deac2Comparecitrus-it
commented
Oct 15, 2022
I've run nightly rustfmt on |
lqd
commented
Oct 15, 2022
Don't run your local rustfmt manually, it won't be the correct version and you'll miss parameters (e.g. the edition), causing the errors above. Use |
citrus-it
commented
Oct 15, 2022
Thanks, I've run that, it exited cleanly and made no changes. |
That means the formatting changes you pushed earlier fixed all the formatting issues (and So the branch is now correctly formatted. Tidy passes, CI is green. |
nagisa
commented
Oct 18, 2022
@bors r+ |
bors
commented
Oct 18, 2022
bors
commented
Oct 18, 2022
bors
commented
Oct 18, 2022
☀️ Test successful - checks-actions |
rust-timer
commented
Oct 18, 2022
Finished benchmarking commit (a24a020): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Footnotes |
The illumos linker does not support --strip-debug When building and testing rust 1.64.0 on illumos, we saw a large number of failing tests associated with: ``` = note: ld: fatal: unrecognized option '--strip-debug' ld: fatal: use the -z help option for usage information collect2: error: ld returned 1 exit status ``` The illumos linker does not support the `--strip-debug` option (although it does support `--strip-all`).
When building and testing rust 1.64.0 on illumos, we saw a large number of failing tests associated with:
The illumos linker does not support the
--strip-debugoption (although it does support--strip-all).