https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113499
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Note it might also be because the failing build is using glibc-2.31, IIRC newer glibc might include libdl directly (at least that's the case for libpthreads ...)