Hi,
Here's a report of a successful build and install of GCC:
$ gcc-7.2.0/config.guess
mips64el-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/mipsel-unknown-linux-gnu/7.2.0/lto-wrapper
Target: mipsel-unknown-linux-gnu
Configured with: ../gcc-7.2.0/configure --with-arch=loongson2f --with-abi=32
--with-fp-32=xx --enable-targets=all --disable-nls
--prefix=/home/aaro/gcctest/newcompiler --enable-languages=c,c++
--host=mipsel-unknown-linux-gnu --build=mipsel-unknown-linux-gnu
--target=mipsel-unknown-linux-gnu --with-system-zlib --with-sysroot=/
Thread model: posix
gcc version 7.2.0 (GCC)
-- Build environment ----------------------------------------------------------
host: fuloong-minipc
distro: los.git rootfs=f834d native=f834d
kernel: Linux 4.12.0-lemote-los_f834d
binutils: GNU binutils 2.29
make: GNU Make 4.2.1
libc: GNU C Library (GNU libc) stable release version 2.25
zlib: 1.2.11
mpfr: 3.1.3
gmp: 60102
-- Time consumed --------------------------------------------------------------
configure: real 0m 24.30s
user 0m 15.87s
sys 0m 6.24s
bootstrap: real 55h 51m 33s
user 51h 46m 38s
sys 3h 14m 16s
install: real 16m 8.47s
user 6m 3.60s
sys 7m 26.03s
-- Hardware details -----------------------------------------------------------
MemTotal: 493856 kB
system type : lemote-fuloong-2f-box
machine : Unknown
processor : 0
cpu model : ICT Loongson-2 V0.3 FPU V0.1
BogoMIPS : 528.38
wait instruction : yes
microsecond timers : yes
tlb_entries : 64
extra interrupt vector : no
hardware watchpoint : yes, count: 0, address/irw mask: []
isa : mips2 mips3
ASEs implemented :
shadow register sets : 1
kscratch registers : 0
package : 0
core : 0
VCED exceptions : not available
VCEI exceptions : not available
A.