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

Fix "Failed to create syso file: exit status 1" error. #16

Closed
wants to merge 1 commit into from

Conversation

txfly
Copy link

@txfly txfly commented Aug 7, 2019

Fix "Failed to create syso file: exit status 1" error when "windres.exe" is in the "Program Files (x86)" or "Program Files" path.

…xe" is in the "Program Files (x86)" or "Program Files" path.
@RadhiFadlillah
Copy link
Collaborator

Hi @txfly, thanks for the PR.

Unfortunately, I can't merge this PR because IMHO it fixed the wrong issue. As far as I know, windres fails usually because one of these two cases :

  • The path to windres is not valid nor exists; or
  • The submitted windres is not compatible with the other tools like gcc or g++ that specified in qamel profile.

In this case, I think your issue is happened because of the latter, especially considering your windres is located in Program Files which is not the usual installation place for Qt or MSYS2.

I think the main issue that need to be done first is the useless error message, since exit status 1 is not really helpful to understand why windres fail to run.

With that said, I've already committed the fix to make error message more useful. If you would, please try and check it again. If the error stil persists, feels free to open new issue or new PR :).

@RadhiFadlillah
Copy link
Collaborator

RadhiFadlillah commented Aug 11, 2019

After more investigation, it seems this issue happened because of the shells.

When using cmd or powershell, this issue happened. However, when I uses third party shells like cmder the problem doesn't happened.

@RadhiFadlillah
Copy link
Collaborator

After more investigation in #15, apparently the only terminal that works properly in Windows 10 cmder, while cmd and powershell is failed with message :

Failed to build app: exit status 1
go build runtime/cgo: c:\go\pkg\tool\windows_amd64\cgo.exe: exit status 2

@RadhiFadlillah
Copy link
Collaborator

I'll close this PR for now. Meanwhile, the issue with cmd and powershell will be tracked in #18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants