-
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 10.2.0-6 with LTO segfaults #8074
Comments
I can confirm, but no idea. We build CPython with LTO+PGO, so LTO can work with our toolchain.. if that helps. |
You are not exporting symbols in DLL correctly, mingw-w64 can often workaround it by using runtime pseudo relocations but it's fragile. You should build your DLL with |
Thank you, I am going to add decls together with PS previous version of |
Unfortunately today gcc has critical issue that makes Suddenly new MSVC with C17 turned out to be not so bad: |
This is what we do to export all symbols, it works just fine. |
Unfortunately,
|
This bug appeared today, but nobody can guarentee that it won't happen tomorrow. I thought that there are 2 possible export modes: Do you remember this meme? It was wrong: if you have 14 standards and someone tries to add +1 standard than you will receive all combinations between 14 standards and 1 additional standard (turned off and turned on) = 28 standards. If someone tries to add 2 standards (gnu and bsd) than we will receive 56 standards. |
Please refer the following issue on cmake gitlab.
If you tries to enable IPO (GCC LTO) in cmake using
mingw-w64-x86_64-gcc
version 10.2.0-6, than you executable segfaults.Please checkout IPO folder with easy project that reproduces the issue.
The text was updated successfully, but these errors were encountered: