-
Notifications
You must be signed in to change notification settings - Fork 96
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
Problems with gcc9 #317
Comments
I actually just did a full system rebuild so I will try these packages ASAP. |
The problem is not the build, that works very well, you had to test every application. They crashed. And then I don't know, where is the reason. Because I rebuild mpv with standard flags but it crashed again with a memory access error. |
@KlausMeier I usually don't do (read "never") full system rebuild after GCC upgrade, but only packages containing static libraries (similar to lto-rebuild). So media-video/mpv-0.29.1-r1::gentoo was built with the following:
USE="X alsa cli egl iconv jack jpeg lcms libass lua luajit openal opengl pulseaudio uchardet vdpau xv zlib (-aqua) -archive -bluray -cdda (-coreaudio) -cplugins -cuda -doc -drm -dvb -dvd -gbm -javascript -libcaca -libmpv -oss (-raspberry-pi) -rubberband -samba -sdl (-selinux) -test -tools -v4l -vaapi -vulkan -wayland -zsh-completion" ABI_X86="(64)" PYTHON_TARGETS="python2_7 python3_7 -python3_5 -python3_6"
CFLAGS="-march=native -O3 -pipe -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -fipa-pta -flto=3 -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
CXXFLAGS="-march=native -O3 -pipe -fgraphite-identity -ftree-loop-distribution -floop-nest-optimize -fipa-pta -flto=3 -fuse-linker-plugin -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" |
Yes, I told you, this is not a problem of mpv. I rebuild mpv with standard flags and it crashed again. But I told you three times, that it is not a problem of mpv but a problem of a library. And i don't know which library. mpv crashed, because I rebuild a library, that you don't rebuild. |
I am getting a crash on |
This Is Why I dont Built with ipa and no-plt and no others strange flags gcc 9.1 worked fine here but i rolled back to my backup with no ipa and no no-plt and fastmath i masked gcc 9.1 and everything works fine this way also i changed from ld.gold to bfd and compiled firefox with clang+pgo+lto+-O3 everything working fine CC="gcc" |
I don't see what any of that has to do with this. |
Getting a:
Qt and systemsettings are compiled with GCC 9.1, |
My other KDE apps seem fine too |
Updated Qt to 5.13.9999, problem does not seem present anymore! |
|
It's not a supported configuration, but it shouldn't break anything at least. |
Update: Downgraded again to Qt 5.12.3, did a full rebuild of KDE. systemsettings5 problem is still resolved. |
Kodi seems to work fine too. |
@KlausMeier under what circumstances does |
After the switch had also a crash with systemsettings5, and as suggested I tried to rebuild qt packages, with no success. Attempting to build the packages in order to obtain meaningful debug info, I realized that in my case the culprit was kde-frameworks/kactivities-stats package build with -O3: overriding the flags with -O2 get rid of the problem. |
At the moment I rebuild my system step for step with |
You may have to rebuild KDE too. The crashes stopped after I fully rebuilt Qt and KDE. |
I rebuild frameworks, no I can use the settings. |
Try rebuilding anything in |
First, I am not on Gentoo but on Tumbleweed, but I've encountered similar symptoms as mentioned by the op while compiling the 32 bit build of Intel's Threading Building Blocks with GCC 9.1 and 10. The compilation itself is fine but as soon as I start the app where I use the binaries, it crashes back to desktop halfway through a loading screen. This is with the release build, the debug build runs fine. I had no such issues, even with the most aggressive compiler flags with GCC 8.3.1. More details here: uxlfoundation/oneTBB#145 If someone could replicate the issue or tell me what the problem is, that would already help. |
There seem to be issues with wine and gcc 9 too: |
Everybody aware, but for collection: bcache corruption bug |
Hopefully those problems can be fixed in a point release of GCC. |
Yep. Building kde-frameworks/kactivities-stats with -O2 worked for me. |
More GCC 9 problems ... https://bugzilla.suse.com/show_bug.cgi?id=1137071#c11 There's self-contained test-casechar memory[128];
int main(int argc, char **argv)
{
const char *str;
switch (argc)
{
case 1:
str = (const char []){'C','h','a','i','n','i','n','g','M','o','d','e','E','C','B',0}; break;
default:
str = (const char []){'C','h','a','i','n','i','n','g','M','o','d','e','G','C','M',0}; break;
}
__builtin_memcpy(memory, str, __builtin_strlen (str) + 1);
if (memory[14] != 'B')
__builtin_abort ();
return 0;
} https://www.gnu.org/software/gcc/gcc-9/porting_to.html#complit Should we use wine2.c: In function 'main':
wine2.c:9:28: error: ISO C90 forbids compound literals [-Werror=c90-c99-compat]
9 | str = (const char []){'C','h','a','i','n','i','n','g','M','o','d','e','E','C','B',0}; break;
| ^
wine2.c:11:28: error: ISO C90 forbids compound literals [-Werror=c90-c99-compat]
11 | str = (const char []){'C','h','a','i','n','i','n','g','M','o','d','e','G','C','M',0}; break;
| ^
cc1: some warnings being treated as errors Otherwise it's pain in the ass. |
|
It's tough, because When the GCC devs fixed the bug, the code written that depended on it working broke. |
I currently testing "Possible performance hit" vs "possible data lose". |
I keep having |
With gcc8 everything works fine for me. But after switching to gcc9 I had no problem to build the packages, but some packages crashed, when I start them. There was mpv, kodi and the plasma system settings. But I think, they crashed because of some libraries. I rebuild mpv with normal cflags, no difference. At the moment I try with -O2.
The text was updated successfully, but these errors were encountered: