tce-load -i compiletc mpc-dev isl-dev gperf texinfo cd gcc-10.2.0 mkdir build cd build CC="gcc -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" CXX="g++ -march=armv8-a+crc -mtune=cortex-a72 -Os -pipe" ../configure --libdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-c99 --enable-long-long --enable-clocale=gnu --enable-languages=c,c++ --disable-multilib --disable-libstdcxx-pch --enable-cloog-backend=isl --with-isl=/usr/local --with-mpfr=/usr/local --with-gmp=/usr/local --with-mpc=/usr/local --with-system-zlib --enable-frame-pointer --disable-bootstrap --enable-lto --with-pkgversion=piCore64 --enable-fix-cortex-a53-843419 --with-gxx-include-dir=/usr/include/c++/10.2.0 find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \; find . -name config.status -type f -exec sed -i 's/-g -O2//g' {} \; make [1h 31m 54s] sudo make install rm -rf /usr/local/lib/gcc/$(gcc -dumpmachine)/10.2.0/include-fixed/bits/ ln -sv ../usr/local/bin/cpp /usr/local/lib install -v -dm755 /usr/local/lib/bfd-plugins ln -sfv /usr/local/lib/gcc/$(gcc -dumpmachine)/10.2.0/liblto_plugin.so /usr/local/lib/bfd-plugins/ mkdir -pv /usr/local/share/gdb/auto-load/usr/local/lib mv -v /usr/local/lib/*gdb.py /usr/local/share/gdb/auto-load/usr/local/lib [remove gcc from /usr except libstdc++ and libgcc_s] ldconfig