tce-load -i compiletc mpc-dev readline-dev texinfo https://ftp.gnu.org/gnu/gdb/gdb-9.2.tar.xz cd gdb-9.2 mkdir build cd build CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" ../configure --prefix=/usr/local --localstatedir=/var --with-system-readline [-fno-exceptions -fno-rtti 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 [53m 25.77s] sudo make -C gdb install