https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117342
Khem Raj <raj.khem at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |raj.khem at gmail dot com --- Comment #15 from Khem Raj <raj.khem at gmail dot com> --- I ran into this problem as well while cross building gcc-trunk for yocto. My problem was that I made the version to be 15.1.0 instead of 15.0.1 which is what it should have been as of now. Since the version string was wrong, it did not pick the assembler from my cross-toolchain but resorted to fallback path from /usr/bin and it was an older assembler on my debian-11 host resulting in this error. It happened only when target was x86_64 since it could resort to use the assembler from host install, cross compiling for dissimilar target architecture ( e.g. riscv64) it failed to find the assembler and thats how I narrowed down to my issue.