https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109698
--- Comment #3 from David Richards <dnewtonrichards at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > What version of ld is this? > > It might be bug there: > https://sourceware.org/bugzilla/show_bug.cgi?id=24458 ld --version: GNU ld (GNU Binutils for Debian) 2.31.1 Copyright (C) 2018 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. Note: I have built gcc/g++ version 12.2 without issue on this system... Thanks! Dave