cross-toolchain build script; problem with gas for sparc64
Quoted 14 lines · Dan Kegel
Hey folks,
I spent some time trying to get crosstool (my gcc/glibc cross toolchain build script) to support the sparc64-linux target. It might be of interest for anyone who needs to build gcc and glibc but doesn't have the target handy (or who wants to do a clean build from fully pristine sources). Its home page is http://kegel.com/crosstoolTo build a gcc-3.4.0/glibc-2.3.2 toolchain targeting sparc64-linux with the current version of my script, you'd do
wget http://kegel.com/crosstool/crosstool-0.28-rc7.tar.gz
tar -xzvf crosstool-0.28-rc7.tar.gz
cd crosstool-0.28-rc7
shdemo-sparc64.sh
Quoted 8 lines
Sadly, this fails at the moment with
qp_qtoi.s:261: Error: Illegal operands: There are only 32 single precision f registers; [0-31]
while building glibc.
(See also http://sources.redhat.com/ml/binutils/2004-04/msg00686.html)
Anyone seen that kind of error before? It's odd, since the assembler is being passed the -Av9a -64 options, which really ought to tell it there are 64 fp registers, I thought.
Well, I know for a fact that glibc-2.3.2 builds on sparc64-linux with native toolchain, so it must be something in. It's using binutils 2.14.90.0.7.
Signature · 4 lines
Debian - http://www.debian.org/ Linux 1394 - http://www.linux1394.org/ Subversion - http://subversion.tigris.org/ WatchGuard - http://www.watchguard.com/
Hey folks,
I spent some time trying to get crosstool (my gcc/glibc cross toolchain build script) to support the sparc64-linux target. It might be of interest for anyone who needs to build gcc and glibc but doesn't have the target handy (or who wants to do a clean build from fully pristine sources). Its home page is http://kegel.com/crosstool
To build a gcc-3.4.0/glibc-2.3.2 toolchain targeting sparc64-linux with the current version of my script, you'd do
wget http://kegel.com/crosstool/crosstool-0.28-rc7.tar.gz
tar -xzvf crosstool-0.28-rc7.tar.gz
cd crosstool-0.28-rc7
sh demo-sparc64.sh
Sadly, this fails at the moment with
qp_qtoi.s:261: Error: Illegal operands: There are only 32 single precision f registers; [0-31]
while building glibc.
(See also http://sources.redhat.com/ml/binutils/2004-04/msg00686.html)
Anyone seen that kind of error before? It's odd, since the assembler is
being passed the -Av9a -64 options, which really ought to tell it
there are 64 fp registers, I thought.
Thanks,
Dan
Signature · 2 lines
My technical stuff: http://kegel.com My politics: see http://www.misleader.org for examples of why I'm for regime change
Quoted 14 lines · Ben Collins
Quoted 5 lines
wget http://kegel.com/crosstool/crosstool-0.28-rc7.tar.gz
tar -xzvf crosstool-0.28-rc7.tar.gz
cd crosstool-0.28-rc7
shdemo-sparc64.shQuoted 8 lines
Sadly, this fails at the moment with
qp_qtoi.s:261: Error: Illegal operands: There are only 32 single precision f registers; [0-31]
while building glibc.
(See also http://sources.redhat.com/ml/binutils/2004-04/msg00686.html)
Anyone seen that kind of error before? It's odd, since the assembler is being passed the -Av9a -64 options, which really ought to tell it there are 64 fp registers, I thought.
Quoted 3 lines
Well, I know for a fact that glibc-2.3.2 builds on sparc64-linux with native toolchain, so it must be something in. It's using binutils 2.14.90.0.7.
I just tried 2.14.90.0.7, and the test case passes, so I guess it's a regression in gas. I'll narrow it down and post to binutils.
Thanks!
- Dan
Signature · 2 lines
My technical stuff: http://kegel.com My politics: see http://www.misleader.org for examples of why I'm for regime change