-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-compilation with MinGW broken #59
Comments
Actually there is a small difference in Working:
Not working:
So it is added twice in the case it does not work? Setting it to the "working version" seems to do nothing though. |
AH! There is a difference (that also makes sense): Working:
Not working:
Is it really expected that a derivation using the Rust compiler gets the host platform compiler as a |
Note also that you will only be able to repro this error when you have a |
I have created an example+repro case in #60. Feel free to only use it to reproduce the issue or keep it as a permanent example/test :) I also added a CI job that fails with this exact error. |
This is done by using our own fork of the Rust overlay. Issue reported here: oxalica/rust-overlay#59
This is done by using our own fork of the Rust overlay. Issue reported here: oxalica/rust-overlay#59
I use Here the issue is that CC wrapper for build script thinks it's from |
Thank you! Yeah, this seems like more of a nixpkgs bug? |
Found that I Now it's fixed. |
Hi,
c7ed82b broke our cross-compilation for Windows. It seems that with this change,
buildInputs
(i.e.depsHostTarget
) end up in the linker for thebuild
platform (i.e. Linux) which results in/nix/store/5ddb4j8z84p6sjphr0kh6cbq5jd12ncs-binutils-2.35.1/bin/ld: /nix/store/pl9raxwyb6jg662ljd9f1q3hrb2cni8l-pthreads-w32-x86_64-w64-mingw32-2.9.1/lib/libpthread.a: error adding symbols: file format not recognized
.The commit before c7ed82b works as expected.
NIX_LDFLAGS
andNIX_LDFLAGS_FOR_BUILD
looks the same in both a working and non-working case though?The text was updated successfully, but these errors were encountered: