Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102932 - gcc-4.1.0_beta20050813: illegal instruction while compiling
Summary: gcc-4.1.0_beta20050813: illegal instruction while compiling
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-17 18:15 UTC by Daniel Kasak
Modified: 2005-08-17 18:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Kasak 2005-08-17 18:15:26 UTC
I'm compiling gcc-4.1.0_beta20050813 on my PPC system. I've had previous version
of 4.1.0_beta working ( amazingly well, in fact ), but this one doesn't compile.

Reproducible: Always
Steps to Reproduce:
1. emerge =gcc-4*

Actual Results:  
SHLIB_INSTALL='$(mkinstalldirs) $(DESTDIR)$(slibdir)@shlib_slibdir_qual@;
/bin/install -c -m 644 @multilib_dir@/@shlib_base_name@.so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so.1; rm -f
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so; ln -s
@shlib_base_name@.so.1
$(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@shlib_base_name@.so' \
SHLIB_EXT='.so' \
SHLIB_MULTILIB='' \
SHLIB_MKMAP='/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/mkmap-symver.awk'
\
SHLIB_MKMAP_OPTS='' \
SHLIB_MAPFILES='/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/libgcc-std.ver
/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/config/libgcc-glibc.ver'
\
SHLIB_NM_FLAGS='-pg' \
MULTILIB_OSDIRNAMES='' \
ASM_HIDDEN_OP='' \
GCC_FOR_TARGET=' ./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/tmp/portage/gcc-4.1.0_beta20050813/work/build/gcc/../ld' \
mkinstalldirs='/bin/sh
/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/../mkinstalldirs'
\
  /bin/sh mklibgcc > tmp-libgcc.mk
mv tmp-libgcc.mk libgcc.mk
./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/tmp/portage/gcc-4.1.0_beta20050813/work/build/gcc/../ld -O2 -O2 -O2
-mtune=7450 -mcpu=7450 -pipe  -DIN_GCC    -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -I. -I.
-I/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc
-I/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/.
-I/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/../include
-I/var/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/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/tmp/portage/gcc-4.1.0_beta20050813/work/gcc-4.1-20050813/gcc/crtstuff.c
-DCRT_BEGIN \
  -o crtbegin.o
xgcc: Internal error: Illegal instruction (program cc1)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-4.1.0_beta20050813/work/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-4.1.0_beta20050813/work/build/gcc'
make: *** [bootstrap-lean] Error 2

!!! ERROR: sys-devel/gcc-4.1.0_beta20050813 failed.
!!! Function gcc_do_make, Line 1225, Exitcode 2
!!! emake failed with bootstrap-lean
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
gcc compiles and installs :)

skitz ~ # emerge info
Portage 2.0.51.22-r2 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r7 ppc)
=================================================================
System uname: 2.6.12-gentoo-r7 ppc 7455, altivec supported
Gentoo Base System version 1.12.0_pre5
dev-lang/python:     2.3.5-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.12
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.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=7450 -mcpu=7450 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=7450 -mcpu=7450 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec berkdb bitmap-fonts cairo cdr cle266 composite crypt
cups curl dv dvd dvdr dvdread eds emboss encode esd fam fame fbcon firefox flac
fortran fping freetds gd gdbm gif glitz gnome gnutls gpm gstreamer gtk gtk2 hal
hfs imagemagick imlib ipv6 jack java jpeg junit libwww lzo mad mjpeg motif
mozcalendar mozilla mp3 mpeg mysql ncurses network nls nptl nptlonly odbc ogg
oggvorbis opengl pam pcmcia pdflib perl php pmud png pvm python quicktime
readline ruby samba sdl spell sqlite ssl tcltk tcpd theora threads tiff truetype
truetype-fonts type1-fonts unicode vcd vidix vorbis xine xml2 xmms xprint xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

skitz ~ #
Comment 1 SpanKY gentoo-dev 2005-08-17 18:21:09 UTC
try with newer snapshots

if they fail, file bugs upstream