Fixed
Created: Jul 14, 2014
Updated: Dec 3, 2018
Resolved Date: Jul 23, 2014
Previous ID: LIN5-19055
Found In Version: 6.0.0.8
Fix Version: 6.0.0.10
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config
Host OS: Linux Ubuntu
Architecture: MIPS
config.log:
/WindRiver5_12/wrlinux-5/wrlinux/configure --enable-board=cav_octeon2 --enable-rootfs=glibc_std --enable-kernel=standard --enable-build=production --enable-rm-oldimgs=yes --with-template=feature/gdb --enable-jobs=8 --enable-parallel-pkgbuilds=8 --with-rcpl-version=0013
When customer tries to compile his layer, he gets the following errors:
ERROR: QA Issue: Bit size did not match (32 to 64) kernel-module-gauss on /work/cav_octeon2-wrs-linux-gnun32/kernel-module-gauss-0.1-r0/packages-split/kernel-module-gauss/lib/modules/3.4.43-WR5.0.1.13_standard/extra/gauss_drv.ko
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /TSR1358282/bitbake_build/tmp/work/cav_octeon2-wrs-linux-gnun32/kernel-module-gauss-0.1-r0/temp/do_package/log.do_package.5020
ERROR: Task 11 (/TSR1358282/Baker_layer/recipes-kernel/kernel-module-gauss/kernel-module-gauss_0.1.bb, do_package) failed with exit code '1'
Customer fixed the error by explicitly definition of TARGET_OS = "linux" into kernel-module-gauss_0.1.bb to override the default linux-gnun32, so that layers/oe-core/meta/classes/insane.bbclass’s package_qa_get_machine_dict matches mips64 and returns 64
There 2 questions here:
1. Please confirm that it's right solution.
2. What default OS target should be defined for cav_octeon2
For now we can see the following:
BB_VERSION = "1.17.1"
TARGET_ARCH = "mips64"
TARGET_OS = "linux-gnun32"
MACHINE = "cav-octeon2"
DISTRO = "wrlinux"
DISTRO_VERSION = "5.0.1.13"
TUNE_FEATURES = "n32 bigendian octeon2"
Please find the layer attached
To explicitly define TARGET_OS = "linux" into kernel-module-gauss_0.1.bb
1. run configure.
2. make -C build Baker_layer.add_pkg
3. make bbs
4. bitbake kernel-module-gauss 2>&1 | tee qa-issue.out