Wind River Support Network

HomeDefectsLIN6-10312
Fixed

LIN6-10312 : Build ERROR with earlier toolchains after RCPL23 upgrade: x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0

Created: Sep 14, 2015    Updated: Dec 3, 2018
Resolved Date: Oct 7, 2015
Found In Version: 6.0.0.23
Fix Version: 6.0.0.25
Severity: Critical
Applicable for: Wind River Linux 6
Component/s: Build & Config, Toolchain

Description

Customer found that after they installed RCPL23, they can't build project configured with previous RCPL.
Error log is attached, content shown below:
-------------------------------------------------------
ln: creating symbolic link `/mnt/boards/7480/builds/windriver/RCPL12/14_09_2015_rcpl12_intel_test_build/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/image/mnt/boards/7480/builds/windriver/RCPL12/14_09_2015_rcpl12_intel_test_build/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin/prelink': File exists
WARNING: /mnt/boards/7480/builds/windriver/RCPL12/14_09_2015_rcpl12_intel_test_build/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/temp/do_install/run.do_install.24201:1 exit 1 from
  ln -s "../bin/prelink" /mnt/boards/7480/builds/windriver/RCPL12/14_09_2015_rcpl12_intel_test_build/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/image/mnt/boards/7480/builds/windriver/RCPL12/14_09_2015_rcpl12_intel_test_build/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin/prelink
ERROR: Function failed: do_install (log file is located at /mnt/boards/7480/builds/windriver/RCPL12/14_09_2015_rcpl12_intel_test_build/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/temp/do_install/log.do_install.24201)
--------------------------------------------

I can also reproduce this issue in my side, with a WRlinux6 OVP project:
/opt/WRLX6/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-kernel=preempt-rt --enable-rootfs=ovp-kvm --enable-addons=wr-ovp --enable-sdkimage-staticlibs=yes --with-template=feature/kvm,feature/benchmark,feature/debug,feature/gdb,feature/kdump,feature/kexec,feature/kernel-debug,feature/kernel-tune,feature/build_libc --enable-parallel-pkgbuilds=8 --enable-jobs=8 --enable-checkout-all-layers=yes --with-package=wrs-kvm-helper,qemu,libvirt,libvirt-libvirtd,libvirt-virsh,kernel-module-kvm,kernel-module-kvm-intel,kernel-module-kvm-amd,bridge-utils,inetutils,inetutils-rshd,inetutils-telnetd,inetutils-ftpd,ltp --enable-rm-oldimgs=yes --enable-internet-download=yes --enable-reconfig --with-rcpl-version=0012

When I build the project, I got the same error:
----------------------------------------
| ln: failed to create symbolic link `/build/gyang/wrlinux6_x86-64-rcpl20/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/image/build/gyang/wrlinux6_x86-64-rcpl20/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin/prelink': File exists
| WARNING: /build/gyang/wrlinux6_x86-64-rcpl20/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/temp/do_install/run.do_install.8131:1 exit 1 from
|   ln -s "../bin/prelink" /build/gyang/wrlinux6_x86-64-rcpl20/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/image/build/gyang/wrlinux6_x86-64-rcpl20/bitbake_build/tmp/sysroots/x86_64-linux/usr/sbin/prelink
| ERROR: Function failed: do_install (log file is located at /build/gyang/wrlinux6_x86-64-rcpl20/bitbake_build/tmp/work/x86_64-linux/prelink-native/1.0+gitAUTOINC+6822ec76aa-r0.2/temp/do_install/log.do_install.8131)
ERROR: Task 266 (virtual:native:/build/gyang/wrlinux6_x86-64-rcpl20/layers/oe-core/meta/recipes-devtools/prelink/prelink_git.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 665 tasks of which 32 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  virtual:native:/build/gyang/wrlinux6_x86-64-rcpl20/layers/oe-core/meta/recipes-devtools/prelink/prelink_git.bb, do_install
----------------------------------------

Please have a look at this issue, and provide solution as soon as possible.

Workaround

$mv wrlinux-6/layers/binary-toolchain-4.8-* somewhere, except for the newest toolchain 

Steps to Reproduce

1. Install RCPL 23

2. configure a project with RCPL 12, or RCPL 20 

3. Build the project 

Other Downloads


Live chat
Online