sparc64 build flags

Jeremy Huntwork jhuntwork at linuxfromscratch.org
Sat Feb 11 06:45:04 PST 2006


Hey All,

I noticed that the build flags for sparc64 have been removed. This 
surprised me a bit, because I thought I remembered that they were 
important. But I thought I'd give it a shot, so I started building as 
per the current instructions in the book, that is with BUILD32 set to 
'-m32' and BUILD64 set to '-m64'. When I got to glibc 64-bit in cross 
tools, I encountered this error:

../sysdeps/sparc/sparc64/memset.S: Assembler messages:
../sysdeps/sparc/sparc64/memset.S:248: Error: Architecture mismatch on 
"fzero".
../sysdeps/sparc/sparc64/memset.S:248:  (Requires v9a|v9b; requested 
architecture is v9.)
../sysdeps/sparc/sparc64/memset.S:251: Error: Architecture mismatch on 
"fzero".
../sysdeps/sparc/sparc64/memset.S:251:  (Requires v9a|v9b; requested 
architecture is v9.)
make[2]: *** [/mnt/lfs/sources/glibc-build/string/memset.o] Error 1

I decided to see what adding the build flags would do. So I set BUILD64 
to '-m64 -mcpu=ultrasparc -mtune=ultrasparc' and started over on the 
glibc 64 Bit. It finished successfully. So it seems these flags are 
important for sparc64.

Are there any objections to my adding these back in?

--
JH



More information about the cross-lfs mailing list