How to fix gettext-full undefined reference to u8_uctomb_aux
opened 07:29AM - 10 May 23 UTC
bug
### Describe the bug
libtool: link: x86_64-openwrt-linux-musl-gcc -DINSTALLDIR=… "/usr/bin" -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1=gettext-0.21.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -DPIC -fpic -znow -zrelro -o .libs/gettext gettext-gettext.o -L/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/usr/lib -L/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib ../gnulib-lib/libgrt.a ../intl/.libs/libintl.so
/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/../../../../x86_64-openwrt-linux-musl/bin/ld: ../gnulib-lib/libgrt.a(libgrt_a-iconv.o): in function rpl_iconv': iconv.c:(.text+0x34b): undefined reference to u8_mbtoucr'
/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/../../../../x86_64-openwrt-linux-musl/bin/ld: iconv.c:(.text+0x4ba): undefined reference to `u8_uctomb_aux'
collect2: error: ld returned 1 exit status
make[8]: *** [Makefile:1645: gettext] Error 1
make[8]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/gettext-runtime/src'
make[7]: *** [Makefile:1643: all-recursive] Error 1
make[7]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/gettext-runtime'
make[6]: *** [Makefile:1548: all] Error 2
make[6]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/gettext-runtime'
make[5]: *** [Makefile:406: all-recursive] Error 1
make[5]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1'
make[4]: *** [Makefile:362: all] Error 2
make[4]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1'
make[3]: *** [Makefile:189: /home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/.built] Error 2
make[3]: Leaving directory '/home/openwrt/master/openwrt/package/libs/gettext-full'
time: package/libs/gettext-full/compile#381.42#118.66#437.73
ERROR: package/libs/gettext-full failed to build.
make[2]: *** [package/Makefile:116: package/libs/gettext-full/compile] Error 1
make[2]: *** Waiting for unfinished jobs....
data written to "hd.ids"
log written to "hd.log"
### OpenWrt version
master-218ce40cd7
### OpenWrt target/subtarget
x86_64
### Device
x86_64
### Image kind
Official downloaded image
### Steps to reproduce
1, ubuntu 22.04
2 time make V=s VERBOSE=1 -j$(nproc) JOBS=$(nproc) 2>&1 | tee build.log | grep -i -E "^make.*(error|[1-9]...Entering dir)"
3, branch master
### Actual behaviour
_No response_
### Expected behaviour
_No response_
### Additional info
_No response_
### Diffconfig
```text
CONFIG_TARGET_x86=y
CONFIG_TARGET_x86_64=y
CONFIG_TARGET_x86_64_DEVICE_generic=y
CONFIG_ALL_KMODS=y
CONFIG_ALL_NONSHARED=y
CONFIG_DEVEL=y
CONFIG_TOOLCHAINOPTS=y
CONFIG_AUTOREMOVE=y
CONFIG_BIND_ENABLE_DOH=y
CONFIG_BIND_LIBJSON=y
CONFIG_BPF_TOOLCHAIN_BUILD_LLVM=y
# CONFIG_BPF_TOOLCHAIN_NONE is not set
# CONFIG_GCC_USE_VERSION_12 is not set
CONFIG_GCC_USE_VERSION_13=y
CONFIG_GCC_VERSION="13.1.0"
CONFIG_GCC_VERSION_13=y
# CONFIG_GDB is not set
CONFIG_GRUB_TIMEOUT="2"
CONFIG_HAS_BPF_TOOLCHAIN=y
CONFIG_HTOP_LMSENSORS=y
CONFIG_IPERF_ENABLE_MULTICAST=y
CONFIG_KERNEL_BUILD_DOMAIN="buildhost"
CONFIG_KERNEL_BUILD_USER="builder"
CONFIG_KERNEL_CFQ_GROUP_IOSCHED=y
CONFIG_KERNEL_CGROUP_DEVICE=y
CONFIG_KERNEL_CGROUP_FREEZER=y
CONFIG_KERNEL_CGROUP_HUGETLB=y
CONFIG_KERNEL_CGROUP_NET_CLASSID=y
CONFIG_KERNEL_CGROUP_NET_PRIO=y
# CONFIG_KERNEL_DEBUG_INFO is not set
CONFIG_KERNEL_HUGETLBFS=y
CONFIG_KERNEL_HUGETLB_PAGE=y
# CONFIG_KERNEL_KALLSYMS is not set
CONFIG_KERNEL_NET_CLS_CGROUP=y
CONFIG_KERNEL_TRANSPARENT_HUGEPAGE=y
CONFIG_KERNEL_TRANSPARENT_HUGEPAGE_ALWAYS=y
CONFIG_LIBCURL_COOKIES=y
CONFIG_LIBCURL_FILE=y
CONFIG_LIBCURL_FTP=y
CONFIG_LIBCURL_GOPHER=y
CONFIG_LIBCURL_HTTP=y
CONFIG_LIBCURL_NGHTTP2=y
CONFIG_LIBCURL_NO_SMB="!"
CONFIG_LIBCURL_PROXY=y
CONFIG_LIBCURL_TFTP=y
CONFIG_LIBCURL_UNIX_SOCKETS=y
CONFIG_LIBCURL_WOLFSSL=y
CONFIG_LIBSODIUM_MINIMAL=y
CONFIG_LIBSSH2_OPENSSL=y
CONFIG_LUCI_LANG_zh_Hans=m
CONFIG_LXC_SECCOMP=y
CONFIG_LZ4_OPTIMIZE_SPEED=y
CONFIG_NFS_KERNEL_SERVER_V4=y
CONFIG_NGINX_HEADERS_MORE=y
CONFIG_NGINX_HTTP_ACCESS=y
CONFIG_NGINX_HTTP_AUTH_BASIC=y
CONFIG_NGINX_HTTP_AUTH_REQUEST=y
CONFIG_NGINX_HTTP_AUTOINDEX=y
CONFIG_NGINX_HTTP_BROTLI=y
CONFIG_NGINX_HTTP_BROWSER=y
CONFIG_NGINX_HTTP_CACHE=y
CONFIG_NGINX_HTTP_CHARSET=y
CONFIG_NGINX_HTTP_EMPTY_GIF=y
CONFIG_NGINX_HTTP_FASTCGI=y
CONFIG_NGINX_HTTP_GEO=y
CONFIG_NGINX_HTTP_GZIP=y
CONFIG_NGINX_HTTP_LIMIT_CONN=y
CONFIG_NGINX_HTTP_LIMIT_REQ=y
CONFIG_NGINX_HTTP_MAP=y
CONFIG_NGINX_HTTP_MEMCACHED=y
CONFIG_NGINX_HTTP_PROXY=y
CONFIG_NGINX_HTTP_REAL_IP=y
CONFIG_NGINX_HTTP_REFERER=y
CONFIG_NGINX_HTTP_REWRITE=y
CONFIG_NGINX_HTTP_SCGI=y
CONFIG_NGINX_HTTP_SECURE_LINK=y
CONFIG_NGINX_HTTP_SPLIT_CLIENTS=y
CONFIG_NGINX_HTTP_SSI=y
CONFIG_NGINX_HTTP_SUB=y
CONFIG_NGINX_HTTP_UPSTREAM_HASH=y
CONFIG_NGINX_HTTP_UPSTREAM_IP_HASH=y
CONFIG_NGINX_HTTP_UPSTREAM_KEEPALIVE=y
CONFIG_NGINX_HTTP_UPSTREAM_LEAST_CONN=y
CONFIG_NGINX_HTTP_USERID=y
CONFIG_NGINX_HTTP_UWSGI=y
CONFIG_NGINX_HTTP_V2=y
CONFIG_NGINX_LUA=y
CONFIG_NGINX_NAXSI=y
CONFIG_NGINX_PCRE=y
CONFIG_NGINX_SSL=y
CONFIG_NGINX_STREAM_CORE_MODULE=y
CONFIG_NGINX_STREAM_SSL_MODULE=y
CONFIG_NGINX_STREAM_SSL_PREREAD_MODULE=y
CONFIG_NGINX_STUB_STATUS=y
CONFIG_NGINX_UBUS=y
CONFIG_OPENSSL_ENGINE=y
CONFIG_OPENSSL_ENGINE_BUILTIN=y
CONFIG_OPENSSL_ENGINE_BUILTIN_DEVCRYPTO=y
CONFIG_OPENSSL_OPTIMIZE_SPEED=y
CONFIG_OPENSSL_PREFER_CHACHA_OVER_GCM=y
CONFIG_OPENSSL_WITH_ASM=y
CONFIG_OPENSSL_WITH_BLAKE2=y
CONFIG_OPENSSL_WITH_CAMELLIA=y
CONFIG_OPENSSL_WITH_CHACHA_POLY1305=y
CONFIG_OPENSSL_WITH_CMS=y
CONFIG_OPENSSL_WITH_DEPRECATED=y
CONFIG_OPENSSL_WITH_ERROR_MESSAGES=y
CONFIG_OPENSSL_WITH_IDEA=y
CONFIG_OPENSSL_WITH_MDC2=y
CONFIG_OPENSSL_WITH_PSK=y
CONFIG_OPENSSL_WITH_SEED=y
CONFIG_OPENSSL_WITH_SM234=y
CONFIG_OPENSSL_WITH_SRP=y
CONFIG_OPENSSL_WITH_TLS13=y
CONFIG_OPENSSL_WITH_WHIRLPOOL=y
CONFIG_PACKAGE_bash=m
CONFIG_PACKAGE_bind-check=m
CONFIG_PACKAGE_bind-client=m
CONFIG_PACKAGE_bind-ddns-confgen=m
CONFIG_PACKAGE_bind-dig=m
CONFIG_PACKAGE_bind-dnssec=m
CONFIG_PACKAGE_bind-host=m
CONFIG_PACKAGE_bind-libs=m
CONFIG_PACKAGE_bind-nslookup=m
CONFIG_PACKAGE_bind-rndc=m
CONFIG_PACKAGE_bind-server=m
CONFIG_PACKAGE_bind-tools=m
CONFIG_PACKAGE_blkid=y
CONFIG_PACKAGE_bmon=m
CONFIG_PACKAGE_bnx2-firmware=m
CONFIG_PACKAGE_bridge=m
CONFIG_PACKAGE_btop=m
CONFIG_PACKAGE_btrfs-progs=m
CONFIG_PACKAGE_bzip2=m
CONFIG_PACKAGE_ca-certificates=m
CONFIG_PACKAGE_cal=y
CONFIG_PACKAGE_cfdisk=m
CONFIG_PACKAGE_cgi-io=y
CONFIG_PACKAGE_cgroupfs-mount=m
CONFIG_PACKAGE_chinadns=m
CONFIG_PACKAGE_chinadns-ng=m
CONFIG_PACKAGE_cni=m
CONFIG_PACKAGE_cni-plugins=m
CONFIG_PACKAGE_cni-plugins-nft=m
CONFIG_PACKAGE_confuse=m
CONFIG_PACKAGE_containerd=m
CONFIG_PACKAGE_crun=m
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_dbus=m
CONFIG_PACKAGE_dbus-utils=m
CONFIG_PACKAGE_ddns-scripts=m
CONFIG_PACKAGE_ddns-scripts-services=m
CONFIG_PACKAGE_dmesg=y
CONFIG_PACKAGE_dnscrypt-proxy=m
CONFIG_PACKAGE_dnscrypt-proxy-resolvers=m
CONFIG_PACKAGE_dnscrypt-proxy2=m
# CONFIG_PACKAGE_dnsmasq is not set
CONFIG_PACKAGE_dnsmasq-full=y
CONFIG_PACKAGE_dnsmasq_full_auth=y
CONFIG_PACKAGE_dnsmasq_full_conntrack=y
CONFIG_PACKAGE_dnsmasq_full_dhcp=y
CONFIG_PACKAGE_dnsmasq_full_dhcpv6=y
CONFIG_PACKAGE_dnsmasq_full_dnssec=y
CONFIG_PACKAGE_dnsmasq_full_ipset=y
CONFIG_PACKAGE_dnsmasq_full_nftset=y
CONFIG_PACKAGE_dnsmasq_full_noid=y
CONFIG_PACKAGE_dnsmasq_full_tftp=y
CONFIG_PACKAGE_dnsproxy=m
CONFIG_PACKAGE_docker=m
CONFIG_PACKAGE_docker-compose=m
CONFIG_PACKAGE_dockerd=m
CONFIG_PACKAGE_etherwake=m
CONFIG_PACKAGE_ethtool=m
CONFIG_PACKAGE_ethtool-full=m
CONFIG_PACKAGE_fdisk=m
CONFIG_PACKAGE_fio=m
CONFIG_PACKAGE_frpc=m
CONFIG_PACKAGE_frps=m
CONFIG_PACKAGE_fuse-overlayfs=m
CONFIG_PACKAGE_glib2=m
CONFIG_PACKAGE_golang=m
CONFIG_PACKAGE_golang-src=m
CONFIG_PACKAGE_grep=m
CONFIG_PACKAGE_haproxy=m
CONFIG_PACKAGE_htop=m
CONFIG_PACKAGE_https-dns-proxy=m
CONFIG_PACKAGE_hwclock=m
CONFIG_PACKAGE_hwinfo=m
CONFIG_PACKAGE_iconv=m
CONFIG_PACKAGE_iftop=m
CONFIG_PACKAGE_igmpproxy=m
CONFIG_PACKAGE_ip-bridge=m
CONFIG_PACKAGE_ip-full=m
CONFIG_PACKAGE_iperf=m
CONFIG_PACKAGE_iperf3=m
CONFIG_PACKAGE_iperf3-ssl=m
CONFIG_PACKAGE_ipset=m
CONFIG_PACKAGE_ipset-dns=m
CONFIG_PACKAGE_ipset-lists=m
CONFIG_PACKAGE_iputils-ping=m
CONFIG_PACKAGE_irqbalance=m
CONFIG_PACKAGE_json-glib=m
CONFIG_PACKAGE_kcptun-client=m
CONFIG_PACKAGE_kcptun-config=m
CONFIG_PACKAGE_kcptun-server=m
CONFIG_PACKAGE_kmod=m
CONFIG_PACKAGE_kmod-amazon-ena=m
CONFIG_PACKAGE_kmod-amd-xgbe=m
CONFIG_PACKAGE_kmod-bnx2=m
CONFIG_PACKAGE_kmod-crypto-aead=y
CONFIG_PACKAGE_kmod-crypto-authenc=y
CONFIG_PACKAGE_kmod-crypto-manager=y
CONFIG_PACKAGE_kmod-crypto-null=y
CONFIG_PACKAGE_kmod-cryptodev=y
CONFIG_PACKAGE_kmod-e1000e=m
CONFIG_PACKAGE_kmod-forcedeth=m
CONFIG_PACKAGE_kmod-igbvf=y
CONFIG_PACKAGE_kmod-ipt-core=y
CONFIG_PACKAGE_kmod-ipt-ipset=y
CONFIG_PACKAGE_kmod-ixgbevf=y
CONFIG_PACKAGE_kmod-mii=m
CONFIG_PACKAGE_kmod-nf-conntrack-netlink=y
CONFIG_PACKAGE_kmod-nf-ipt=y
# CONFIG_PACKAGE_kmod-pcmcia-core is not set
CONFIG_PACKAGE_kmod-phy-realtek=m
CONFIG_PACKAGE_kmod-r8169=m
# CONFIG_PACKAGE_kmod-rtl8812au-ct is not set
CONFIG_PACKAGE_kmod-tg3=m
CONFIG_PACKAGE_libacl=m
CONFIG_PACKAGE_libaio=m
CONFIG_PACKAGE_libattr=m
CONFIG_PACKAGE_libbpf=m
CONFIG_PACKAGE_libbz2=m
CONFIG_PACKAGE_libcap=m
CONFIG_PACKAGE_libcap-ng=m
CONFIG_PACKAGE_libcares=m
CONFIG_PACKAGE_libcharset=m
CONFIG_PACKAGE_libcurl=y
CONFIG_PACKAGE_libdbus=m
CONFIG_PACKAGE_libdevmapper=m
CONFIG_PACKAGE_libelf=m
CONFIG_PACKAGE_libev=m
CONFIG_PACKAGE_libevent2=m
CONFIG_PACKAGE_libevent2-core=m
CONFIG_PACKAGE_libevent2-extra=m
CONFIG_PACKAGE_libevent2-openssl=m
CONFIG_PACKAGE_libevent2-pthreads=m
CONFIG_PACKAGE_libexpat=m
CONFIG_PACKAGE_libexslt=m
CONFIG_PACKAGE_libfdisk=m
CONFIG_PACKAGE_libffi=m
CONFIG_PACKAGE_libfreetype=m
CONFIG_PACKAGE_libfuse3=m
CONFIG_PACKAGE_libgcrypt=m
CONFIG_PACKAGE_libgdbm=m
CONFIG_PACKAGE_libgmp=y
CONFIG_PACKAGE_libgpg-error=m
CONFIG_PACKAGE_libiconv-full=m
CONFIG_PACKAGE_libidn2=m
CONFIG_PACKAGE_libintl-full=m
CONFIG_PACKAGE_libiperf3=m
CONFIG_PACKAGE_libipset=m
CONFIG_PACKAGE_libiwinfo=y
CONFIG_PACKAGE_libiwinfo-data=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_libjpeg-turbo=m
CONFIG_PACKAGE_libkeyutils=m
CONFIG_PACKAGE_libkmod=m
CONFIG_PACKAGE_libldns=m
CONFIG_PACKAGE_libltdl=m
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblua5.3=m
CONFIG_PACKAGE_liblucihttp=y
CONFIG_PACKAGE_liblucihttp-lua=y
CONFIG_PACKAGE_liblucihttp-ucode=m
CONFIG_PACKAGE_liblz4=m
CONFIG_PACKAGE_liblzma=m
CONFIG_PACKAGE_liblzo=m
CONFIG_PACKAGE_libmaxminddb=m
CONFIG_PACKAGE_libmbedtls=m
CONFIG_PACKAGE_libmodbus=m
CONFIG_PACKAGE_libmount=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libnetfilter-conntrack=y
CONFIG_PACKAGE_libnettle=y
CONFIG_PACKAGE_libnetwork=m
CONFIG_PACKAGE_libnfnetlink=y
CONFIG_PACKAGE_libnghttp2=y
CONFIG_PACKAGE_libnl=m
CONFIG_PACKAGE_libnl-core=m
CONFIG_PACKAGE_libnl-genl=m
CONFIG_PACKAGE_libnl-nf=m
CONFIG_PACKAGE_libnl-route=m
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libopenssl-conf=y
CONFIG_PACKAGE_libpam=m
CONFIG_PACKAGE_libparted=m
CONFIG_PACKAGE_libpbc=m
CONFIG_PACKAGE_libpcap=m
CONFIG_PACKAGE_libpci=m
CONFIG_PACKAGE_libpcre=m
CONFIG_PACKAGE_libpcre2=m
CONFIG_PACKAGE_libpng=m
CONFIG_PACKAGE_libpopt=m
CONFIG_PACKAGE_libpython3=m
CONFIG_PACKAGE_libreadline=m
CONFIG_PACKAGE_libroxml=m
CONFIG_PACKAGE_libsasl2=m
CONFIG_PACKAGE_libseccomp=m
CONFIG_PACKAGE_libsensors=m
CONFIG_PACKAGE_libsodium=m
CONFIG_PACKAGE_libsqlite3=m
CONFIG_PACKAGE_libssh2=m
CONFIG_PACKAGE_libsysfs=m
CONFIG_PACKAGE_libtasn1=m
CONFIG_PACKAGE_libtirpc=m
CONFIG_PACKAGE_libubox-lua=m
CONFIG_PACKAGE_libubus-lua=y
CONFIG_PACKAGE_libuci-lua=m
CONFIG_PACKAGE_libunistring=m
CONFIG_PACKAGE_libunwind=m
CONFIG_PACKAGE_libustream-mbedtls=m
CONFIG_PACKAGE_libustream-openssl=m
CONFIG_PACKAGE_libustream-wolfssl=y
CONFIG_PACKAGE_libuv=m
CONFIG_PACKAGE_libwolfssl=m
CONFIG_PACKAGE_libwolfssl-benchmark=m
CONFIG_PACKAGE_libwolfsslcpu-crypto=y
CONFIG_PACKAGE_libwrap=m
CONFIG_PACKAGE_libxml2=m
CONFIG_PACKAGE_libxslt=m
CONFIG_PACKAGE_libyaml=m
CONFIG_PACKAGE_libzip-mbedtls=m
CONFIG_PACKAGE_libzip-openssl=m
CONFIG_PACKAGE_libzstd=m
CONFIG_PACKAGE_losetup=m
CONFIG_PACKAGE_lsblk=y
CONFIG_PACKAGE_lscpu=y
CONFIG_PACKAGE_lsof=m
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_lua5.3=m
CONFIG_PACKAGE_luac5.3=m
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-ddns=m
CONFIG_PACKAGE_luci-app-dnscrypt-proxy=m
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-frpc=m
CONFIG_PACKAGE_luci-app-frps=m
CONFIG_PACKAGE_luci-app-https-dns-proxy=m
CONFIG_PACKAGE_luci-app-mwan3=m
CONFIG_PACKAGE_luci-app-nft-qos=m
CONFIG_PACKAGE_luci-app-nlbwmon=m
CONFIG_PACKAGE_luci-app-omcproxy=m
CONFIG_PACKAGE_luci-app-opkg=y
CONFIG_PACKAGE_luci-app-privoxy=m
CONFIG_PACKAGE_luci-app-shadowsocks-libev=m
CONFIG_PACKAGE_luci-app-smartdns=m
CONFIG_PACKAGE_luci-app-udpxy=m
CONFIG_PACKAGE_luci-app-wireguard=m
CONFIG_PACKAGE_luci-app-wol=m
CONFIG_PACKAGE_luci-base=y
CONFIG_PACKAGE_luci-compat=m
CONFIG_PACKAGE_luci-i18n-base-zh-cn=m
CONFIG_PACKAGE_luci-i18n-dashboard-zh-cn=m
CONFIG_PACKAGE_luci-i18n-ddns-zh-cn=m
CONFIG_PACKAGE_luci-i18n-dnscrypt-proxy-zh-cn=m
CONFIG_PACKAGE_luci-i18n-firewall-zh-cn=m
CONFIG_PACKAGE_luci-i18n-frpc-zh-cn=m
CONFIG_PACKAGE_luci-i18n-frps-zh-cn=m
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-zh-cn=m
CONFIG_PACKAGE_luci-i18n-mwan3-zh-cn=m
CONFIG_PACKAGE_luci-i18n-nft-qos-zh-cn=m
CONFIG_PACKAGE_luci-i18n-nlbwmon-zh-cn=m
CONFIG_PACKAGE_luci-i18n-omcproxy-zh-cn=m
CONFIG_PACKAGE_luci-i18n-opkg-zh-cn=m
CONFIG_PACKAGE_luci-i18n-privoxy-zh-cn=m
CONFIG_PACKAGE_luci-i18n-shadowsocks-libev-zh-cn=m
CONFIG_PACKAGE_luci-i18n-smartdns-zh-cn=m
CONFIG_PACKAGE_luci-i18n-udpxy-zh-cn=m
CONFIG_PACKAGE_luci-i18n-wireguard-zh-cn=m
CONFIG_PACKAGE_luci-i18n-wol-zh-cn=m
CONFIG_PACKAGE_luci-lib-base=y
CONFIG_PACKAGE_luci-lib-docker=m
CONFIG_PACKAGE_luci-lib-httpclient=m
CONFIG_PACKAGE_luci-lib-httpprotoutils=m
CONFIG_PACKAGE_luci-lib-ip=y
CONFIG_PACKAGE_luci-lib-ipkg=m
CONFIG_PACKAGE_luci-lib-json=m
CONFIG_PACKAGE_luci-lib-jsonc=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-mod-dashboard=m
CONFIG_PACKAGE_luci-mod-network=y
CONFIG_PACKAGE_luci-mod-rpc=m
CONFIG_PACKAGE_luci-mod-status=y
CONFIG_PACKAGE_luci-mod-system=y
CONFIG_PACKAGE_luci-proto-ipv6=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-proto-wireguard=m
CONFIG_PACKAGE_luci-ssl=y
CONFIG_PACKAGE_luci-ssl-openssl=m
CONFIG_PACKAGE_luci-theme-bootstrap=y
CONFIG_PACKAGE_luci-theme-material=m
CONFIG_PACKAGE_luci-theme-openwrt=m
CONFIG_PACKAGE_luci-theme-openwrt-2020=m
CONFIG_PACKAGE_lvm2=m
CONFIG_PACKAGE_lxc=m
CONFIG_PACKAGE_lz4=m
CONFIG_PACKAGE_lzmainfo=m
CONFIG_PACKAGE_mbedtls-util=m
CONFIG_PACKAGE_more=y
CONFIG_PACKAGE_mount-utils=m
CONFIG_PACKAGE_mtr-json=m
CONFIG_PACKAGE_mwan3=m
CONFIG_PACKAGE_ncat=m
CONFIG_PACKAGE_ncat-full=m
CONFIG_PACKAGE_ncat-ssl=m
CONFIG_PACKAGE_ndiff=m
CONFIG_PACKAGE_netcat=m
CONFIG_PACKAGE_nfs-kernel-server=m
CONFIG_PACKAGE_nfs-kernel-server-utils=m
CONFIG_PACKAGE_nfs-utils=m
CONFIG_PACKAGE_nfs-utils-libs=m
CONFIG_PACKAGE_nginx=m
CONFIG_PACKAGE_nlbwmon=m
CONFIG_PACKAGE_nmap=m
CONFIG_PACKAGE_nmap-full=m
CONFIG_PACKAGE_nmap-ssl=m
CONFIG_PACKAGE_nping=m
CONFIG_PACKAGE_nping-ssl=m
CONFIG_PACKAGE_nstat=m
CONFIG_PACKAGE_ntp-utils=m
CONFIG_PACKAGE_ntpd=m
CONFIG_PACKAGE_ntpdate=m
CONFIG_PACKAGE_odhcpd=m
CONFIG_PACKAGE_odhcpd_full_ext_cer_id=0
CONFIG_PACKAGE_omcproxy=m
CONFIG_PACKAGE_openssl-util=m
CONFIG_PACKAGE_parted=m
CONFIG_PACKAGE_pciids=m
CONFIG_PACKAGE_pciutils=m
CONFIG_PACKAGE_privoxy=m
CONFIG_PACKAGE_px5g-wolfssl=y
CONFIG_PACKAGE_python3=m
CONFIG_PACKAGE_python3-asyncio=m
CONFIG_PACKAGE_python3-attrs=m
CONFIG_PACKAGE_python3-base=m
CONFIG_PACKAGE_python3-bcrypt=m
CONFIG_PACKAGE_python3-cached-property=m
CONFIG_PACKAGE_python3-certifi=m
CONFIG_PACKAGE_python3-cffi=m
CONFIG_PACKAGE_python3-cgi=m
CONFIG_PACKAGE_python3-cgitb=m
CONFIG_PACKAGE_python3-chardet=m
CONFIG_PACKAGE_python3-click=m
CONFIG_PACKAGE_python3-codecs=m
CONFIG_PACKAGE_python3-colorama=m
CONFIG_PACKAGE_python3-cryptography=m
CONFIG_PACKAGE_python3-ctypes=m
CONFIG_PACKAGE_python3-dbm=m
CONFIG_PACKAGE_python3-decimal=m
CONFIG_PACKAGE_python3-distro=m
CONFIG_PACKAGE_python3-distutils=m
CONFIG_PACKAGE_python3-dockerpty=m
CONFIG_PACKAGE_python3-docopt=m
CONFIG_PACKAGE_python3-dotenv=m
CONFIG_PACKAGE_python3-email=m
CONFIG_PACKAGE_python3-idna=m
CONFIG_PACKAGE_python3-jsonschema=m
CONFIG_PACKAGE_python3-light=m
CONFIG_PACKAGE_python3-logging=m
CONFIG_PACKAGE_python3-lzma=m
CONFIG_PACKAGE_python3-multiprocessing=m
CONFIG_PACKAGE_python3-ncurses=m
CONFIG_PACKAGE_python3-openssl=m
CONFIG_PACKAGE_python3-paramiko=m
CONFIG_PACKAGE_python3-pkg-resources=m
CONFIG_PACKAGE_python3-ply=m
CONFIG_PACKAGE_python3-pycparser=m
CONFIG_PACKAGE_python3-pydoc=m
CONFIG_PACKAGE_python3-pynacl=m
CONFIG_PACKAGE_python3-pyparsing=m
CONFIG_PACKAGE_python3-pyrsistent=m
CONFIG_PACKAGE_python3-readline=m
CONFIG_PACKAGE_python3-requests=m
CONFIG_PACKAGE_python3-setuptools=m
CONFIG_PACKAGE_python3-six=m
CONFIG_PACKAGE_python3-sqlite3=m
CONFIG_PACKAGE_python3-texttable=m
CONFIG_PACKAGE_python3-unittest=m
CONFIG_PACKAGE_python3-urllib=m
CONFIG_PACKAGE_python3-urllib3=m
CONFIG_PACKAGE_python3-uuid=m
CONFIG_PACKAGE_python3-websocket-client=m
CONFIG_PACKAGE_python3-xml=m
CONFIG_PACKAGE_python3-yaml=m
CONFIG_PACKAGE_qosify=m
CONFIG_PACKAGE_r8169-firmware=m
CONFIG_PACKAGE_resolveip=m
CONFIG_PACKAGE_rpcbind=m
CONFIG_PACKAGE_rpcd=y
CONFIG_PACKAGE_rpcd-mod-file=y
CONFIG_PACKAGE_rpcd-mod-iwinfo=y
CONFIG_PACKAGE_rpcd-mod-luci=y
CONFIG_PACKAGE_rpcd-mod-rpcsys=m
CONFIG_PACKAGE_rpcd-mod-rrdns=y
CONFIG_PACKAGE_rpcd-mod-ucode=m
CONFIG_PACKAGE_rsync=m
CONFIG_PACKAGE_rsyncd=m
CONFIG_PACKAGE_runc=m
CONFIG_PACKAGE_shadowsocks-libev-config=m
CONFIG_PACKAGE_shadowsocks-libev-ss-local=m
CONFIG_PACKAGE_shadowsocks-libev-ss-redir=m
CONFIG_PACKAGE_shadowsocks-libev-ss-rules=m
CONFIG_PACKAGE_shadowsocks-libev-ss-server=m
CONFIG_PACKAGE_shadowsocks-libev-ss-tunnel=m
CONFIG_PACKAGE_shadowsocks-tools=m
CONFIG_PACKAGE_simple-obfs=m
CONFIG_PACKAGE_simple-obfs-server=m
CONFIG_PACKAGE_sing-box=m
CONFIG_PACKAGE_smartdns=m
CONFIG_PACKAGE_swap-utils=m
CONFIG_PACKAGE_sysfsutils=m
CONFIG_PACKAGE_sysstat=m
CONFIG_PACKAGE_tc-full=m
CONFIG_PACKAGE_tc-mod-iptables=m
CONFIG_PACKAGE_tcl=m
CONFIG_PACKAGE_tcpdump=m
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_tini=m
CONFIG_PACKAGE_tmux=m
CONFIG_PACKAGE_ucert=m
CONFIG_PACKAGE_ucert-full=m
CONFIG_PACKAGE_udpxy=m
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-lua=m
CONFIG_PACKAGE_uhttpd-mod-ubus=y
CONFIG_PACKAGE_uhttpd-mod-ucode=m
CONFIG_PACKAGE_unzip=m
CONFIG_PACKAGE_uuidd=m
CONFIG_PACKAGE_uuidgen=m
CONFIG_PACKAGE_wget-ssl=m
CONFIG_PACKAGE_whereis=m
CONFIG_PACKAGE_which=m
CONFIG_PACKAGE_wireguard-tools=m
CONFIG_PACKAGE_xfrm=m
CONFIG_PACKAGE_xz-utils=m
CONFIG_PACKAGE_zlib=m
CONFIG_PACKAGE_zoneinfo-asia=m
CONFIG_PACKAGE_zoneinfo-core=m
CONFIG_PACKAGE_zram-swap=m
CONFIG_PACKAGE_zstd=m
CONFIG_PARTED_LVM2=y
CONFIG_PARTED_READLINE=y
CONFIG_PCRE2_JIT_ENABLED=y
CONFIG_PCRE_JIT_ENABLED=y
CONFIG_PING_LEGACY_SYMLINKS=y
CONFIG_RPCBIND_LIBWRAP=y
CONFIG_RPCBIND_RMTCALLS=y
CONFIG_SINGBOX_WITH_CLASH_API=y
CONFIG_SINGBOX_WITH_GVISOR=y
CONFIG_SINGBOX_WITH_QUIC=y
CONFIG_SINGBOX_WITH_REALITY_SERVER=y
CONFIG_SINGBOX_WITH_UTLS=y
CONFIG_SINGBOX_WITH_WIREGUARD=y
CONFIG_SQLITE3_COLUMN_METADATA=y
CONFIG_SQLITE3_DYNAMIC_EXTENSIONS=y
CONFIG_SQLITE3_FTS3=y
CONFIG_SQLITE3_FTS4=y
CONFIG_SQLITE3_FTS5=y
CONFIG_SQLITE3_RTREE=y
CONFIG_TARGET_INITRAMFS_COMPRESSION_NONE=y
CONFIG_TARGET_KERNEL_PARTSIZE=32
CONFIG_TARGET_ROOTFS_INITRAMFS=y
CONFIG_TARGET_ROOTFS_PARTSIZE=4096
CONFIG_USE_LLVM_BUILD=y
# CONFIG_WOLFSSL_ALT_NAMES is not set
CONFIG_WOLFSSL_HAS_NO_HW=y
CONFIG_ZLIB_OPTIMIZE_SPEED=y
CONFIG_ZSTD_OPTIMIZE_O3=y
# CONFIG_PACKAGE_libxdp is not set
# CONFIG_PACKAGE_xdp-filter is not set
# CONFIG_PACKAGE_xdp-loader is not set
# CONFIG_PACKAGE_xdpdump is not set
```
### Terms
- [X] I am reporting an issue for OpenWrt, not an unsupported fork.
libtool: link: x86_64-openwrt-linux-musl-gcc -DINSTALLDIR="/usr/bin" -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1=gettext-0.21.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -DPIC -fpic -znow -zrelro -o .libs/gettext gettext-gettext.o -L/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/usr/lib -L/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib ../gnulib-lib/libgrt.a ../intl/.libs/libintl.so
/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/../../../../x86_64-openwrt-linux-musl/bin/ld: ../gnulib-lib/libgrt.a(libgrt_a-iconv.o): in function rpl_iconv': iconv.c:(.text+0x34b): undefined reference to u8_mbtoucr'
/home/openwrt/master/openwrt/staging_dir/toolchain-x86_64_gcc-13.1.0_musl/lib/gcc/x86_64-openwrt-linux-musl/13.1.0/../../../../x86_64-openwrt-linux-musl/bin/ld: iconv.c:(.text+0x4ba): undefined reference to `u8_uctomb_aux'
collect2: error: ld returned 1 exit status
make[8]: *** [Makefile:1645: gettext] Error 1
make[8]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/gettext-runtime/src'
make[7]: *** [Makefile:1643: all-recursive] Error 1
make[7]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/gettext-runtime'
make[6]: *** [Makefile:1548: all] Error 2
make[6]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/gettext-runtime'
make[5]: *** [Makefile:406: all-recursive] Error 1
make[5]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1'
make[4]: *** [Makefile:362: all] Error 2
make[4]: Leaving directory '/home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1'
make[3]: *** [Makefile:189: /home/openwrt/master/openwrt/build_dir/target-x86_64_musl/gettext-0.21.1/.built] Error 2
make[3]: Leaving directory '/home/openwrt/master/openwrt/package/libs/gettext-full'
time: package/libs/gettext-full/compile#381.42#118.66#437.73
ERROR: package/libs/gettext-full failed to build.
make[2]: *** [package/Makefile:116: package/libs/gettext-full/compile] Error 1
make[2]: *** Waiting for unfinished jobs....
data written to "hd.ids"
log written to "hd.log"
1, ubuntu 22.04
2 time make V=s VERBOSE=1 -j$(nproc) JOBS=$(nproc) 2>&1 | tee build.log | grep -i -E "^make.*(error|[1-9]...Entering dir)"
3, master
4, target x86_64
I'm experiencing this on an aarch64 platform right now.
Trying to compile a complete build of master for aarch64/bpi-r3
make -j 4 world
failed
make V=sc package/gettext-full/clean, compile
also then failed
make[7]: Entering directory '/mnt/nbd/devel/openwrt/build_dir/target-aarch64_cortex-a53_musl/gettext-0.21.1/gettext-runtime/src'
aarch64-openwrt-linux-musl-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I. -I. -I.. -I../intl -I./../intl -I../gnulib-lib -I./../gnulib-lib -I/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/usr/include -I/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/include/fortify -I/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/include -DINSTALLDIR=\"/usr/bin\" -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/mnt/nbd/devel/openwrt/build_dir/target-aarch64_cortex-a53_musl/gettext-0.21.1=gettext-0.21.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fPIC -c -o gettext-gettext.o `test -f 'gettext.c' || echo './'`gettext.c
/bin/sh ../libtool --tag=CC --mode=link aarch64-openwrt-linux-musl-gcc -DINSTALLDIR=\"/usr/bin\" -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/mnt/nbd/devel/openwrt/build_dir/target-aarch64_cortex-a53_musl/gettext-0.21.1=gettext-0.21.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -DPIC -fPIC -L/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/usr/lib -L/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/lib -znow -zrelro -o gettext gettext-gettext.o ../gnulib-lib/libgrt.a ../intl/libintl.la
libtool: link: aarch64-openwrt-linux-musl-gcc "-DINSTALLDIR=\"/usr/bin\"" -Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -ffile-prefix-map=/mnt/nbd/devel/openwrt/build_dir/target-aarch64_cortex-a53_musl/gettext-0.21.1=gettext-0.21.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z -Wl,now -Wl,-z -Wl,relro -DPIC -fPIC -znow -zrelro -o .libs/gettext gettext-gettext.o -L/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/usr/lib -L/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/lib ../gnulib-lib/libgrt.a ../intl/.libs/libintl.so
/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/12.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: ../gnulib-lib/libgrt.a(libgrt_a-iconv.o): in function `rpl_iconv':
iconv.c:(.text+0x3a4): undefined reference to `u8_mbtoucr'
/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/12.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: iconv.c:(.text+0x3a8): undefined reference to `u8_mbtoucr'
/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/12.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: iconv.c:(.text+0x3e4): undefined reference to `u8_uctomb_aux'
/mnt/nbd/devel/openwrt/staging_dir/toolchain-aarch64_cortex-a53_gcc-12.2.0_musl/lib/gcc/aarch64-openwrt-linux-musl/12.2.0/../../../../aarch64-openwrt-linux-musl/bin/ld: iconv.c:(.text+0x3e8): undefined reference to `u8_uctomb_aux'
collect2: error: ld returned 1 exit status
Testing it on a up-to-date Linux Mint which is based on Ubuntu 22.04 it works for me. But I compile it with one additional step which reduces errors due to parallel compile for me:
time make -j$(nproc) toolchain/install
time make -j$(nproc) world
unfortunately it fails in buildbot too
https://downloads.openwrt.org/snapshots/faillogs/i386_pentium4/base/gettext-full/compile.txt
looks like it still tries to pick some external packages
They are from May 6 ... well I'm not much of a help here. Being on latest master (commit 218ce40cd738f3373438aab82467807a8707fb9c) with above commands it compiles fine for me for x86-64 and bpi-r3.
opened 04:57AM - 12 May 23 UTC
Since list of currently failing builds seems to be quite long, I think it's bett… er to create unified thread with list of software that fails build:
- [ ] xtables-addons: #20993
- [ ] ttyd: #20987
- [ ] zmq: #20972
- [ ] gnutls: #20969
- [ ] libwebsockets: #20949
- [ ] nginx-util: #20961
- [ ] pdns: missing header exception
- [ ] acpica-unix: -Werror=dangling-pointer= `TARGET_CFLAGS += -Wno-error=dangling-pointer=`
- [ ] apcupsd: undefined reference to `std::__throw_out_of_range_fmt(char const*, ...)'
- [ ] openwrt/gettext-full: `DEPENDS:=+libunistring` `TARGET_LDFLAGS += -lunistring`
add:
DEPENDS:=+libunistring
and
TARGET_LDFLAGS += -lunistring
just a work-around, missing feature should be patched in instead of making a depency that previously was unnecessary.. or replaced by something else.