Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104142 - Problem compiling gcc4.1.0_beta20050826
Summary: Problem compiling gcc4.1.0_beta20050826
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-29 07:33 UTC by Luis Felipe
Modified: 2005-08-31 01:17 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 Luis Felipe 2005-08-29 07:33:25 UTC
Whilst trying to compile this version of gcc, I'm getting this error :

./xgcc -B./ -B/usr/i686-pc-linux-gnu/bin/ -isystem
/usr/i686-pc-linux-gnu/include -isystem /usr/i686-pc-linux-gnu/sys-include
-L/var/tmp/portage/gcc-4.1.0_beta20050826/work/build/gcc/../ld -O2  -O2 -O2
-march=athlon-xp -pipe  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I.
-I/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc
-I/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/.
-I/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/../include
-I/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/../libcpp/include
 -DL_popcountdi2 -fvisibility=hidden -DHIDE_EXPORTS -c
/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/libgcc2.c -o
libgcc/./_popcountdi2.o
/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/libgcc2.c: In
function '__popcountdi2':
/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/libgcc2.c:765:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
*** glibc detected *** ./cc1: corrupted double-linked list: 0xb7eec878 ***
======= Backtrace: =========
/lib/libc.so.6[0xb7e38c51]
/lib/libc.so.6[0xb7e38deb]
/lib/libc.so.6[0xb7e399a0]
/lib/libc.so.6(malloc+0x7f)[0xb7e3aebf]
/usr/lib/libsandbox.so[0xb7f066d0]
/usr/lib/libsandbox.so[0xb7f07333]
/usr/lib/libsandbox.so(open+0x54)[0xb7f08f44]
./cc1[0x87b9ab3]
./cc1[0x87b9ec6]
/lib/libc.so.6(exit+0x65)[0xb7e02795]
./cc1[0x8257cbf]
./cc1[0x82577bb]
./cc1[0x8257aac]
./cc1[0x85bffd9]
[0xffffe420]
./cc1[0x86a9827]
./cc1[0x86aceb0]
./cc1[0x85fb263]
./cc1[0x85fb515]
./cc1[0x85fb552]
./cc1[0x80fd810]
./cc1[0x805ea44]
./cc1[0x8671ea6]
./cc1[0x8672bc1]
./cc1[0x806875c]
./cc1[0x85c311b]
./cc1[0x80da87c]
/lib/libc.so.6(__libc_start_main+0xec)[0xb7dec55c]
./cc1(calloc+0x169)[0x8049c01]
======= Memory map: ========
08048000-0885c000 r-xp 00000000 03:02 163466    
/var/tmp/portage/gcc-4.1.0_beta20050826/work/build/gcc/cc1
0885c000-08892000 rw-p 00814000 03:02 163466    
/var/tmp/portage/gcc-4.1.0_beta20050826/work/build/gcc/cc1
08892000-08bcb000 rw-p 08892000 00:00 0          [heap]
b7900000-b7921000 rw-p b7900000 00:00 0 
b7921000-b7a00000 ---p b7921000 00:00 0 
b7a6b000-b7a74000 r-xp 00000000 03:02 1098241   
/var/tmp/portage/gcc-4.1.0_beta20050826/work/build/gcc/libgcc_s.so.1
b7a74000-b7a75000 rw-p 00009000 03:02 1098241   
/var/tmp/portage/gcc-4.1.0_beta20050826/work/build/gcc/libgcc_s.so.1
b7a75000-b7dd3000 rw-p b7a75000 00:00 0 
b7dd3000-b7dd5000 r-xp 00000000 03:02 2121689    /lib/libdl-2.3.90.so
b7dd5000-b7dd7000 rw-p 00001000 03:02 2121689    /lib/libdl-2.3.90.so
b7dd7000-b7ee9000 r-xp 00000000 03:02 2122049    /lib/libc-2.3.90.so
b7ee9000-b7eea000 r--p 00112000 03:02 2122049    /lib/libc-2.3.90.so
b7eea000-b7eed000 rw-p 00113000 03:02 2122049    /lib/libc-2.3.90.so
b7eed000-b7eef000 rw-p b7eed000 00:00 0 
b7f03000-b7f04000 rw-p b7f03000 00:00 0 
b7f04000-b7f0c000 r-xp 00000000 03:02 527672     /usr/lib/libsandbox.so.0.0.0
b7f0c000-b7f0d000 rw-p 00007000 03:02 527672     /usr/lib/libsandbox.so.0.0.0
b7f0d000-b7f10000 rw-p b7f0d000 00:00 0 
b7f10000-b7f29000 r-xp 00000000 03:02 2122028    /lib/ld-2.3.90.so
b7f29000-b7f2a000 r--p 00018000 03:02 2122028    /lib/ld-2.3.90.so
b7f2a000-b7f2b000 rw-p 00019000 03:02 2122028    /lib/ld-2.3.90.so
bf80f000-bf829000 rw-p bf80f000 00:00 0          [stack]
ffffe000-fffff000 ---p 00000000 00:00 0          [vdso]

/var/tmp/portage/gcc-4.1.0_beta20050826/work/gcc-4.1-20050826/gcc/libgcc2.c:765:
internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.
make[3]: *** Deleting file `libgcc/./_popcountdi2.o'
make[3]: *** [libgcc/./_popcountdi2.o] Interrupt
make[2]: *** [libgcc.a] Interrupt
make[1]: *** [stageprofile_build] Interrupt
sandbox:  Caught signal 2 in pid 8406
make: *** [profiledbootstrap] Interrupt

/usr/portage/sys-devel/gcc/gcc-4.1.0_beta20050826.ebuild: src_compile aborted;
exiting.




Reproducible: Always
Steps to Reproduce:
1. emerge -avu gcc





Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4,
glibc-2.3.5.20050722-r0, 2.6.12-gentoo-r9-serenity i686)
=================================================================
System uname: 2.6.12-gentoo-r9-serenity i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -mfpmath=sse -m3dnow -mmmx -msse -ftracer"
CHOST="i686-pc-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 /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -mfpmath=sse -m3dnow -mmmx -msse -ftracer"
DISTDIR="/mnt/buffer/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://10.0.0.123/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext X aac alsa apm audiofile avi bash-completion
berkdb bidi bitmap-fonts browserplugin bzip2 c++ cairo cddb cdparanoia cdr
chroot cjk crypt curl dga dv dvd dvdr dvdread editor emboss encode escreen esd
extras fam fbcon ffmpeg foomaticdb fortran fpx gcj gd gdbm gif glitz gnutls gpm
graphviz gstreamer gtk gtk2 h323 hal howl icq icu imagemagick imap imlib
ithreads jabber javascript jikes jpeg jython latex lcms leim libg++ libwww lj
lm_sensors lua mad matroska mbox mikmod mjpeg mmx mmxext mng mono motif
mozdevelop moznomail mozsvg mozxmlterm mp3 mpeg mpeg4 mpi mplayer msn musepack
mythtv ncurses nethack network nls nodrm nodroproot nptl nptlonly nvidia
offensive ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline real sdl server sndfile spell sse ssl startup-notification stroke
subtitles svg tcpd tetex theora threads tiff transcode truetype truetype-fonts
type1-fonts uim unicode usb v4l v4l2 vcd vcdimager vidix vorbis win32codecs wmf
xine xml2 xv xvid xvmc yv12 zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-08-29 15:46:51 UTC
try it with FEATURES=-sandbox
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-08-29 17:36:15 UTC
gcc-4.1 is still pretty brittle (aka, remove all of your cflags except pipe and
maybe -fomit-frame-pointer).  Please file bugs upstream like the ebuild asks you to.
Comment 3 Luis Felipe 2005-08-30 23:09:06 UTC
Both -sandbox and cleaning CFLAGS didn't work. I didn't understand what you
meant by file the bug upstream. 
Comment 4 Luis Felipe 2005-08-31 01:17:24 UTC
Well, just finished installing 4.0.1 here, and this version worked. I still
don't know what the problem was, gonna wait for another update to try 4.1.0
again. Also, now that I completed an installation of gcc 4.x , I saw the notice
about contacting the upstream developers. 

Well, thanks anyway.