Hi,
Here's a report of a successful build and install of GCC:
$ gcc-6.3.0/config.guess
sparc64-unknown-linux-gnu
$ newcompiler/bin/gcc -v
Using built-in specs.
COLLECT_GCC=newcompiler/bin/gcc
COLLECT_LTO_WRAPPER=/home/aaro/gcctest/newcompiler/libexec/gcc/sparc-unknown-linux-gnu/6.3.0/lto-wrapper
Target: sparc-unknown-linux-gnu
Configured with: ../gcc-6.3.0/configure --with-cpu=ultrasparc
--enable-targets=all --disable-libsanitizer --disable-nls
--prefix=/home/aaro/gcctest/newcompiler --enable-languages=c,c++
--host=sparc-unknown-linux-gnu --build=sparc-unknown-linux-gnu
--target=sparc-unknown-linux-gnu --with-system-zlib --with-sysroot=/
Thread model: posix
gcc version 6.3.0 (GCC)
-- Build environment ----------------------------------------------------------
host: sun-ultra-10
distro: los.git rootfs=69b998 native=69b998
kernel: Linux 4.10.0-ultra-los_69b998
binutils: GNU binutils 2.27
make: GNU Make 4.2.1
libc: GNU C Library (GNU libc) stable release version 2.24
zlib: 1.2.8
mpfr: 3.1.3
gmp: 60000
-- Time consumed --------------------------------------------------------------
configure: real 0m 31.53s
user 0m 21.54s
sys 0m 2.23s
bootstrap: real 40h 10m 31s
user 39h 13m 39s
sys 29m 28.67s
install: real 2m 45.02s
user 1m 4.28s
sys 0m 19.11s
-- Hardware details -----------------------------------------------------------
MemTotal: 507800 kB
cpu : TI UltraSparc IIi (Sabre)
fpu : UltraSparc IIi integrated FPU
pmu : ultra12
prom : OBP 3.31.0 2001/07/25 20:36
type : sun4u
ncpus probed : 1
ncpus active : 1
D$ parity tl1 : 0
I$ parity tl1 : 0
Cpu0ClkTck : 000000001a39de00
cpucaps : flush,stbar,swap,muldiv,v9,mul32,div32,v8plus,vis
MMU Type : Spitfire
MMU PGSZs : 8K,64K,512K,4MB
A.