-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
revert #19891; nimRawSetjmp causes problems for mingw 32 bits too [backport]
#20758
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
Conversation
nimRawSetjmp causes problems for mingw 32 bits too
|
What's the problem? |
|
Here you are https://discord.com/channels/371759389889003530/371759389889003532/1038271070995763202
|
|
This seemed to at least fix some of the weird bugs we had with mingw-w64, but it was indeed enabled too broadly Maybe we could try to enable it only when it's available, or just revert it. |
|
@ringabout, I was unable to reproduce the error. I downloaded Nim 1.6.8 x86 and mingw32 from Nim's website, but I still can't reproduce the error with mingw32. Any possibility that he downloaded a mingw32 compiler different from the one available on the site? |
I don't know the details. Probably. |
|
One way to force such an error using mingw32 available on Nim's website is to pass -DUSE_NO_MINGW_SETJMP_TWO_ARGS Still the lines from setjmp.h don't match my error with the screenshot error. |
|
I discovered the problem. User is using mingw from "original" project https://mingw.osdn.io/ Even the setjmp.h file of this project matches the line that the gcc compiler claimed in the user image. It is now up to the Nim team to recommend only mingw32 from the Mingw-w64 project or revert |
nimRawSetjmp causes problems for mingw 32 bits toonimRawSetjmp causes problems for mingw 32 bits too [backport]
|
@narimiran backport please, thanks! |
|
Thanks for your hard work on this PR! Hint: mm: orc; opt: speed; options: -d:release |
…ts too [backport] (nim-lang#20758) revert nim-lang#19891
…ts too [backport] (nim-lang#20758) revert nim-lang#19891

revert #19891
ref #19957
It causes regression on 1.6.8 for mingw 32-bit + clang (msvc) on Windows
I'm looking into it.
cc @Menduist
It seems to cause problems for stew; ref status-im/nim-stew#133