Fixed
Created: Apr 22, 2016
Updated: Dec 3, 2018
Resolved Date: May 31, 2016
Found In Version: 8.0.0.4
Fix Version: 8.0.0.6
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Kernel
In WRL5 there was a request to support custom kernel headers packages which was fixed in 5.0.1.
See: WIND00392737, LIN5-1872 & LIN5-1873
However, Under WRL 8, it seems it is broken again.
$ configure --enable-board=intel-x86-64 \
--enable-rootfs=glibc_std --enable-kernel=standard \
--with-layer=wr-kernel/kernel-dev,/path/to/meta-kernelheaders-tests \
--with-package=gdb --enable-jobs=1 --enable-parallel-pkgbuilds=8 \
--enable-rm-work=yes --enable-rm-oldimgs=yes \
--enable-checkout-all-layers=yes --enable-reconfig \
--enable-ccache=yes --with-ccache-dir=/path/to/ccache \
--with-sstate-dir=/path/to/sstate --with-rcpl-version=0004
$ make fs
The build will fail as follows:
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /usr/work/knl-hdrs/bitbake_build/tmp/work/corei7-64-wrs-linux/if-bonding-test/1.0-r1/temp/do_compile/log.do_compile.30138)
ERROR: Logfile of failure stored in: /usr/work/knl-hdrs/bitbake_build/tmp/work/corei7-64-wrs-linux/if-bonding-test/1.0-r1/temp/do_compile/log.do_compile.30138
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 1 -e MAKEFLAGS=
| ccache x86_64-wrs-linux-gcc -m64 -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2 --sysroot=/usr/work/knl-hdrs/bitbake_build/tmp/sysroots/intel-x86-64 -O2 -pipe -g -c -o if-bonding-test.o if-bonding-test.c
| if-bonding-test.c: In function 'main':
| if-bonding-test.c:20:34: error: 'BOND_ENHANCED' undeclared (first use in this function)
| printf("BOND_ENHANCED is %d\n", BOND_ENHANCED);
| ^
| if-bonding-test.c:20:34: note: each undeclared identifier is reported only once for each function it appears in
| <builtin>: recipe for target 'if-bonding-test.o' failed
| make: *** [if-bonding-test.o] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /usr/work/knl-hdrs/bitbake_build/tmp/work/corei7-64-wrs-linux/if-bonding-test/1.0-r1/temp/do_compile/log.do_compile.30138)
ERROR: Task 578 (/usr/work/rad/ProServices/lx-plf-ng/layers/meta-kernelheaders-tests/recipes-extra/if-bonding-test/if-bonding-test_1.0.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3971 tasks of which 430 didn't need to be rerun and 1 failed.
NOTE: Build completion summary:
NOTE: do_populate_sysroot: 4% sstate reuse (16 setscene, 314 scratch)
NOTE: do_package_qa: 0% sstate reuse (0 setscene, 216 scratch)
NOTE: do_package: 0% sstate reuse (0 setscene, 215 scratch)
NOTE: do_packagedata: 0% sstate reuse (0 setscene, 215 scratch)
NOTE: do_package_write_rpm: 0% sstate reuse (0 setscene, 215 scratch)
NOTE: do_populate_lic: 85% sstate reuse (300 setscene, 52 scratch)
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
/usr/work/rad/ProServices/lx-plf-ng/layers/meta-kernelheaders-tests/recipes-extra/if-bonding-test/if-bonding-test_1.0.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
make: *** [export-dist] Error 1