Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118427 - emerge gcc-3.4.5 fails
Summary: emerge gcc-3.4.5 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-09 10:29 UTC by Emiliano Vavassori
Modified: 2006-01-29 11:07 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 Emiliano Vavassori 2006-01-09 10:29:26 UTC
# emerge -av gcc
[...]
[ebuild     U ] sys-devel/gcc-3.4.5 [3.4.4-r1] USE="fortran gcj* gtk nls objc -bootstrap -boundschecking -build -hardened -ip28 -multislot -nocxx -nopie -nossp -vanilla" 0 kB
[...]

Fails with this error:
/var/tmp/portage/gcc-3.4.5/work/build/gcc/gcj -B/var/tmp/portage/gcc-3.4.5/work/build/i686-pc-linux-gnu/libjava/ -B/var/tmp/portage/gcc-3.4.5/work/build/gcc/ --encoding=UTF-8 -Wno-deprecated -fclasspath= -fbootclasspath=/var/tmp/portage/gcc-3.4.5/work/build/i686-pc-linux-gnu/libjava -ffloat-store -march=athlon-xp -pipe -O2 -MD -MT java/net/URLClassLoader.lo -MF java/net/URLClassLoader.d -c /var/tmp/portage/gcc-3.4.5/work/gcc-3.4.5/libjava/java/net/URLClassLoader.java -o java/net/URLClassLoader.o >/dev/null 2>&1
make[3]: *** [java/net/URLClassLoader.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.4.5/work/build/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gcc-3.4.5/work/build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.5/work/build'
make: *** [profiledbootstrap] Error 2

!!! ERROR: sys-devel/gcc-3.4.5 failed.
!!! Function gcc_do_make, Line 1343, Exitcode 2
!!! emake failed with profiledbootstrap
!!! If you need support, post the topmost build error, NOT this status message.

Expected result: compile correctly. Tried also with gcc-3.3.5 but does not work and fails with another error.

# emerge info
Portage 2.1_pre3-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.6-r2, 2.6.14-suspend2-r8 i686)
=================================================================
System uname: 2.6.14-suspend2-r8 i686 Mobile AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.0_pre13
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
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-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops"
CHOST="i686-pc-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/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.channelx.biz/ http://gentoo.prz.rzeszow.pl http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo"
LANG="it_IT"
LC_ALL="it_IT.utf8"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aac aalib acpi acpi4linux adns aim aliaschain alsa altcolors apache2 apm audiofile avi bash-completion bdf berkdb bindist bitmap-fonts blender-game bmp bzip2 bzlib cddb cdparanoia cdr cdrom cgi cle266 cpdflib crypt cups curl curlwrappers dba dbase dbus devfs26 dga dillo divx4linux dnd dvd dvdr dvdread eds emboss encode esd ethereal exif expat faac fam fastcgi fbcon ffmpeg fftw flac foomaticdb fortran freetype ftp gd gdbm geoip gif gimp gimpprint glade glut gmp gnome gnutls gps gs gstreamer gtk gtk2 gtkhtml guile hal howl iconv icq idn ieee1394 imagemagick imap imlib imlib2 irda jabber jack javascript joystick jpeg kerberos lcms lesstif libcaca libg++ libgda libwww live lzw lzw-tiff mad matroska mbox md5sum mhash mikmod mime mmap mmx mng motif mozcalendar mozilla mozsvg mp3 mpeg mpeg4 mplayer msn music mythtv ncurses nls nptl nsplugin nviz odbc offensive ogg oggvorbis opengl opens oss pam pcmcia pcre pdflib perl php pic png pnp posix postgres ppds print python qt quicktime readline real recode rtc samba sdl slang sndfile soap sockets sox spamassassin speedo speex spell spl sqlite sse ssl svg svga sysvipc szip t1lib tcltk tcpd tetex tga theora threads tiff timidity truetype truetype-fonts type1 type1-fonts udev unicode usb v4l v4l2 vcd videos vorbis win32codecs wmf wxwindows xanim xchatdccserver xine xinerama xml xml2 xmlrpc xosd xpm xsl xv xvid xvmc yahoo yv12 zlib elibc_glibc kernel_linux linguas_it userland_GNU video_cards_via"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2006-01-09 12:13:12 UTC
3.3 fails with another error?  Have you tried re-emerging 3.4.5?  Does it fail in the exact same place?
Comment 2 Emiliano Vavassori 2006-01-09 12:49:53 UTC
(In reply to comment #1)
> 3.3 fails with another error?

Yes, but I'll open another bug if I'd to correct that problem. And I didn't keep the error with 3.3.5.

> Have you tried re-emerging 3.4.5?  Does it fail
> in the exact same place?

Yes, exactly.

Thanks for the help.
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2006-01-09 16:48:35 UTC
What if you try with just CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"?  Also, please post a bit more of the output, I'm not seeing the error in what you gave us (if one even actually appears).
Comment 4 Emiliano Vavassori 2006-01-09 17:13:22 UTC
(In reply to comment #3)
> What if you try with just CFLAGS="-march=athlon-xp -O2 -pipe
> -fomit-frame-pointer"?

Ok, I'll try that.

> Also, please post a bit more of the output, I'm not
> seeing the error in what you gave us (if one even actually appears).

This is also a problem. I didn't find any other line, which could be an error or a warning, in the last pages of output.

For the moment, I downgraded portage to 2.0.54 (because of strange behavior with useflags in /etc/make.conf) and still trying to have a gcj (I was trying to re-emerge gcc-3.4.4-r1 with "gcj" useflag).

Thanks again.
Comment 5 Emiliano Vavassori 2006-01-09 18:15:56 UTC
(In reply to comment #3)
> What if you try with just CFLAGS="-march=athlon-xp -O2 -pipe
> -fomit-frame-pointer"?

Thank you very much, it did. I have just emerged gcc-3.4.5 with gcj. But why didn't it emerge with -O3 ... ?

Thank you very much.

Comment 6 David Fannin 2006-01-14 20:38:43 UTC
I'm having the same problem upgrading to cross-i386../gcc3.4.5

my CFLAGS="-O2 -march=athlon-xp  -msse2 -pipe"

changed this to:
CFLAGS="-O2 -march=athlon-xp  -pipe"

I have the same issue as well for a pentium4 system.



Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 AMD Sempron(tm) Processor 3100+
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp  -pipe"
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/lib/mozilla/defaults/pref /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/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp  -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j8"
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 3dnow 3dnowext 7zip X a52 aac aalib acpi aim alsa amd apache2 apm arts async audiofile automount avi berkdb bitmap-fonts bonobo bootsplash bzip2 ccache cdparanoia cdr clamav clamd cli command-args cpdflib cpudetection crypt css cups curl dbus dga divx4linux dts dv dvd dvdr dvdread edl eds emboss encode enscript esd exif expat extensions fam fame fastcgi fat ffmpeg flac font-server fontconfig foomaticdb fortran fping fpx ftp gcj gd gdbm geometry gif gimpprint glut glx gnome gnome-print gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imap imlib innodb inode iodbc jack jai java java-internal javamail javascript jbig jce jp2 jpeg jpeg2k junit kde kdexdeltas lame largeterminal lcms ldap libcaca libg++ libgd libvisual libwww live lm_sensors lzo lzw mad mbox mcal mhash mikmod milter mime ming mjpeg mmap mmx mmxext mng motif moznocompose moznoirc moznomail mp3 mp4live mpeg mpeg2 mpeg4 mpi mplayer mpm-prefork mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh nas ncurses netpbm network nfs nls nptl ntfs objc odbc ofx ogg oggvorbis on-the-fly-crypt openal opengl oss pam pcre pdflib pear perl php png postgres ppds python qt quicktime rar readline real recode rtc samba sasl sdl session sharedext sharedmem silc slang sndfile sockets spell sql sqlite sse sse2 ssl subtitles subversion tcltk tcpd tetex threads tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vcdimager vidix vim vim-pager vim-with-x vmdbmysql vorbis win32codecs wmf xine xml xml2 xmlrpc xmms xosd xpm xsl xslt xv xvid xvmc yv12 zapras zaptel zip zlib zvbi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2006-01-14 22:28:24 UTC
(In reply to comment #6)
> I'm having the same problem upgrading to cross-i386../gcc3.4.5
> 
> my CFLAGS="-O2 -march=athlon-xp  -msse2 -pipe"
> 
> changed this to:
> CFLAGS="-O2 -march=athlon-xp  -pipe"
> 
> I have the same issue as well for a pentium4 system.

I'm not sure I understand.  Changing your CFLAGS worked?  Or is it still a problem with the new ones?  Can you please post the output leading up to the error?
Comment 8 Mark Loeser (RETIRED) gentoo-dev 2006-01-29 11:07:46 UTC
The original bug reporting seems to have fixed the problem.