Skip to content

[Link][Win10][MinGW] cannot perform PE operations on non PE output file #117929

@qiji2023

Description

@qiji2023

rust version: 1.26.0
OS: win10
target: x86_64-pc-windows-gnu

I have a c++ library about opencl gpu, I want to use rust to warp the library.

I get the following error log:

  = note: C:/Users/sh7799/xxxxx/applications/winlibs-x86_64-mcf-seh-gcc-13.2.0-mingw-w64ucrt-11.0.1-r2/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot perform PE operations on non PE output file 'C:\Users\sh7799\xxx\projects\aleo_snarkvm_bench\target\x86_64-pc-windows-gnu\release\deps\prover-2851aaf3149e5425.exe'
          collect2.exe: error: ld returned 1 exit status

obviously, it is a link-runtime error,

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-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