Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105287 - popcountdi2 -- gcc 4.1.0_beta20050902 fails to compile
Summary: popcountdi2 -- gcc 4.1.0_beta20050902 fails to compile
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-08 11:36 UTC by Aaron
Modified: 2005-09-10 17:59 UTC (History)
2 users (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 Aaron 2005-09-08 11:36:52 UTC
last couple lines of output before it died

./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_beta20050902/work/build/gcc/../ld -O2  -O2
-march=pentium2 -O2 -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_beta20050902/work/gcc-4.1-20050902/gcc
-I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/.
-I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../include
-I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../libcpp/include
 -DL_popcountdi2 -fvisibility=hidden -DHIDE_EXPORTS -c
/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c -o
libgcc/./_popcountdi2.o
/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c: In
function 
Comment 1 Aaron 2005-09-08 11:36:52 UTC
last couple lines of output before it died

./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_beta20050902/work/build/gcc/../ld -O2  -O2
-march=pentium2 -O2 -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_beta20050902/work/gcc-4.1-20050902/gcc
-I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/.
-I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../include
-I/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/../libcpp/include
 -DL_popcountdi2 -fvisibility=hidden -DHIDE_EXPORTS -c
/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c -o
libgcc/./_popcountdi2.o
/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/gcc/libgcc2.c: In
function __popcountdi2:
/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/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 *** corrupted double-linked list: 0x44500858 ***

/var/tmp/portage/gcc-4.1.0_beta20050902/work/gcc-4.1-20050902/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.




command

aaron@gentoo:: USE="-fortran" emerge -pv '>gcc-4'                           [~]

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  NS   ] sys-devel/gcc-4.1.0_beta20050902  (-altivec) -bootstrap -build
-fortran -gcj +gtk -hardened -ip28 (-multilib) -multislot (-n32) (-n64) +nls
-nocxx -objc -static -vanilla 0 kB 




havent tried to reproduce it, recompiling it now. might not be serious at all.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2005-09-08 21:26:39 UTC
You didn't post emerge info, but I'm going to say its probably a CFLAGS problem.
 gcc-4.1 is very beta still, and you should only use it if you know what you are
doing.  Please file any bugs you have with it upstream.
Comment 3 Dima Ryazanov 2005-09-08 23:49:54 UTC
I'm getting the same error, but as far as I understand, the ICE is in the *old*  
compiler that I'm using right now - gcc 3.3.5 - not in the 4.1 which I'm trying  
to compile.  
  
So it's a bug in gcc 3.3.5.  
 
Comment 4 Aaron 2005-09-10 14:27:41 UTC
well it seems to be bitching about glib, so i agree with Dima. re-tried it
several times, and the error persists. i dont think its cflags, since mine are
very loose. cant do much on a p2...

aaron@gentoo:: emerge info
Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r7 i686)
=================================================================
System uname: 2.6.12-gentoo-r7 i686 Pentium II (Deschutes)
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 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.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium2 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirror.isp.net.au/pub/gentoo/
ftp://mirror.nutsmaas.nl/gentoo/ http://gentoo.binarycompass.org
http://www.gigaload.org/gentoo.org/"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dri emboss
encode firefox foomaticdb fortran gd gdbm gif gimpprint gnome gstreamer gtk gtk2
gtkhtml imagemagick imlib ipv6 jpeg libg++ libwww mad mikmod mp3 mpeg mysql
ncurses nls ogg oggvorbis opengl pdflib perl php png ppds python quicktime
readline samba sdl slang speex spell sqlite ssl svga tcltk tcpd tiff truetype
truetype-fonts type1-fonts vorbis xml xml2 xprint xv zlib video_cards_radeon
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 5 Mark Loeser (RETIRED) gentoo-dev 2005-09-10 17:59:53 UTC
The mere presence of CFLAGS with gcc-4.1 is going to cause issues.  Basically,
anything more than -O1, which is even pushing it, is going to cause problems.