Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86188 - [patch] sys-devel/gcc-4.0.0_beta20050305 fails to compile on PPC64
Summary: [patch] sys-devel/gcc-4.0.0_beta20050305 fails to compile on PPC64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: ppc64 architecture team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-21 14:54 UTC by Yuta SATOH (RETIRED)
Modified: 2005-04-11 17:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for toolchain.eclass (toolchain.eclass.patch,568 bytes, patch)
2005-03-21 14:56 UTC, Yuta SATOH (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH (RETIRED) gentoo-dev 2005-03-21 14:54:21 UTC
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
Comment 1 Yuta SATOH (RETIRED) gentoo-dev 2005-03-21 14:56:44 UTC
Created attachment 54105 [details, diff]
patch for toolchain.eclass

The problem stopped occurring by applying the attached patch in my environment.
Comment 2 Chris White (RETIRED) gentoo-dev 2005-03-21 15:15:29 UTC
patch to toolchain.eclass that supposidly makes ppc64 compiling work fine.
Comment 3 SpanKY gentoo-dev 2005-03-21 17:39:33 UTC
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
Comment 4 Kathryn Kulick (RETIRED) gentoo-dev 2005-03-31 18:16:36 UTC
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
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-04-03 00:00:16 UTC
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
Comment 6 Yuta SATOH (RETIRED) gentoo-dev 2005-04-07 04:29:46 UTC
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)
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2005-04-11 17:38:30 UTC
If you have more problems, feel free to reopen the bug.