Building gcc-3.2.1 for sparc64 on a sparc32?
This was on a Debian prerelease (Sarge) dual SuperSparc-II sun4m
system with these packages:
binutils 2.13.90.0.10-1
bison 1.75-1
dejagnu 1.4.2-1.1
expect 5.38.0-2
g++-3.2 1:3.2.1-0pre3 (Debian prerelease)
gcc-3.2 1:3.2.1-0pre3 (Debian prerelease)
kernel-image 2.4.20_pre11smp (from http://osinvestor.com/sparc)
libc6 2.2.5-14.3
libc6-sparc64 2.2.5-14.3
tcl8.3 8.3.3-8
I'd like to build gcc-3.2.1 on a sparc32 (sun4m) but as target
sparc64-linux to be insatlled on a sparc64 (sun4u) and producing code
for that arch.
How is that done?
Assume /usr/local/src/gcc-3.2.1 is the src dir and
/usr/local/src/objdir-gcc-3.2.1 is the dir to be built in.
$ cd /usr/local/src/objdir-gcc-3.2.1 $
/usr/local/src/gcc-3.2.1/configure --target=sparc64-linux \
--host=sparc64-linux --build=sparc-linux --prefix=/usr/local/gcc-3.2.1
Is that a right use of target/host/build?
What other configure options do I need to set? What .deb packages do
they in turn require to be installed to be able to build gcc-3.2.1
this way?
TIA,
/ChJ
Reply to: