This is my hobbyos that I am developing for fun through barebones.org and james molley's documentation.
build-essential bison flex libgmp3-dev libmpc-dev libmpfr-dev texinfo libisl-dev grub2 xorriso mtools qemu-system-i386
export PREFIX="$HOME/opt/cross" export TARGET=i686-elf export PATH="$PREFIX/bin:$PATH"
https://ftp.gnu.org/gnu/binutils/
cd $HOME/src mkdir build-binutils cd build-binutils ../binutils-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --with-sysroot --disable-nls --disable-werror make make install
https://ftp.gnu.org/gnu/gcc/gcc-13.2.0/
cd $HOME/src mkdir build-gcc cd build-gcc ../gcc-x.y.z/configure --target=$TARGET --prefix="$PREFIX" --disable-nls --enable-languages=c,c++ --without-headers make all-gcc make all-target-libgcc make install-gcc make install-target-libgcc
make run