Summary: | gcc-3.4/ICE in cgraph_expand_function when using -O3 -finstrument-functions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Stefan Lucke <stefan> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Preprocessed source
emerge --info debug.c |
Description
Stefan Lucke
2006-04-14 17:34:23 UTC
Created attachment 84674 [details] Preprocessed source Error happens when DirectFB is configured with '--enable-multi --enable-debug --enable-trace' Error message from compiler: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -DDATADIR=\"/usr/local/share/directfb-0.9.25\" -DMODULEDIR=\"/usr/local/lib/directfb-0.9.25\" -D_REENTRANT -O3 -ffast-math -pipe -g3 -fno-inline -D_GNU_SOURCE -finstrument-functions -Werror-implicit-function-declaration -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -fPIC -DPIC -o .libs/debug.o debug.c: In function `direct_list_check_link': debug.c:63: internal compiler error: in cgraph_expand_function, at cgraphunit.c:540 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/cc6zsQqL.out file, please attach this to your bugreport. make[3]: *** [debug.lo] Error 1 make[3]: Leaving directory `/usr/local/src/directfb-2006-04-14/DirectFB/lib/direct' Upgrade gcc to latest stable version (3.4.5-r1) at least before reporting compiler issues. Also, can you reproduce the problem, i.e. - does it fail again at *exactly* the same place? It happens again allways at the same place on two different systems. To exclude some hardware issues I moved to an other box. Sorry for confusion. Initially it happens on a system with: gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../include -I../../lib -DDATADIR=\"/usr/local/share/directfb-0.9.25\" -DMODULEDIR=\"/usr/local/lib/directfb-0.9.25\" -D_REENTRANT -O3 -ffast-math -pipe -g3 -fno-inline -D_GNU_SOURCE -finstrument-functions -Werror-implicit-function-declaration -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c debug.c -fPIC -DPIC -o .libs/debug.o debug.c: In function `direct_list_check_link': debug.c:63: internal compiler error: in cgraph_expand_function, at cgraphunit.c:540 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccZoQSBa.out file, please attach this to your bugreport. make[3]: *** [debug.lo] Error 1 make[3]: Leaving directory `/usr/local/src/directfb-2006-04-14/DirectFB/lib/direct' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/directfb-2006-04-14/DirectFB/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/directfb-2006-04-14/DirectFB' make: *** [all] Error 2 bodega3b DirectFB # gcc --version gcc (GCC) 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. from emerge --search gcc * sys-devel/gcc Latest version available: 3.4.5-r1 Latest version installed: 3.4.5 Size of downloaded files: 85,642 kB Homepage: http://gcc.gnu.org/ Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten Brugge runtime bounds checking License: GPL-2 LGPL-2.1 (In reply to comment #3) > * sys-devel/gcc > Latest version available: 3.4.5-r1 > Latest version installed: 3.4.5 You are apparently not using 3.4.5-r1 to compile, see your emerge --info output. > Portage 2.1_pre6-r3 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, If you are using USE=multislot for gcc, you need to actually switch to the new version via gcc-config. Created attachment 84708 [details]
emerge --info
new emgerge --info after compiler upgrade
Shame on me. (In reply to comment #4) > (In reply to comment #3) > > * sys-devel/gcc > > Latest version available: 3.4.5-r1 > > Latest version installed: 3.4.5 > > You are apparently not using 3.4.5-r1 to compile, see your emerge --info > output. Sorry again, just after posting I saw the slight different footprint "-r1". After emgerge gcc, gcc reports itself now with: bodega3b DirectFB # gcc --version gcc (GCC) 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9) Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiler error message is still the same: debug.c: In function `direct_list_check_link': debug.c:63: internal compiler error: in cgraph_expand_function, at cgraphunit.c:540 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. > > > Portage 2.1_pre6-r3 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, > > If you are using USE=multislot for gcc, you need to actually switch to the new > version via gcc-config. > Attachend new emerge --info. There is no "multislot" string. So I don't understand this request. Created attachment 84753 [details]
debug.c
stripped down testcase
this failure is fixed in gcc-4.0+ gcc-3.4 is dead upstream and really we dont have the technical skills to fix the issue gcc doesnt ICE if you use -O2 so you should tweak your local checkout of DirectFB to use -O2 instead of -O3 (look in the configure / configure.in files) |