https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116119
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to maths soso from comment #0) > /home/sofiane/rpi0/toolchain/build/gcc2/./gcc/as: 106: exec: -march=armv8-a: > not found If you look at /home/sofiane/rpi0/toolchain/build/gcc2/./gcc/as you'll see it's a script and line 106 does: exec $original ${1+"$@"} The error means that $original is unset, so you have no assembler. You need to install binutils for ${TARGET} first. Preferably in the same ${PREFIX}.