Wind River Support Network

HomeDefectsLIN9-5958
Fixed

LIN9-5958 : invalid path in /usr/bin/libtool

Created: Dec 6, 2017    Updated: Dec 3, 2018
Resolved Date: Dec 25, 2017
Found In Version: 9.0.0.12
Fix Version: 9.0.0.14
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Userspace

Description

Problem Description
======================
invalid path in /usr/bin/libtool, the script include some host path.

lt_truncate_bin="/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/dd bs=4096 count=1"

log:
root@xxxx:~# cat /usr/bin/libtool | grep -C5 lt_truncate_bin

# The root where to search for dependent libraries,and where our libraries should be installed.
lt_sysroot=

# Command to truncate a binary pipe.
lt_truncate_bin="/buildarea1/WRL8CGP_regression/build_dir/userspace/intel-x86-64/Wildcast_Pass_cgl_glibc_cgl_WR_systemd/lxbuilds/Wildcast_Pass_platform_up/intel-x86-64-cgl-glibc-cgl/wrlinux/bitbake_build/tmp/sysroots/x86_64-linux/usr/bin/dd bs=4096 count=1"

# The name of the directory that contains temporary libtool files.
objdir=.libs

# Used to examine libraries when file_magic_cmd begins with "file".
-- 
# This function is only a basic sanity check; it will hardly flush out
# determined imposters.
func_ltwrapper_script_p ()
{
    test -f "$1" &&
      $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
}

# func_ltwrapper_executable_p file
# True iff FILE is a libtool wrapper executable
# This function is only a basic sanity check; it will hardly flush out
root@xxxx:~#
root@xxxx:~# rpm -qf /usr/bin/libtool
libtool-2.4.6-r0.0.corei7_64
root@xxxx:~#

Expected Behavior
======================
set a correct path

Observed Behavior
======================
see log

Steps to Reproduce

1. configure one project
/lpg-build/cdc/fast_prod/wrlinux90RCPL/RCPL0013_LX02/wrlinux-9/setup.sh --machines intel-x86-64 --kernel cgl --distro wrlinux-cgl --templates feature/acl feature/cut feature/gcc-sanitizers feature/ipv6 feature/LAMP feature/libhugetlbfs feature/lttng feature/mariadb feature/mysql-odbc feature/nfsd feature/system-stats feature/target-toolchain feature/test feature/ufw feature/valgrind feature/xfce feature/test --dl-layers --layers meta-filesystems meta-xfce wr-cgl --accept-eula=yes --dl-layers 

. ./environment-setup-x86_64-wrlinuxsdk-linux
. ./oe-init-build-env test01

bitbake-layers add-layer /buildarea2/xxxxxx/wrl-testcases/wr-testing/userspace

SSTATE_DIR = "/buildarea2/xxxxxx/sstate_90"
DL_DIR = "/buildarea2/xxxxxx/workspace/wrl90/WRL90_DL"
INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "usermod -P 'root' root;"
INHERIT += "rm_work"
RM_OLD_IMAGE = "1"
BB_NO_NETWORK = "0"
# INHERIT += "ccache"
# CCACHE_DIR = "/buildarea2/xxxxxx/ccache_90"
WRTEMPLATE_append = " feature/userspace-test"
IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
SELECTED_OPTIMIZATION = "${PROFILING_OPTIMIZATION}"
DEBUG_BUILD = "1"
EXTRA_IMAGE_FEATURES_append += " dbg-pkgs"
BB_NO_NETWORK_pn-lmbench = '0'
IMAGE_FSTYPES_remove += " wic wic.bmap live"
IMAGE_INSTALL_append = " hostapd wpa-supplicant libunwind rpcbind subversion wireshark openvpn opencv openjpeg nasm poppler icu ffmpeg git"
LICENSE_FLAGS_WHITELIST += "commercial non-commercial"


bitbake wrlinux-image-glibc-cgl

2, deploy and boot

3, run:
cat /usr/bin/libtool 

Other Downloads


Live chat
Online