Wind River Support Network

HomeDefectsLIN9-7589
Fixed

LIN9-7589 : xilinx-zynq linux-windriver_4.8.bb:do_compile() failed main.c:534:2: error: implicit declaration of function 'boot_cpu_state_init'

Created: Oct 15, 2018    Updated: Feb 11, 2019
Resolved Date: Oct 17, 2018
Found In Version: 9.0.0.18
Fix Version: 9.0.0.18
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Kernel

Description

DEBUG:	|   CC      init/do_mounts_initrd.o
|   CC      init/do_mounts_initrd.o
DEBUG:	|   CC      init/do_mounts_md.o
|   CC      init/do_mounts_md.o
DEBUG:	|   CC      init/initramfs.o
|   CC      init/initramfs.o
DEBUG:	|   CC      init/calibrate.o
|   CC      init/calibrate.o
DEBUG:	|   CC      init/init_task.o
|   CC      init/init_task.o
DEBUG:	|   UPD     include/generated/compile.h
|   UPD     include/generated/compile.h
DEBUG:	|   CC      init/version.o
|   CC      init/version.o
DEBUG:	| /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/init/main.c: In function 'start_kernel':
| /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/init/main.c: In function 'start_kernel':
DEBUG:	| /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/init/main.c:534:2: error: implicit declaration of function 'boot_cpu_state_init' [-Werror=implicit-function-declaration]
| /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/init/main.c:534:2: error: implicit declaration of function 'boot_cpu_state_init' [-Werror=implicit-function-declaration]
DEBUG:	|   boot_cpu_state_init();
|   boot_cpu_state_init();
DEBUG:	|   ^~~~~~~~~~~~~~~~~~~
|   ^~~~~~~~~~~~~~~~~~~
DEBUG:	| cc1: some warnings being treated as errors
| cc1: some warnings being treated as errors
DEBUG:	| make[3]: *** [/WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/scripts/Makefile.build:289: init/main.o] Error 1
| make[3]: *** [/WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/scripts/Makefile.build:289: init/main.o] Error 1
DEBUG:	| make[3]: *** Waiting for unfinished jobs....
| make[3]: *** Waiting for unfinished jobs....
DEBUG:	| make[2]: *** [/WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/Makefile:971: init] Error 2
| make[2]: *** [/WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/Makefile:971: init] Error 2
DEBUG:	| make[1]: *** [Makefile:150: sub-make] Error 2
| make[1]: *** [Makefile:150: sub-make] Error 2
DEBUG:	| make: *** [Makefile:24: __sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
DEBUG:	| WARNING: /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work/xilinx_zynq-wrs-linux-gnueabi/linux-windriver/4.8.28-r0/temp/run.do_compile.144963:1 exit 1 from 'exit 1'[31;49;1m
[31;49;0m

| WARNING: /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work/xilinx_zynq-wrs-linux-gnueabi/linux-windriver/4.8.28-r0/temp/run.do_compile.144963:1 exit 1 from 'exit 1'
DEBUG:	| ERROR: Function failed: do_compile (log file is located at /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work/xilinx_zynq-wrs-linux-gnueabi/linux-windriver/4.8.28-r0/temp/log.do_compile.144963)
| ERROR: Function failed: do_compile (log file is located at /WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work/xilinx_zynq-wrs-linux-gnueabi/linux-windriver/4.8.28-r0/temp/log.do_compile.144963)
DEBUG:	NOTE: recipe linux-windriver-4.8.28-r0: task do_compile: Failed
NOTE: recipe linux-windriver-4.8.28-r0: task do_compile: Failed
DEBUG:	ERROR: Task (/WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/layers/wr-kernel/recipes-kernel/linux/linux-windriver_4.8.bb:do_compile) failed with exit code '1'
ERROR: Task (/WRL9/build_dir/userspace/GIT_201810/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/layers/wr-kernel/recipes-kernel/linux/linux-windriver_4.8.bb:do_compile) failed with exit code '1'
DEBUG:	NOTE: recipe libgcc-6.2.0-r0: task do_install: Succeeded

Steps to Reproduce

/WRL9/product_install/wrlinux-9/setup.sh --machines=xilinx-zynq --kernel=preempt-rt --templates feature/acl feature/gcc-sanitizers feature/ipv6 feature/LAMP feature/libhugetlbfs feature/lttng feature/mariadb feature/mysql-odbc feature/nfsd feature/sysklogd feature/system-stats feature/target-toolchain feature/test feature/xfce feature/test --layers meta-filesystems meta-xfce --dl-layers --accept-eula=yes --accept-eula=yes --dl-layers && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env

bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_90/testcases/wrlinux/wr-testing/userspace && echo WRTEMPLATE_append = \" feature/userspace-test\" >> conf/local.conf && echo DISTRO_FEATURES_append = \" x11\" >> conf/local.conf && echo SELECTED_OPTIMIZATION = \"\${PROFILING_OPTIMIZATION}\" >> conf/local.conf &&echo DEBUG_BUILD = \"1\" >> conf/local.conf &&echo EXTRA_IMAGE_FEATURES_append += \" dbg-pkgs\" >> conf/local.conf &&echo IMAGE_FSTYPES += \" tar.bz2\" >> conf/local.conf &&echo BB_NO_NETWORK_pn-lmbench = \"0\" >> conf/local.conf && echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf && echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf && echo IMAGE_FSTYPES_remove += \" wic wic.bmap live\" >> conf/local.conf

bitbake wrlinux-image-glibc-std

Other Downloads


Live chat
Online