https://git.ipxe.org/ipxe.git/blob/HEAD:/src/arch/i386/Makefile#l78 Test is using -nopie, which doesn't exist. The correct flag is -no-pie $ gcc -nopie gcc: error: unrecognized command line option ‘-nopie’; did you mean ‘-no-pie’?