https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93602
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I think you have libiconv installed locally, which defines the libiconv_xxx functions. That is being found by GCC instead of the symbols in glibc, as normally happens.