Modify

Opened 3 years ago

Closed 3 years ago

#18158 closed defect (duplicate)

library strip fail with ext. toolchain

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: toolchain Version: Barrier Breaker 14.07
Keywords: Cc:

Description

When stripping libraries with external toolchain, build failed.

rm -f /media/data/barrier/build_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/lib/opkg/info/*.postinst
rm -rf /media/data/barrier/tmp/mklibs-progs /media/data/barrier/tmp/mklibs-out
# first find all programs and add them to the mklibs list
find /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx -type f -perm /100 -exec file -r -N -F '' {} + | awk ' /executable.*dynamically/ { print $1 }' > /media/data/barrier/tmp/mklibs-progs
# find all loadable objects that are not regular libraries and add them to the list as well
find /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx -type f -name \*.so\* -exec file -r -N -F '' {} + | awk ' /shared object/ { print $1 }' > /media/data/barrier/tmp/mklibs-libs
mkdir -p /media/data/barrier/tmp/mklibs-out
/media/data/barrier/staging_dir/host/bin/mklibs -D -d /media/data/barrier/tmp/mklibs-out --sysroot /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx `cat /media/data/barrier/tmp/mklibs-libs | sed 's:/*[^/]\+/*$::' | uniq | sed 's:^/media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx:-L :'` --ldlib /lib/ld-uClibc-0.9.33.2.so --target mips-openwrt-linux-uclibc `cat /media/data/barrier/tmp/mklibs-progs /media/data/barrier/tmp/mklibs-libs` 2>&1
I: Using /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/lib/ld-uClibc-0.9.33.2.so as dynamic linker.
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/bin/openssl may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/lib/libreadline.so.6.2 may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/lib/libblkid.so.1.1.0 may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/lib/libhistory.so.6.2 may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/sbin/uci may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/lib/libsigc-2.0.so.0.0.0 may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/sbin/tcpdump may need rpath, but --root not specified
warning: /media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/root-ar71xx/usr/lib/libpar2.so.0.0.1 may need rpath, but --root not specified
I: library reduction pass 1
3428 symbols, 561 unresolved
Library not found: libc.so.0 in path: /lib:/usr/lib:/usr/lib/iptables:/usr/lib:/usr/lib/collectd:/usr/lib:/usr/lib/pppd/2.4.7:/usr/lib
package/Makefile:94: recipe for target 'package/install' failed
make[2]: *** [package/install] Error 1
make[2]: Leaving directory '/media/data/barrier'
package/Makefile:171: recipe for target '/media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/stamp/.package_install' failed
make[1]: *** [/media/data/barrier/staging_dir/target-mips-openwrt-linux-uclibc/stamp/.package_install] Error 2
make[1]: Leaving directory '/media/data/barrier'
/media/data/barrier/include/toplevel.mk:171: die Regel für Ziel „world“ scheiterte
make: *** [world] Fehler 2

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by nbd

  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.