Modify

Opened 3 years ago

#19989 new defect

Trunk r46120 on ar71xx failed to compile when CONFIG_USE_MKLIBS=y

Reported by: dcheng_ Owned by: developers
Priority: normal Milestone:
Component: packages Version: Trunk
Keywords: Cc:

Description

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.

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.