Skip to content
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

Error in cross compile: linking with C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe failed: exit code: 1 #65988

Closed
luisvgs opened this issue Oct 31, 2019 · 1 comment
Labels
A-cross Area: Cross compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. O-windows-gnu Toolchain: GNU, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@luisvgs
Copy link

luisvgs commented Oct 31, 2019

Hi, I'm currently trying to run the triangle example by Vulkano-rs, unfortunately I'm getting the following error:

   Compiling rand_jitter v0.1.4
   Compiling time v0.1.42
   Compiling winit v0.19.4
   Compiling vulkano-shaders v0.13.0
   Compiling rand v0.6.5
   Compiling jpeg-decoder v0.1.16
   Compiling cgmath v0.17.0
   Compiling image v0.21.3
   Compiling vulkano-win v0.13.0
error: linking with `C:\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe` failed: exit code: 1

Full error here

I followed this workaround by peope who faced a similar issue, but I didn't had luck.

I'm trying to cross compile using: cargo build --target x86_64-pc-windows-gnu --bin triangle. My current toolchain is stable-x86_64-pc-windows-msvc. I have C:\msys64\mingw64\bin in my PATH.

This is inside my ./cargo./config file:

[target.x86_64-pc-windows-gnu]
rustflags=["-Clink-arg=-lworkaround_47048"]
linker="C:\\msys64\\mingw64\\bin\\x86_64-w64-mingw32-gcc.exe"
ar="C:\\msys64\\mingw64\\bin\\ar.exe"

What am I missing? What am I doing wrong? I'm running out of ideas. I kindly ask for suggestions.

@jonas-schievink jonas-schievink added A-cross Area: Cross compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. O-windows-gnu Toolchain: GNU, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 17, 2019
@mati865
Copy link
Contributor

mati865 commented Apr 3, 2020

Root issue has been fixed by #67429 and this is not the place to report issues like this one anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cross Area: Cross compilation A-linkage Area: linking into static, shared libraries and binaries C-bug Category: This is a bug. O-windows-gnu Toolchain: GNU, Operating system: Windows T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants