-
Notifications
You must be signed in to change notification settings - Fork 117
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
rsrc merge failure: corrupt .rsrc section #39
Comments
Did you end up fixing this at all? |
I don't have a Windows machine handy unfortunately - can you post the files so we can reproduce? |
Is there any way you can post the minimal fully executable code for me to test with? |
I have a similar problem. Created a test repo here: |
While I don't use goversioninfo, I did experience the same issue when generating syso files using rsrc on Windows 10. .syso files generated with However, .syso files generated with I finally managed to resolve the issue by downgrading from TDM-GCC 9.2.0 to TDM-GCC 5.1.0-2. Kudos to @rodolfoag whose answer I found here. @pitw Can confirm your test project compiles successfully using TDM-GCC 5.1.0-2. |
Hello. Edit : Tried a quick and dirty fix on pitw's test repo. It worked.
⇨ No error.
⇨ |
Nice, replaced Thanks for the heads up @tc-hib |
When having C code to compile (such as |
@ldstein and others: if you are still using my fork please use the original one again as the bug has been properly fixed by akavel. And I'd like to delete my forks of rsrc and goversioninfo as my quick fix was bad. |
I'm sorry, looks like I talked a bit too early. Current version of rsrc still seems to require a bug fix. |
Just updated github.com/akavel/rsrc to v0.10.2. but as @tc-hib said, looks like there is still a bug. |
C:/Tools/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: $WORK\b001\exe\a.out.exe: .rsrc merge failure: corrupt .rsrc section
The go generate command is
//go:generate goversioninfo -64 -icon=./resource/pipeline.ico -manifest=./resource/PipeIt.exe.manifest
My platform is Windows 10 64bit with go version go1.13.5 windows/amd64
The text was updated successfully, but these errors were encountered: