Fixed
Created: Jul 7, 2014
Updated: Dec 3, 2018
Resolved Date: Aug 27, 2014
Previous ID: OVP-1976
Found In Version: 6.0.0.10
Fix Version: 6.0.0.12
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Toolchain
Build results over the last couple of months:
xxxxx@xxxxxx:~/space/6.0$ ls -ltr ovp-guest-vt*/export/dist/usr/bin/cc
lrwxrwxrwx 1 xxxxx users 26 May 1 12:32 ovp-guest-vt-7/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 23 May 8 09:38 ovp-guest-vt-8/export/dist/usr/bin/cc -> /usr/bin/x86-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 May 14 15:39 ovp-guest-vt-9/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 May 27 13:06 ovp-guest-vt-10/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 May 29 19:11 ovp-guest-vt-11/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 23 Jun 2 10:22 ovp-guest-vt-12/export/dist/usr/bin/cc -> /usr/bin/x86-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 Jun 5 12:49 ovp-guest-vt-13/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 Jun 10 10:25 ovp-guest-vt-14/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 Jun 16 14:38 ovp-guest-vt-15/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 Jun 23 11:29 ovp-guest-vt-16/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 23 Jun 25 16:06 ovp-guest-vt-17/export/dist/usr/bin/cc -> /usr/bin/x86-tc-wrapper
lrwxrwxrwx 1 xxxxx users 23 Jun 27 16:29 ovp-guest-vt-18/export/dist/usr/bin/cc -> /usr/bin/x86-tc-wrapper
lrwxrwxrwx 1 xxxxx users 23 Jun 27 17:54 ovp-guest-vt-19/export/dist/usr/bin/cc -> /usr/bin/x86-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 Jun 27 19:19 ovp-guest-vt-20/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
lrwxrwxrwx 1 xxxxx users 26 Jul 7 11:05 ovp-guest-vt-21/export/dist/usr/bin/cc -> /usr/bin/x86-64-tc-wrapper
Sometimes we get the 32-bit toolchain which has problems. It's possible that there might be two separate problems here, the first being the 32 vs 64 bit waffle, and the second being the 32-bit one doesn't work.
Building for a 64-bit guest one would imagine that we should always get the 64-bit toolchain.
I have seen both the 32-bit and 64-bit toolchain wrapper packages get included in the build, what we end up with is determined by the order in which they get unpacked into the rootfs. That order appears to waffle.
After configure, edit local.conf and add:
ALTERNATIVES_PRIORITY_pn-toolchain-wrappers = "120"
/wrlinux/wrlinux-x/wrlinux/configure --enable-board=x86-64-kvm-guest --enable-rootfs=ovp-guest --enable-jobs=24 --enable-parallel-pkgbuilds=36 --enable-addons=wr-ovp --with-template=feature/virt-test,feature/target-toolchain