#19989: Trunk r46120 on ar71xx failed to compile when CONFIG_USE_MKLIBS=y
----------------------+------------------------
 Reporter:  dcheng_   |      Owner:  developers
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  packages  |    Version:  Trunk
 Keywords:            |
----------------------+------------------------
 When "Strip unnecessary functions from libraries" was selected in "Global
 build settings" (CONFIG_USE_MKLIBS=y), the system failed to compile in the
 very end with the following error messages:

 {{{

 /home/openwrt/trunk/staging_dir/host/bin/mklibs -D -d
 /home/openwrt/trunk/tmp/mklibs-out --sysroot
 /home/openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.10/root-ar71xx
 `cat /home/openwrt/trunk/tmp/mklibs-libs | sed 's:/*[^/]\+/*$::' | uniq |
 sed 's:^/home/openwrt/trunk/staging_dir/target-mips_34kc_musl-1.1.10/root-
 ar71xx:-L :'` --ldlib  --target mips-openwrt-linux-musl `cat
 /home/openwrt/trunk/tmp/mklibs-progs /home/openwrt/trunk/tmp/mklibs-libs`
 2>&1
 Traceback (most recent call last):
   File "/home/openwrt/trunk/staging_dir/host/bin/mklibs", line 415, in
 <module>
     inode = os.stat(prog)[ST_INO]
 OSError: [Errno 2] No such file or directory: 'mips-openwrt-linux-musl'
 package/Makefile:95: recipe for target 'package/install' failed
 make[2]: *** [package/install] Error 1
 make[2]: Leaving directory '/home/openwrt/trunk'
 package/Makefile:189: recipe for target '/home/openwrt/trunk/staging_dir
 /target-mips_34kc_musl-1.1.10/stamp/.package_install' failed
 make[1]: *** [/home/openwrt/trunk/staging_dir/target-
 mips_34kc_musl-1.1.10/stamp/.package_install] Error 2
 make[1]: Leaving directory '/home/openwrt/trunk'
 /home/openwrt/trunk/include/toplevel.mk:181: recipe for target 'world'
 failed
 make: *** [world] Error 2

 }}}

 It could compile successfully when stripping was disabled
 (CONFIG_USE_MKLIBS=n).
 Previous builds (before trunk r45900) had no such problems.

--
Ticket URL: <https://dev.openwrt.org/ticket/19989>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to