https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112330
Bug ID: 112330 Summary: [14 Regression] LoongArch: LTO bootstrap failure with GAS 2.41 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: xry111 at gcc dot gnu.org Target Milestone: --- r14-5053 fails to LTO bootstrap with GAS 2.41 and the following configuration: ../gcc/configure --prefix=/home/xry111/gcc-dev --with-system-zlib --disable-fixincludes --enable-default-ssp --enable-default-pie --disable-werror --disable-multilib --with-build-config=bootstrap-lto && make -j32 The error message is: /usr/bin/as: /usr/bin/as: BFD (Gentoo 2.41 p2) 2.41.0 internal error, aborting at /tmp/portage/sys-devel/binutils-2.41-r2/work/binutils-2.41/bfd/bfd.c:1185 in _bfd_doprnt /usr/bin/as: Please report this bug. The problem is since r14-4674 we are relying on Binutils commit 1fb3cdd87ec61715a5684925fb6d6a6cf53bb97c, which is not available in GAS 2.41. I guess the easiest solution is raising the minimal GAS requirement of bootstrapping GCC 14 on LoongArch to 2.42.