Wind River Support Network

HomeDefectsLIN6-10828
Fixed

LIN6-10828 : Building kernel will fail if disable 'CONFIG_MODULES' in kernel

Created: Feb 3, 2016    Updated: Dec 3, 2018
Resolved Date: Apr 10, 2016
Found In Version: 6.0.0.25
Fix Version: 6.0.0.30
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Build & Config, Kernel

Description

If disable 'CONFIG_MODULES' in kernel, building kernel will fail as below.

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
Setting up host-cross and links
Setting up packages link
Creating export directory
Creating project properties
NOTE: validating kernel config, see log.do_kernel_configcheck for details
Setting up host-cross and links
Setting up packages link
Creating export directory
Creating project properties
ERROR: Function failed: do_install (log file is located at /WindRiver-6.0.0/workspace/wkk_x864/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_install/log.do_install.31407)
ERROR: Logfile of failure stored in: /WindRiver-6.0.0/workspace/wkk_x864/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_install/log.do_install.31407
Log data follows:
| DEBUG: Executing python function package_get_auto_pr
| DEBUG: Python function package_get_auto_pr finished
| DEBUG: Executing shell function do_install
| NOTE: no modules to install
| ln: failed to create symbolic link `/WindRiver-6.0.0/workspace/wkk_x864/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/image/lib/modules/3.10.62-ltsi-WR6.0.0.25_standard/build': No such file or directory
| WARNING: /WindRiver-6.0.0/workspace/wkk_x864/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_install/run.do_install.31407:1 exit 1 from
|   ln -sf /usr/src/kernel-3.10.62-ltsi-wr6.0.0.25-standard "/WindRiver-6.0.0/workspace/wkk_x864/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/image/lib/modules/3.10.62-ltsi-WR6.0.0.25_standard/build"
| ERROR: Function failed: do_install (log file is located at /WindRiver-6.0.0/workspace/wkk_x864/bitbake_build/tmp/work/intel_x86_64-wrs-linux/linux-windriver/3.10-r0/temp/do_install/log.do_install.31407)
ERROR: Task 5 (/WindRiver-6.0.0/workspace/wkk_x864/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.10.bb, do_install) failed with exit code '1'
NOTE: Tasks Summary: Attempted 502 tasks of which 339 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /WindRiver-6.0.0/workspace/wkk_x864/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.10.bb, do_install
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
make: *** [linux-windriver] Error 1
make: Leaving directory `/WindRiver-6.0.0/workspace/wkk_x864/build'

Workaround

apply attached patch to prj/layers/oe-core, then rebuild kernel.

Steps to Reproduce

1. create a project like below:
/WindRiver-6.0.0/wrlinux-6/wrlinux/configure --enable-board=intel-x86-64 --enable-rootfs=glibc_small --enable-parallel-pkgbuilds=4 --enable-jobs=4 --enable-reconfig --with-rcpl-version=0025

2. make -C build linux-windriver.menuconfig

3. disable 'CONFIG_MODULES' in kernel configuration

4. make -C build linux-windriver

Other Downloads


Live chat
Online