Closed xMAC94x closed 4 years ago
This is a regression from https://github.com/rust-lang/rust/pull/71769.
Looks like the sess.target.target.options.linker_is_gnu
condition was lost, and clang for macos is apparently not "linker_is_gnu".
I'll fix this today.
Assigning P-high
as discussed as part of the Prioritization WG procedure.
awesome, i will confirm it, once it's in a good nightly build :)
Just wanted to confirm that with 2020-06-22
this error no longer occurs, so it is fixed now, thank you!
SUMMARY:
ǹightly-2020-04-17
andnightly-2020-06-10
linking behavior changes which broke my cross compilation from linux to macos. It now adds the-no-pie
which is unknown by my compiler. leaving it out would probably fix the error. Below are detailed informations about my project and the cross compilation setup in order to reproduce.Error message:
I tried this code:
We for the veloren project we have a CI docker container. i tried to update the toolchain. with docker the error is reproduceable quite easy, however if you are familar with docker you can skip some steps in order to save you a hour of compilation
I expected to see this happen:
Instead, this happened:
-no-pie
flag which isn't supported. Interestingly when you search in the rust code for this flag, you'll find a refactor about a month ago changingno-pie
behavior here: https://github.com/rust-lang/rust/commit/96a466c3128945627c2f81ec13b8ae98be7c3749. however i personally dont know how that caused the change.Meta
rustc --version --verbose
: