| Summary: | Gettext compile error - complains of Illegal Instruction | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | alex p <ma202ap> |
| Component: | [OLD] Core system | Assignee: | PPC Porters <ppc> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | PPC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Preprocessed source created by compilation attempt | ||
|
Description
alex p
2004-12-11 05:20:47 UTC
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" |