When trying to update gettext as part of general system updated, the compilation of gettext fails to complete and it tells me to submit a bug report. The end of the compile displays the following... gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt ./bindtextdom.c -fPIC -DPIC -o .libs/bindtextdom.o gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt ./dcgettext.c -fPIC -DPIC -o .libs/dcgettext.o gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt ./dcgettext.c -o dcgettext.o >/dev/null 2>&1 /bin/sh ../libtool --mode=compile gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt ./dgettext.c ./bindtextdom.c: In function `set_binding_values': ./bindtextdom.c:346: internal compiler error: Illegal instruction Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /var/tmp/portage/gettext-0.12.1-r2/temp/cc8wPzg0.out file, please attach this to your bugreport. make[3]: *** [bindtextdom.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt ./dgettext.c -fPIC -DPIC -o .libs/dgettext.o gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib\" -DIN_LIBINTL -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"/usr/lib\" -DNO_XMALLOC -Dset_relocation_prefix=libintl_set_relocation_prefix -Drelocate=libintl_relocate -DDEPENDS_ON_LIBICONV=1 -DHAVE_CONFIG_H -I. -I. -I.. -mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt ./dgettext.c -o dgettext.o >/dev/null 2>&1 make[3]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime/intl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/gettext-0.12.1-r2/work/gettext-0.12.1/gettext-runtime' make: *** [all-recursive] Error 1 !!! ERROR: sys-devel/gettext-0.12.1-r2 failed. !!! Function src_compile, Line 54, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. emerge gettext Actual Results: Gettext fails to compile Expected Results: Gettext should compile Portage 2.0.51-r3 (default-ppc-2004.0, gcc-3.4.1, glibc-2.3.3.20040420-r2, 2.6.7-gentoo-r5 ppc) =============================================================== == System uname: 2.6.7-gentoo-r5 ppc 0 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.3-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" CHOST="powerpc-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=7400 -O2 -pipe -fsigned-char -maltivec -mabi=altivec -mpowerpc-gfxopt" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa altivec apache2 arts audiofile berkdb dvd esd f77 fortran gd gif gkt2 gnome gnome-libs gpm gtk imap imlib java jpeg ldap libwww mad maildir motif mozilla mysql nls oggvorbis opengl pam perl png ppc python readline samba sasl slang ssl tcltk tcpd tiff truetype usb xmms zlib"
Created attachment 45733 [details] Preprocessed source created by compilation attempt This is the preprocessed source that the error message asks to be attached to the bug report
What gcc version did you use?
The version I'm using is 3.4.1-r3 Doing 'emerge gcc -s' returns amongst it's output: * sys-devel/gcc Latest version available: 3.4.1-r3 Latest version installed: 3.4.1-r3 Size of downloaded files: 27,439 kB Homepage: http://www.gnu.org/software/gcc/gcc.html Description: The GNU Compiler Collection. Includes C/C++, java compilers, pie and ssp extensions License: GPL-2 LGPL-2.1
I had no trouble. Try removing some gcc flags. Also -mcpu is deprecated in favour of -mtune [ebuild R ] sys-devel/gcc-3.4.1-r3 -bootstrap -build -debug +fortran -gcj +gtk +hardened -multilib -n32 -n64 (-nls) -objc -static +uclibc emerge info Portage 2.0.51-r3 (uclibc/ppc, gcc-3.4.1, uclibc-0.9.26-r5, 2.6.9-gentoo-r1 ppc) ================================================================= System uname: 2.6.9-gentoo-r1 ppc 740/750 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.3-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r7 CFLAGS="-Os -pipe -mtune=750 -fno-strict-aliasing" CHOST="powerpc-pc-linux-uclibc" COMPILER="" MAKEOPTS="-j2"
Many thanks. Changing the CFLAGS seems to have solved the problem. I just copied yours and changed the -Os to -O2 and altered the -mtune to 740. Can't seem to find anything about -mtune in the PPC handbook. Or -mcpu either, now I come to mention it. How odd. Must have changed with the 2004.3 release. Anyway, I'm now using.. emerge info Portage 2.0.51-r3 (default-ppc-2004.0, gcc-3.4.1, glibc-2.3.3.20040420-r2, 2.6.7-gentoo-r5 ppc) ================================================================= System uname: 2.6.7-gentoo-r5 ppc 0 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.3-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mtune=740 -fno-strict-aliasing" CHOST="powerpc-unknown-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mtune=740 -fno-strict-aliasing" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa altivec apache2 arts audiofile berkdb dvd esd f77 fortran gd gif gkt2 gnome gnome-libs gpm gtk imap imlib java jpeg ldap libwww mad maildir motif mozilla mysql nls oggvorbis opengl pam perl png ppc python readline samba sasl slang ssl tcltk tcpd tiff truetype usb xmms zlib"