tce-load -i compiletc mpc-dev readline-dev texinfo python3.8-dev isl-dev

https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.xz

cd gdb-9.2

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 --prefix=/usr/local --localstatedir=/var --with-system-readline --with-python=/usr/local/bin/python3

[-fno-exceptions fails]

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;
find . -name Makefile -type f -exec sed -i 's/-O2 -g//g' {} \;

make [42m 40.90s]
sudo make -C gdb install
