openwrt / packages

Community maintained packages for OpenWrt. Documentation for submitting pull requests is in CONTRIBUTING.md
GNU General Public License v2.0
3.94k stars 3.45k forks source link

lm-sensors compilation failed #17092

Open Co1lin opened 2 years ago

Co1lin commented 2 years ago

When I tried to compile the openwrt for my router, I encountered this error:

arm-openwrt-linux-muslgnueabi-gcc  -o prog/sensors/sensors prog/sensors/main.ro prog/sensors/chips.ro -liconv -Llib -lsensors /home/colin/openwrt/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-11.2.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/11.2.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: cannot find -liconv
collect2: error: ld returned 1 exit status
make[4]: *** [prog/sensors/Module.mk:43: prog/sensors/sensors] Error 1
make[4]: Leaving directory '/home/colin/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/lm-sensors-3-6-0'
make[3]: *** [Makefile:129: /home/colin/openwrt/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/lm-sensors-3-6-0/.built] Error 2
make[3]: Leaving directory '/home/colin/openwrt/feeds/packages/utils/lm-sensors'
time: package/feeds/packages/lm-sensors/compile#0.18#0.08#0.44
    ERROR: package/feeds/packages/lm-sensors failed to build.
make[2]: *** [package/Makefile:116: package/feeds/packages/lm-sensors/compile] Error 1

It seems that there's something wrong with lm-sensors. How can I fix it?

hzjnet commented 2 years ago

我也遇见了 不知道如何处理