Hi,
Here's a report of a successful build and install of GCC:
$ gcc-7.3.0/config.guess
aarch64-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/aarch64-unknown-linux-gnu/7.3.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: ../gcc-7.3.0/configure --with-arch=armv8-a+crc
--with-cpu=cortex-a53 --enable-fix-cortex-a53-835769
--enable-fix-cortex-a53-843419 --disable-multilib --disable-nls
--prefix=/home/aaro/gcctest/newcompiler --enable-languages=c,c++
--host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu
--target=aarch64-unknown-linux-gnu --with-system-zlib --with-sysroot=/
Thread model: posix
gcc version 7.3.0 (GCC)
-- Build environment ----------------------------------------------------------
host: raspberrypi-3
distro: los.git rootfs=4642f native=4642f
kernel: Linux 4.16.0-rc3-rpi3-los_4642f
binutils: GNU binutils 2.30
make: GNU Make 4.2.1
libc: GNU C Library (GNU libc) stable release version 2.27.
zlib: 1.2.11
mpfr: 4.0.1
gmp: 60102
-- Time consumed --------------------------------------------------------------
configure: real 0m 17.63s
user 0m 11.85s
sys 0m 4.03s
bootstrap: real 7h 53m 30s
user 25h 29m 57s
sys 39m 43.18s
install: real 1m 55.31s
user 0m 32.84s
sys 0m 32.00s
-- Hardware details -----------------------------------------------------------
MemTotal: 973924 kB
processor : 0
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 1
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 2
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
processor : 3
BogoMIPS : 38.40
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd03
CPU revision : 4
A.