openwrt / openwrt/packages

nfs-kernel-server: build fails with full language support, without mold

Open
#26,543 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Makefile
Stars
4.6k
Forks
4k
Avg merge
3d 12h
Merged PRs (30d)
134

Description

  1. Enable full language support.
  2. Disable mold linker.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.