build a cross-compiler @see https://wiki.osdev.org/GCC_Cross-Compiler export PREFIX="$HOME/opt/cross" # use i386 architecture export TARGET=i386-elf export PATH="$PREFIX/bin:$PATH" build the kernel ./build.sh