Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7567 - Sun Blade 100 -- Glibc fails to bootstrap using -mcpu=ultrasparc -mtune=ultrasparc
Summary: Sun Blade 100 -- Glibc fails to bootstrap using -mcpu=ultrasparc -mtune=ultra...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: Sparc Linux
: High major (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-06 03:00 UTC by Joshua Kinard
Modified: 2003-08-17 07:22 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 Joshua Kinard gentoo-dev 2002-09-06 03:00:57 UTC
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
Comment 1 Joshua Brindle (RETIRED) gentoo-dev 2002-12-23 00:08:55 UTC
Glibc will not compile with -mcpu=ultrasparc, replace-flags are in place to 
change the cflags to something sane.
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:22:08 UTC
Closing