Got a Sun Blade 100 here, and trying to bootstrap Gentoo 1.4, Sparc64, using the below CFLAGS/CXXFLAGS, Glibc fails to compile completely. CFLAGS=" -mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer" CXXFLAGS=" -mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer" The glibc errors are as follows: /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crti.S: Assembler messages: /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crti.S:25: Error: Architecture mismatch on "be,pn %icc,.LL3". /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crti.S:25: (Requires v9|v9a|v9b; requested architecture is sparclite.) /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crti.S:31: Error: Architecture mismatch on "return". /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crti.S:31: (Requires v9|v9a|v9b; requested architecture is sparclite.) make[2]: *** [/var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crti.o] Error 1 make[2]: *** Waiting for unfinished jobs /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crtn.S: Assembler Messages: /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crtn.S:9: Error: Architecture mismatch on "return". /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crtn.S:9: (Requires v9|v9a|v9b; requested architecture is sparclite.) /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crtn.S:17: Error: Architecture mismatch on "return". /var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crtn.S:17: (Requires v9|v9a|v9b; requested architecture is sparclite.) [/var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/buildhere/csu/crtn.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5/csu' make[1]: *** [csu/subdir_lib] Error 2 make[1]: Leaving Directory `/var/tmp/portage/glibc-2.2.5-r6/work/glibc-2.2.5' make: *** [all] Error 2 I am clearly not requesting 'sparclite' in the CFLAGS, yet apparently this error is cropping up, apparently from the Assembler. Removing the "-mcpu=ultrasparc -mtune=ultrasparc" lines for bootstrapping works, and adding them back for the remainder of the system (Stage 2 -> Stage 3) works as well. I've traded messages with "xming" in the Gentoo Sparc forum on these matters, and the whole thread is here: http://forums.gentoo.org/viewtopic.php?t=13072
Glibc will not compile with -mcpu=ultrasparc, replace-flags are in place to change the cflags to something sane.
Closing