Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8229 - gcc 2.95.3 fails compiling glibc-2.2.5-r6 with -ggdb. Error: 'Internal compiler error'
Summary: gcc 2.95.3 fails compiling glibc-2.2.5-r6 with -ggdb. Error: 'Internal compil...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-22 15:31 UTC by Mikael A
Modified: 2003-04-03 16:55 UTC (History)
1 user (show)

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 Mikael A 2002-09-22 15:31:12 UTC
Fails: CFLAGS="-O2 -ggdb -mcpu=i686 -pipe"   
Works: CFLAGS="-O2 -g -mcpu=i686 -pipe"   
   
Errormessage:   
  
malloc.c:4000: Internal compiler error, output_operand_lossage `invalid    
expression as operand'    
  
/Mikael Andersson
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-09 09:27:25 UTC
please paste 
#emerge info

does this still occour with gcc 2.95.3-r8 ?
Comment 2 Mikael A 2003-01-22 19:08:35 UTC
Still borks with same error... 
 
gcc malloc.c -c -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -ggdb 
-mcpu=i686 -pipe   -fPIC -DMORECORE_CLEARS=2   -I../include -I. 
-I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/malloc -I.. -I../libio  
-I/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere -I../sysdeps/i386/elf 
-I../linuxthreads/sysdeps/unix/sysv/linux/i386 
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread 
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv 
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386/i686 
-I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu 
-I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet 
-I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 
-I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf 
-I../sysdeps/generic   -D_LIBC_REENTRANT -include ../include/libc-symbols.h  
-DPIC -DSHARED   -o 
/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/malloc/malloc.os 
malloc.c: In function `main_trim': 
malloc.c:4012: Internal compiler error, output_operand_lossage `invalid expression 
as operand' 
cpp0: output pipe has been closed 
make[2]: *** 
[/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/buildhere/malloc/malloc.os] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[2]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5/malloc' 
make[1]: *** [malloc/subdir_lib] Error 2 
make[1]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r7/work/glibc-2.2.5' 
make: *** [all] Error 2 
 
!!! ERROR: sys-libs/glibc-2.2.5-r7 failed. 
!!! Function src_compile, Line 66, Exitcode 2 
!!! (no error message) 
 
 
foo root # emerge info 
Portage 2.0.46-r9 (default-1.0, gcc-2.95.3, glibc-2.2.5-r4,2.2.5-r7) 
================================================================= 
System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) processor 
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config 
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="/data/portage" 
USE="x86 3dnow apm avi crypt cups encode jpeg kde libg++ mikmod mmx mpeg 
ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv aalib arts berkdb cdr esd 
gdbm ggi gif gnome-libs gpm gtk guile imlib java libwww motif mozilla nas nls 
oggvorbis opengl pam perl png python qt readline ruby scanner sdl slang ssl svga 
tcltk tcpd tetex tiff X gnome -oss alsa -fbcon -directfb" 
COMPILER="" 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-O2 -ggdb -mcpu=i686 -pipe" 
CXXFLAGS="-O2 -ggdb -mcpu=i686 -pipe" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache" 
 
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-04-03 16:55:17 UTC
ebuild now filters this flag (-r8)