After install was complete and booted into system. I ran ACCEPT_KEYWORDS="~sparc" emerge --update --deep world Every thing was fine up until sys-devel/gcc-3.3.3-r5. I received a compile error. Google gives no mention of the error, so I am here. /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/strerror.c:465: warning: static declaration for `sys_nerr' follows non-static /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/strerror.c:466: error: conflicting types for `sys_errlist' /usr/include/bits/sys_errlist.h:28: error: previous declaration of `sys_errlist' make[1]: *** [strerror.o] Error 1 make[1]: *** Waiting for unfinished jobs.... gcc -c -DHAVE_CONFIG_H -mcpu=ultrasparc -O2 -I. -I/var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/../include -W -Wall -Wtraditional -pedantic /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/splay-tree.c -o splay-tree.o make[1]: *** Waiting for unfinished jobs.... gcc -c -DHAVE_CONFIG_H -mcpu=ultrasparc -O2 -I. -I/var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/../include -W -Wall -Wtraditional -pedantic /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/strsignal.c -o strsignal.o make[1]: *** Waiting for unfinished jobs.... /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c: In function `xregcomp': /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c:8043: warning: signed and unsigned type in conditional expression /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c:8082: warning: function `free' was previously declared within a block /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c: In function `xregexec': /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c:8161: warning: function `free' was previously declared within a block /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c: In function `xregerror': /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c:8178: warning: unused parameter `preg' /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c: In function `xregfree': /var/tmp/portage/gcc-3.3.3-r5/work/gcc-3.3.3/libiberty/regex.c:8227: warning: function `free' was previously declared within a block make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.3-r5/work/build/libiberty' make: *** [all-libiberty] Error 2 !!! ERROR: sys-devel/gcc-3.3.3-r5 failed. !!! Function src_compile, Line 552, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. I installed 2004.1 sparc64 stage 3 on Ultra2, booted the system, set the USE keywords. 2. ACCEPT_KEYWORDS="~sparc" emerge --update --deep world 3. Compile failed at sys-devel/gcc-3.3.3-r5 Actual Results: emerge errored out. I restarted again, same results, tried it again as a single package, failed as well. did a ACCEPT_KEYWORDS="~sparc" emerge --pretend --update --deep world. skipped the gcc and started with the next option. app-crypt/hashalot-0.2.0 built fine. sys-libs/cracklib-2.7-r9 failed to compile sys-libs/pam-0.77-r1 failed to compile sys-apps/shadow-4.0.4.1-r2 said there was nothing to update. sys-apps/baselayout-1.9.4 installed I did etc-update Then needed to shutdown the sparc and got a seg fault with shutdown -h now also with reboot. At this point I figured something earlier in the build process pooched the system and I am starting over now. Expected Results: Built gcc and completed the --update --deep world. I am running a Ultra2, 2x200Mhz US1, 512MiB OPB 3.25 (iirc). Gentoo 2004.1, sparc64 stage 3, 2.4.26 kernel. #emerge info Portage 2.0.50-r7 (default-sparc64-2004.0, gcc-3.3.3, glibc-2.3.2-r9, 2.4.26-sparc) ================================================================= System uname: 2.4.26-sparc sparc64 sun4u Gentoo Base System version 1.4.9 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=ultrasparc" CHOST="sparc64-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=ultrasparc" DISTDIR="/usr/portage/distfiles" FEATURES="ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="acl apache2 berkdb caps crypt curl dedicated fbcon gdbm gif hardenedphp imagemagick imap imlib innodb java jpeg libwww maildir multilib mysql ncurses odbc offensive pam pdflib perl png prelude python readline samba slang sparc sparc64 spell ssl tcltk tcpd tiff vhosts xml2 zlib"
Ouch. Your CHOST is bad. Try rebuilding everything with sparc-unknown-linux-gnu.
Ciaran, You were correct. I started over with sparc-unknown-linux-gnu as CHOST. emerge update world worked fine.