Current version of GCC 4.0.1 failed to build on my system if portage apply current patchset (1.0 - 4.0.1_pre20050616) to it. The same problem can be reproduced with all previous version where this patchset was applied. When I remove it gcc builds without any problems. But if I try to build a gcc with them it fails at first xgcc call with following error message: ======== ./xgcc -B./ -B/usr/powerpc-unknown-linux-gnu/bin/ -isystem /usr/powerpc-unknown- linux-gnu/include -isystem /usr/powerpc-unknown-linux-gnu/sys-include -L/var/ portage/gcc-4.0.1_pre20050702/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc -I/var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/. -I/var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/../include -I/ var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero- initialized-in-bss -fno-unit-at-a-time -msdata=none \ -c /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o ./xgcc -B./ -B/usr/powerpc-unknown-linux-gnu/bin/ -isystem /usr/powerpc-unknown- linux-gnu/include -isystem /usr/powerpc-unknown-linux-gnu/sys-include -L/var/ portage/gcc-4.0.1_pre20050702/work/build/gcc/../ld -O2 -DIN_GCC -W -Wall - Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I/var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc -I/var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/. -I/var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/../include -I/ var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/../libcpp/include -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero- initialized-in-bss -fno-unit-at-a-time -fPIC -msdata=none \ -c /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1-20050702/gcc/crtstuff.c -DCRT_BEGIN -DCRTSTUFFS_O \ -o crtbeginS.o In file included from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/tsystem.h:90, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/crtstuff.c:64: /usr/include/stdio.h:353: error: format string argument not a string type /usr/include/stdio.h:357: error: format string argument not a string type /usr/include/stdio.h:366: error: format string argument not a string type /usr/include/stdio.h:369: error: format string argument not a string type /usr/include/stdio.h:372: error: format string argument not a string type /usr/include/stdio.h:382: error: format string argument not a string type /usr/include/stdio.h:384: error: format string argument not a string type /usr/include/stdio.h:413: error: format string argument not a string type /usr/include/stdio.h:420: error: format string argument not a string type In file included from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/tsystem.h:90, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/crtstuff.c:64: /usr/include/stdio.h:353: error: format string argument not a string type /usr/include/stdio.h:357: error: format string argument not a string type /usr/include/stdio.h:366: error: format string argument not a string type /usr/include/stdio.h:369: error: format string argument not a string type /usr/include/stdio.h:372: error: format string argument not a string type /usr/include/stdio.h:382: error: format string argument not a string type /usr/include/stdio.h:384: error: format string argument not a string type /usr/include/stdio.h:413: error: format string argument not a string type /usr/include/stdio.h:420: error: format string argument not a string type /usr/include/stdio.h:425: error: format string argument not a string type In file included from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/tsystem.h:90, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/crtstuff.c:64: /usr/include/stdio.h:796: error: format string argument not a string type /usr/include/stdio.h:800: error: format string argument not a string type /usr/include/stdio.h:425: error: format string argument not a string type In file included from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/tsystem.h:90, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/crtstuff.c:64: /usr/include/stdio.h:796: error: format string argument not a string type /usr/include/stdio.h:800: error: format string argument not a string type In file included from /usr/include/sys/select.h:34, from /usr/include/sys/types.h:216, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/tsystem.h:93, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/crtstuff.c:64: /usr/include/bits/sigset.h:31: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. In file included from /usr/include/sys/select.h:34, from /usr/include/sys/types.h:216, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/tsystem.h:93, from /var/portage/gcc-4.0.1_pre20050702/work/gcc-4.0.1- 20050702/gcc/crtstuff.c:64: /usr/include/bits/sigset.h:31: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/portage/gcc-4.0.1_pre20050702/temp/ cc9ccG2J.out file, please attach this to your bugreport. make[2]: *** [crtbeginS.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Preprocessed source stored into /var/portage/gcc-4.0.1_pre20050702/temp/ cccRSvgh.out file, please attach this to your bugreport. make[2]: *** [crtbegin.o] Error 1 rm gfortran.pod make[2]: Leaving directory `/var/portage/gcc-4.0.1_pre20050702/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/portage/gcc-4.0.1_pre20050702/work/build/gcc' make: *** [bootstrap-lean] Error 2 ======== My emerge --info Portage 2.0.51.22-r1 (default-linux/ppc/2005.0, gcc-4.0.1-pre20050607, glibc-2. 3.5.20050421-r0, 2.6.12-pain ppc) ================================================================= System uname: 2.6.12-pain ppc 7447/7457, altivec supported Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.8.1-r1, 2.6.11-r2 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -fomit-frame-pointer -fno-strict-aliasing -fsigned-char -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/ share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb / usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/ env.d" CXXFLAGS="-mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -O2 -fomit-frame- pointer -fno-strict-aliasing -fsigned-char -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" LANG="pl_PL.UTF-8" LC_ALL="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" Reproducible: Always Steps to Reproduce: 1. emerge = gcc-4.0.1_pre20050702
If someone is interested gcc 4.0.1 still has a faulty patchset and failed to build with identical error message on ppc.
built fine for me on x86_64
Could you see if you can narrow it down to a patch? There are a few in the patchset that are PPC specific. I'm working on getting access to a PPC box so I can do some of my own testing.
This is resolved with the newest patchset that gcc-4.0.1 uses.