When compiling kernel on a sparc 32 machine (SparcStation 20) (sparc-sources = sys-kernel/sparc-sources-2.4.32-r2) make fails with the following errors: math.c: In function `do_one_mathemu': math.c:330: error: label at end of compound statement math.c:343: error: label at end of compound statement
Portage 2.0.54 (default-linux/sparc/sparc32/2006.0/2.4, gcc-3.4.5, glibc-2.3.5-r3, 2.4.29 sparc) ================================================================= System uname: 2.4.29 sparc sun4m Gentoo Base System version 1.6.14 dev-lang/python: 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.22 virtual/os-headers: 2.4.26-r1 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CBUILD="sparc-unknown-linux-gnu" CFLAGS="-O2 -pipe" CHOST="sparc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="sparc X apache2 berkdb bitmap-fonts bzip2 crypt cups dba dlloader dri expat fbcon foomaticdb fortran gd gdbm gif gstreamer gtk gtk2 imlib isdnlog jpeg libwww motif ncurses nls oss pam perl png python readline spell ssl tcpd truetype truetype-fonts type1-fonts xml zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
This was fixed in sparc-sources-2.4.32-r3, please give it a try using package.keywords (man 5 portage). It is not yet stable since it's awaiting the 30-day grace period but should work fine.