The following message is displayed and fails to compile on PPC64. stage1/xgcc -Bstage1/ -B/usr/powerpc64-unknown-linux-gnu/bin/ -c -O2 -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wold-style-definition -DHAVE_CONFIG_H -I. -I. -I/var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc -I/var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc/. -I/var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc/../include -I/var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc/../libcpp/include /var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc/c-decl.c -o c-decl.o /var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc/c-decl.c: In function 'make_label': /var/tmp/portage/gcc-4.0.0_beta20050305/work/gcc-4.0-20050305/gcc/c-decl.c:2358: internal compiler error: in simplify_subreg, at simplify-rtx.c:3677 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. make[2]: *** [c-decl.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-4.0.0_beta20050305/work/build/gcc' make[1]: *** [stageprofile_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-4.0.0_beta20050305/work/build/gcc' make: *** [profiledbootstrap] Error 2 !!! ERROR: sys-devel/gcc-4.0.0_beta20050305 failed. !!! Function gcc_do_make, Line 1165, Exitcode 2 !!! make failed with profiledbootstrap !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. add "-fortran" to USE flag. 2. cd /usr/portage/sys-devel/gcc 3. ebuild gcc-4.0.0_beta20050305.ebuild merge
Created attachment 54105 [details, diff] patch for toolchain.eclass The problem stopped occurring by applying the attached patch in my environment.
patch to toolchain.eclass that supposidly makes ppc64 compiling work fine.
thats not a fix, that's a workaround but considering it only affects ppc64, i dont really care ... if you guys dont mind the change, i'll add it
Vapier same issue is occuring on x86 platform as well with compile problems ... /var/tmp/portage/gcc-4.0.0_beta20050326/work/build/gcc/xgcc -B/var/tmp/portage/gcc-4.0.0_beta20050326/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include -DHAVE_CONFIG_H -I. -I/var/tmp/portage/gcc-4.0.0_beta20050326/work/gcc-4.0-20050326/libmudflap -I. -Wall -ffunction-sections -fdata-sections -O2 -O2 -march=athlon-xp -fprefetch-loop-arrays -pipe -MT mf-runtime.lo -MD -MP -MF .deps/mf-runtime.Tpo -c /var/tmp/portage/gcc-4.0.0_beta20050326/work/gcc-4.0-20050326/libmudflap/mf-runtime.c -fPIC -DPIC -o .libs/mf-runtime.o In file included from /var/tmp/portage/gcc-4.0.0_beta20050326/work/gcc-4.0-20050326/libmudflap/mf-impl.h:41, from /var/tmp/portage/gcc-4.0.0_beta20050326/work/gcc-4.0-20050326/libmudflap/mf-runtime.c:71: /usr/include/pthread.h:664: error: array type has incomplete element type make[2]: *** [mf-runtime.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-4.0.0_beta20050326/work/build/i686-pc-linux-gnu/libmudflap' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gcc-4.0.0_beta20050326/work/build/i686-pc-linux-gnu/libmudflap' make: *** [install-target-libmudflap] Error 2
Yuta: There are much newer snapshots of GCC4 in the tree now. Is this still an issue? Please report this bug upstream with the preprocessed sources if so. ICEs should not be happening and should be reported at http://gcc.gnu.org/bugzilla/ Kathryn: Completely different issue, please see bug 83403
Mark: Thanks for your comment. I tried compile of gcc-4.0.0_beta20050402 and was successful. I think that this problem was solved. Thank you. gcc -v output: Using built-in specs. Target: powerpc64-unknown-linux-gnu Configured with: /var/tmp/portage/gcc-4.0.0_beta20050402/work/gcc-4.0-20050402/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/powerpc64-unknown-linux-gnu/gcc-bin/4.0.0-beta20050402 --includedir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.0.0-beta20050402/include --datadir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.0.0-beta20050402 --mandir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.0.0-beta20050402/man --infodir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/4.0.0-beta20050402/info --with-gxx-include-dir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/4.0.0-beta20050402/include/g++-v4 --host=powerpc64-unknown-linux-gnu --enable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu Thread model: posix gcc version 4.0.0-beta20050402 (Gentoo Linux 4.0.0_beta20050402)
If you have more problems, feel free to reopen the bug.