nfs-kernel-server: build fails with full language support, without mold
Open
Nobody has claimed this yet.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
- Enable full language support.
- Disable mold linker.
- Try to build nfs-kernel-server package. Error:
/build/openwrtb/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-14.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/14.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld.bfd: warning: libiconv.so.2, needed by /build/openwrtb/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/libxml2.so, not found (try using -rpath or -rpath-link)
/build/openwrtb/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-14.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/14.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld.bfd: /build/openwrtb/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/libxml2.so: undefined reference to `libiconv'
/build/openwrtb/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-14.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/14.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld.bfd: /build/openwrtb/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/libxml2.so: undefined reference to `libiconv_open'
/build/openwrtb/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-14.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/14.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld.bfd: /build/openwrtb/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/lib/libxml2.so: undefined reference to `libiconv_close'
It works with mold enabled.
Thanks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the nfs-kernel-server package build with full language support and mold disabled, using the reported ARM toolchain configuration. Trace the package's libxml2 and libiconv dependency handling; done means the package builds successfully without mold and without the reported linker warnings or undefined references.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100