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

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

Closed
spector-9 opened this issue Jan 30, 2023 · 5 comments
Closed

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

spector-9 opened this issue Jan 30, 2023 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@spector-9
Copy link
Contributor

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
@scouten-adobe scouten-adobe added bug Something isn't working help wanted Extra attention is needed labels Jan 30, 2023
@scouten-adobe
Copy link
Member

@adobe export issue to Jira project CAI as bug

@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/CAI-3439 is successfully created for this GitHub issue.

@adobe adobe deleted a comment from github-jira-sync-bot Jan 30, 2023
@adobe adobe deleted a comment from github-jira-sync-bot Jan 30, 2023
@scouten-adobe
Copy link
Member

@spector-9 Windows is not my strong suit (and gnu on Windows especially so). I'll look into it as time permits, but if you or anyone else has the time to put together a PR for to address this, I'd be happy to review and merge it.

@spector-9
Copy link
Contributor Author

spector-9 commented Feb 3, 2023

@scouten-adobe Now I realize that the main fault lies with the original XMP-toolkit-sdk since that does not compile without visual studio. So while there might be a few changes required in the build.rs of this project, proper changes need to happen upstream.

@scouten-adobe
Copy link
Member

@spector-9 that is out of my purview. I'd suggest going to the upstream repo and asking for build support there; if they do, we can try to follow here. Closing as won't support unless that happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants