Host dosfstools fails on openwrt-22.03


I'm trying to build openwrt-22.03 on my desktop and I get this error:

/usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find @LIBICONV@: No such file or directory
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:449: fsck.fat] Error 1
make[5]: Leaving directory '/home/dagg/workspace/router/openwrt.git/build_dir/host/dosfstools-4.2/src'
make[4]: *** [Makefile:412: all-recursive] Error 1
make[4]: Leaving directory '/home/dagg/workspace/router/openwrt.git/build_dir/host/dosfstools-4.2'
make[3]: *** [Makefile:28: /home/dagg/workspace/router/openwrt.git/build_dir/host/dosfstools-4.2/.built] Error 2
make[3]: Leaving directory '/home/dagg/workspace/router/openwrt.git/tools/dosfstools'
time: tools/dosfstools/compile#2.45#0.31#11.84
    ERROR: tools/dosfstools failed to build.

the distro is gentoo, glibc version is 2.35 based

anyone knows it is fixed anywhere?

Seems you're missing something...

AM_ICONV is missing, cannot seem to find where it comes from

from what I understand, that macro comes from iconv.m4 which is part of gettext, e.g. gettext need to be installed,
I assume I need to create a makefile under tools/gettext however I'm not sure how to set the order as it needs to get build before dosfstools