https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102755
Bug ID: 102755 Summary: Built gcc cross compiler always tries to use "as" instead of cross assembler Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dr.duncan.p.simpson at gmx dot com Target Milestone: --- Host: x86_64-linux-gnu Target: aarch64-linux-gnu Created attachment 51604 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51604&action=edit Proposed minimal fix In gcc.c the assembler name is hard coded as "as" and the --with-as option does not change this. When building an aarch64-linxu-gnu cross compiler the build process used aarc64-linux-gnu-as but the built cross compiler attempted to use "as", which does not work. While I could override the spec file that is a suboptimal solution. This affects at least the gcc-12 tip version and probably most other versions too. The proposed fix has been tested without --with-as and with --with-as=/usr/local/bin/aarch64-linux-gnu-as.