Wind River Support Network

HomeDefectsLIN8-2812
Fixed

LIN8-2812 : axxiaarm kernel fails to build with DEBUG_LOCKING_API_SELFTESTS

Created: Feb 19, 2016    Updated: Jul 17, 2017
Resolved Date: Mar 21, 2016
Found In Version: 8.0.0.1
Fix Version: 8.0.0.4
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Kernel

Description

The customer enabled CONFIG_DEBUG_LOCKING_API_SELFTESTS in his kernel .config and hit a build error.

Steps to Reproduce

# configure --enable-board=axxiaarm --enable-kernel=preempt_rt --enable-rootfs=glibc_std
# make -C build linux-windriver.menuconfig

Under the kernel features, switch preempt from FULL to BASIC.
Under kernel hacking, enable DEBUG_LOCKING_API_SELFTESTS.

# make -C build linux-windriver

|   CC      lib/locking-selftest.o
| /usr/work/axxia-debug_locking_api/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/lib/locking-selftest.c: In function 'dotest':
| /usr/work/axxia-debug_locking_api/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/lib/locking-selftest.c:1008:25: error: 'struct task_struct' has no member named 'migrate_disable_atomic'
|   save_migrate_atomic = p->migrate_disable_atomic;
|                          ^
| /usr/work/axxia-debug_locking_api/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/lib/locking-selftest.c:1014:3: error: 'struct task_struct' has no member named 'migrate_disable_atomic'
|   p->migrate_disable_atomic = save_migrate_atomic;
|    ^
| /usr/work/axxia-debug_locking_api/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/scripts/Makefile.build:258: recipe for target 'lib/locking-selftest.o' failed
| make[3]: *** [lib/locking-selftest.o] Error 1
| /usr/work/axxia-debug_locking_api/bitbake_build/tmp/work-shared/axxiaarm/kernel-source/Makefile:937: recipe for target 'lib' failed
| make[2]: *** [lib] Error 2
| Makefile:146: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /usr/work/axxia-debug_locking_api/bitbake_build/tmp/work/axxiaarm-wrs-linux-gnueabi/linux-windriver/4.1-r0/temp/do_compile/log.do_compile.20517)
ERROR: Task 12 (/usr/work/axxia-debug_locking_api/layers/wr-kernel/recipes-kernel/linux/linux-windriver_4.1.bb, do_compile) failed with exit code '1'
Live chat
Online