Skip to content

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

Closed
@luisvgs

Description

@luisvgs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-crossArea: Cross compilationA-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.O-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions