Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 79910

Summary: GCC 3.3.5 Compile Fails on Sparc
Product: Gentoo Linux Reporter: Christoph <bqjones>
Component: [OLD] GCC PortingAssignee: Sparc Porters <sparc>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: toolchain
Priority: High    
Version: 2004.3   
Hardware: Sparc   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Christoph 2005-01-28 17:02:08 UTC
When attempting to build gcc-3.3.5-r1, emerging fails with the following message:

  gcc -c -DHAVE_CONFIG_H -mcpu=v8 -mtune=v9 -pipe -O2 -I. -I/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/../include  -W -Wall -Wtraditional -pedantic `case '-mcpu=v8 -mtune=v9 -pipe -O2 -mcpu=v8 -mtune=v9 -pipe -O2 -fno-implicit-templates' in *-fpic* ) echo -fpic ;; * ) echo -fPIC ;; esac` /home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c -o pic/fibheap.o; \
else true; fi
<command line>:12:12: warning: "system" re-asserted
<command line>:12:12: warning: "system" re-asserted
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c: In function `fibheap_union':
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:166: warning: implicit declaration of function `free'
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:171: warning: function `free' was previously declared within a block
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:187: warning: function `free' was previously declared within a block
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c: In function `fibheap_extract_min':
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:206: warning: function `free' was previously declared within a block
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c: In function `fibheap_delete_node':
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:285: error: `LONG_MIN' undeclared (first use in this function)
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:285: error: (Each undeclared identifier is reported only once
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:285: error: for each function it appears in.)
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c: In function `fibheap_delete':
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:297: warning: function `free' was previously declared within a block
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c: In function `fibheap_consolidate':
/home/portage/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/libiberty/fibheap.c:395: warning: implicit declaration of function `memset'
make[1]: *** [fibheap.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/home/portage/tmp/portage/gcc-3.3.5-r1/work/build/libiberty'
make: *** [all-libiberty] Error 2

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


Below is "emerge info"

Portage 2.0.51-r3 (default-linux/sparc/sparc64/2004.3, gcc-3.3.5, glibc-2.2.5-r2,glibc-2.3.3.20040420-r2, 2.6.7-gentoo-r14 sparc64)
=================================================================
System uname: 2.6.7-gentoo-r14 sparc64 sun4u
Gentoo Base System version 1.6.6
distcc 2.18.2 sparc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.11.92.0.12.3-r2,sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.23,sys-kernel/linux-headers-2.4.21,sys-kernel/linux-headers-2.4.19-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=v8 -mtune=v9 -O3 -pipe"
CHOST="sparc-unknown-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=v8 -mtune=v9 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://mirrors.tds.net/gentoo ftp://gentoo.ccccom.com ftp://ftp.ndlug.nd.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="sparc X acl amd apache2 async autofs avi berkdb bitmap-fonts bzlib calendar chroot clamav crypt cscope curl dlloader escreen esd ethereal f77 fam fbcon font-server foomaticdb fortran freetype ftp gcc64 gd gdbm gif gnome gnutls gpm gtk gtk2 gtkhtml imagemagick imap imlib imlib2 java javascript jpeg kerberos krb4 ldap ldirectord libwww mad maildir make-busybox-symlinks mcal md5sum mikmod mozilla mpeg mpeg4 mpi msn mysql ncurses nptl offensive oggvorbis pam pcap pcre pdflib perl php png python readline samba sasl sdl slang slp snmp spell ssl tcltk tcpd threads tiff truetype truetype-fonts type1-fonts vhosts vim-pager virus-scan xml xml2 xmms xosd xv xvid yahoo zeroconf zlib"
Comment 1 Jeremy Huddleston (RETIRED) gentoo-dev 2005-01-29 18:55:21 UTC
Eek.  How did you get gcc-3.3.5, and how is it that you've had it so long.  gcc-3.3.5 was seriously broken on sparc.  Do you have an older compiler (3.3.4) that you can switch to for compiling 3.3.5-r1?
Comment 2 Christoph 2005-01-31 19:38:18 UTC
Great question... Other than having it emerged via 'emerge -u world' I don't really know how I got gcc3.3.5 installed.  As for backing out of it, I don't have another gcc installed:

dragon root # gcc-config -l
[1] sparc-unknown-linux-gnu-3.3.5 *
[2] sparc-unknown-linux-gnu-3.3.5-hardened
[3] sparc-unknown-linux-gnu-3.3.5-hardenednopie
[4] sparc-unknown-linux-gnu-3.3.5-hardenednossp

is there a GRP GCC installation that I could use? How would I go about installing it?
Comment 3 Gustavo Zacarias (RETIRED) gentoo-dev 2005-02-14 11:23:56 UTC
You can fetch one i quickpkg'ed from my devspace at http://dev.gentoo.org/~gustavoz/sparc/packages/
Place the gcc-3.3.5-r1.tbz2 file into /usr/portage/packages/All and emerge -k gcc, that should fix it.
Reopen if there's trouble or you need some other quickpkg.
Comment 4 Christoph 2005-02-15 19:24:49 UTC
You're a life saver, thanks Jeremy! Emerging the binary build worked quite well... Closing this bug...