Wind River Support Network

HomeDefectsLIN6-9804
Fixed

LIN6-9804 : Missing multilib libusb symlinks in the exported SDK

Created: Apr 28, 2015    Updated: Dec 3, 2018
Resolved Date: Oct 8, 2015
Found In Version: 6.0.0.18,6.0.0.22
Fix Version: 6.0.0.26
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

When creating a multilib (x86_64,x86_32) project with libusb, the following symlinks for the usb shared libs are missing:
- libusb-0.1.so.4 in /lib and /lib64
- libgcc_s.so.1 in /lib and /lib64
- libstdc++.so.6.0.18 in /lib and /lib64

Workaround

ln -s libusb-0.1.so.4 toolchains/sysroots/x86_64-wrs-linux/lib/libusb-0.1.so
ln -s libusb-0.1.so.4 toolchains/sysroots/x86_64-wrs-linux/lib64/libusb-0.1.so
ln -s libgcc_s.so.1 toolchains/sysroots/x86_64-wrs-linux/lib64/libgcc_s.so
ln -s libstdc++.so.6.0.18 toolchains/sysroots/x86_64-wrs-linux/usr/lib64/libstdc++.so 

#create toolchain into a different path and create a symbolic link
cd /ae/wrl60_distro/${PLATFORM_NAME}/export
rm -rf /atlas/wrl/wrl60/toolchains
mkdir -p /atlas/wrl/wrl60/toolchains
./wrlinux-*-wrlinux-image-glibc-core-sdk.sh -y -d /atlas/wrl/wrl60/toolchains
cd /atlas/wrl/wrl60
sudo rm -rf /ae/wrl60_distro/${PLATFORM_NAME}_toolchains/toolchains
sudo mv toolchains /ae/wrl60_distro/${PLATFORM_NAME}_toolchains
ln -s /ae/wrl60_distro/${PLATFORM_NAME}_toolchains/toolchains /atlas/wrl/wrl60/toolchains

Steps to Reproduce

1)
/wrlinux-6/wrlinux/configure --enable-board=intel_x86_64 --enable-rootfs=glibc-core --enable-kernel=standard --enable-build=production --enable-reconfig --enable-parallel-pkgbuilds=16 --with-layer=meta-selinux,wr-security,cgp --with-template=feature/archiver --with-license-flags-blacklist=GPLv3,LGPLv3,GPLv3+,LGPLv3+ --enable-jobs=16 --with-rcpl-version=0018

2)
add the following packages:
IMAGE_INSTALL += "libusb1"
IMAGE_INSTALL += "lib32-libusb1"
IMAGE_INSTALL += "libusb-compat"
IMAGE_INSTALL += "lib32-libusb-compat"

3) $ make
already check the contents of export/dist, the libusb, libgcc, libstdc++
are missing!

4) 
$ make export-sdk
check the contents of toolchains/sysroots/x86_64-wrs-linux/, the various symlinks for libusb, libgcc, libstdc++ are missing!

Other Downloads


Live chat
Online