-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
gcc commandline defines passed case-insensitive, causing clashes with variable names #3575
Comments
link to the bug you mentioned: https://sourceforge.net/p/mingw/bugs/2183/ |
A user comment in the OpenBLAS issue thread suggests that the problem can be worked around by downgrading your currently available mingw-w64 crt, headers and tools packages to your archived |
@martin-frbg well need then bisect mingw-w64 commit that leads to this issue. So need check commits between this dates. Maybe need also check 6.0.0.5114 package builded on 28.02.18. It may decrease commits to check |
Checked that 6.0.0.5114 seems to work, |
New comment by "pingplug" in the OpenBLAS issue traces this to https://sourceforge.net/p/mingw-w64/mingw-w64/ci/0f9569488ba7e48472183765a7ae6555ed990f4a in mingw-w64-headers where a new struct containing a |
I have created ticket 736 on the mingw-w64 issue tracker at sourceforge now |
So it seems the issue actually comes from the addition of the conflicting definitions to the winnt.h of Windows10, and my initial assumption that an old bug with very similar symptoms had returned was unfounded. Sorry for the noise. |
Fixed in Alexpux@3ab133b |
Over at the OpenBLAS project, our build instructions for Windows were recently changed to recommend msys2.org and the mingw compiler it pulls in from pacman, rather than the mingw-w64 project hosted on sourceforge. This has now led to OpenMathLib/OpenBLAS#1503, where a gcc command line containing "-DCR" (with matching "if defined(CR)" in the sources) results in the error message
researching this message led me to mingw bug 2183 from around the time of gcc-4.8.1, where similar
behaviour was demonstrated with -DUI and a lowercase "ui" used somewhere as a shorthand for "unsigned int" in a system header. Indeed the OpenBLAS build failure can be worked around by
changing "CR" to "CRX" so it looks like it is still the same problem. Needless to say, the current mingw-w64 from sourceforge (or any other compiler for that matter) do not show this misbehaviour.
The text was updated successfully, but these errors were encountered: