https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113635
Bug ID: 113635 Summary: [14 Regression] libatomic has undefined reference to libat_test_and_set_1_i2 in libatomic on arm-linux-gnueabi Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- seen with trunk 20240127 (and earlier snapshots) on arm-linux-gnueabi, configured with --with-arch=armv5te --with-float=soft This error is from a gcc-13 build, with the libatomic installed from a gcc-14 build, but also seen when enabling Ada or go in a trunk build: /usr/bin/ld: /lib/arm-linux-gnueabi/libatomic.so.1: undefined reference to `libat_test_and_set_1_i2' collect2: error: ld returned 1 exit status arm-linux-gnueabi-gnatlink-12: error when calling /usr/bin/arm-linux-gnueabi-gcc-12 gnatmake: *** link failed. The same thing also lets the build fail later in libgo. $ objdump -T /usr/lib/arm-linux-gnueabi/libatomic.so.1|grep libat_ 00000000 D *UND* 00000000 Base libat_test_and_set_1_i2 the libatomic from a GCC 13 build doesn't show this undefined symbol.