Skip to content

Cannot build on x86_64-pc-windows-gnu target. #155

@spector-9

Description

@spector-9

Expected Behaviour

For program to build without error just like it does on mac, linux or windows msvc target.

Actual Behaviour

I get compilation errors. Most probably related to the flag in build.rs that require msvc.

Steps to Reproduce

Just switch target to use gnu tool chain and it fails.

Platform and Version

Windows 11, rustc version = 1.67.0

Logs taken while reproducing problem

It shows the following error.

  cargo:warning=g++.exe: warning: /EHsc: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /EHsc: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /GF: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /GF: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /GS: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /GS: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /MP: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /MP: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4100: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4100: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4189: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4189: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4245: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4245: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4310: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4310: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4458: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4458: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4505: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4505: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4530: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4530: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4701: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4701: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4702: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4702: linker input file not found: No such file or directory
  cargo:warning=g++.exe: warning: /wd4996: linker input file unused because linking not done
  cargo:warning=g++.exe: error: /wd4996: linker input file not found: No such file or directory
  exit code: 1

  --- stderr
  INFO: building standard FFI for crate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions