When compiling the last git-version openwrt for GL .iNet MT3000, got the error:
Library not found: /home/src/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/lib/libc.so in p
ath: /lib:/usr/lib:/usr/lib/samba:/usr/lib/samba/ldb:/usr/lib/samba:/usr/lib/samba/vfs:/usr/lib/samba:/usr/lib
/samba/krb5:/usr/lib/samba:/usr/lib:/usr/lib/pppd/2.4.9:/usr/lib:/usr/lib/rpcd:/usr/lib:/usr/lib/ucode:/usr/li
b/ucode/luci:/usr/lib/ucode:/usr/lib
There was no this error a few days ago.
What's wrong with it?
libc is the main C function lib provided by the musl C lib.
It should always be found as the basic foundation of compilation.
I guess that the reason is that musl was upgraded to version 1.25 yesterday
If you have not yet fully cleaned and rebuilt your toolchain, you may have slightly incompatible packages or inconsistency errors.
I recommend that after updating git sources you clear the normal target firmware build artefacts (=make clean) and also the toolchain with "make targetclean" (or even wider "make dirclean").
I have built it from pure clean source codes, and tried it with a new laptop, but the error still exists. musl compiled correctly, and the libc.so was in /home/src/openwrt/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek/lib/. It seems the error message is a little strange: an absolute path/libc.so in path……?
I think I found the solution to your problem. Try removing the "Strip unnecessary functions from libraries" from the config, then clean and rebuild (e.g. "make clean && make make -j $(nproc) world".
I had the same problem and I fixed it after viewing this issue on github: