https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116119
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:6a55ff29578e8afbe795547468a78494b3b52831 commit r15-2368-g6a55ff29578e8afbe795547468a78494b3b52831 Author: Jonathan Wakely <jwak...@redhat.com> Date: Sun Jul 28 11:34:17 2024 +0100 gcc: Make exec-tool.in handle missing Binutils more gracefully When users try to build a cross-compiler without first installing binutils they get confusing errors like: /tmp/gcc-obj/./gcc/as: line 114: exec: -m: invalid option This is an incredibly common source of questions on gcc-help and IRC, and bogus bug reports e.g. see PR 116119 for the latest example. This change adds an explicit check for an empty $original variable and exits with a user-friendly error. gcc/ChangeLog: * exec-tool.in: Exit with an error if $original is empty.