Skip to content

rustbuild: can't cross compile from linux to x86_64-pc-windows-gnu #36291

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

Closed
japaric opened this issue Sep 6, 2016 · 1 comment
Closed

rustbuild: can't cross compile from linux to x86_64-pc-windows-gnu #36291

japaric opened this issue Sep 6, 2016 · 1 comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@japaric
Copy link
Member

japaric commented Sep 6, 2016

STR

$ python $SRC_DIR/src/bootstrap/bootstrap.py --stage 1 --step libstd-link --target x86_64-pc-windows-gnu
Building stage1 std artifacts (x86_64-unknown-linux-gnu -> x86_64-pc-windows-gnu)
   Compiling std_shim v0.1.0 (file:///shared/rust/master/src/rustc/std_shim)
error: extern location for std is of an unknown type: /home/japaric/build/x86_64-unknown-linux-gnu/stage1-std/x86_64-pc-windows-gnu/release/deps/std-e2265790837cbaa9.dll
  |
  = help: file name should be lib*.rlib or lib*..so

error: aborting due to previous error

error: Could not compile `std_shim`.

file name should be lib_.rlib or lib_..so

This looks weird. Isn't a .dll the right thing for this target?

Meta

$ git rev-parse HEAD
e77d86c142ae668038dd43594d04022cbd6bf4d8

cc @alexcrichton

@japaric japaric added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Sep 6, 2016
@alexcrichton
Copy link
Member

Could you try passing -v? Seems like --target may not be making its way to Cargo, or the rustc shim is really messing up here (probably the latter)

alexcrichton added a commit to alexcrichton/rust that referenced this issue Sep 13, 2016
bors added a commit that referenced this issue Sep 16, 2016
rustbuild: Fix cross-compiles to MinGW on Linux

Closes #36290
Closes #36291
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

2 participants