Wind River Support Network

HomeDefectsLIN9-7095
Fixed

LIN9-7095 : linux-windriver_4.8.bb:do_compile_kernelmodules() failed on avnet_mini_itx

Created: Jul 5, 2018    Updated: Feb 11, 2019
Resolved Date: Jul 15, 2018
Found In Version: unknown
Fix Version: 9.0.0.17
Severity: Standard
Applicable for: Wind River Linux 9
Component/s: Build & Config

Description

DEBUG:	|   CC [M]  fs/cifs/link.o
|   CC [M]  fs/cifs/link.o
DEBUG:	|   CC [M]  fs/nls/nls_cp936.o
|   CC [M]  fs/nls/nls_cp936.o

......

DEBUG:	|   CC [M]  crypto/../drivers/staging/crypto/cryptodev/zc.o
|   CC [M]  crypto/../drivers/staging/crypto/cryptodev/zc.o
DEBUG:	|   CC [M]  crypto/../drivers/staging/crypto/cryptodev/util.o
|   CC [M]  crypto/../drivers/staging/crypto/cryptodev/util.o
DEBUG:	| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c: In function '__get_userbuf':
| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c: In function '__get_userbuf':
DEBUG:	| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:62:63: error: passing argument 5 of 'get_user_pages' from incompatible pointer type [-Werror=incompatible-pointer-types]
| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:62:63: error: passing argument 5 of 'get_user_pages' from incompatible pointer type [-Werror=incompatible-pointer-types]
DEBUG:	|   ret = get_user_pages((unsigned long)addr, pgcount, write, 0, pg, NULL);
|   ret = get_user_pages((unsigned long)addr, pgcount, write, 0, pg, NULL);
DEBUG:	|                                                                ^~
|                                                                ^~
DEBUG:	| In file included from /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:28:0:
| In file included from /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:28:0:
DEBUG:	| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/include/linux/mm.h:1316:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/include/linux/mm.h:1316:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
DEBUG:	|  long get_user_pages(unsigned long start, unsigned long nr_pages,
|  long get_user_pages(unsigned long start, unsigned long nr_pages,
DEBUG:	|       ^~~~~~~~~~~~~~
|       ^~~~~~~~~~~~~~
DEBUG:	| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:62:8: error: too many arguments to function 'get_user_pages'
| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:62:8: error: too many arguments to function 'get_user_pages'
DEBUG:	|   ret = get_user_pages((unsigned long)addr, pgcount, write, 0, pg, NULL);
|   ret = get_user_pages((unsigned long)addr, pgcount, write, 0, pg, NULL);
DEBUG:	|         ^~~~~~~~~~~~~~
|         ^~~~~~~~~~~~~~
DEBUG:	| In file included from /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:28:0:
| In file included from /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/crypto/../drivers/staging/crypto/cryptodev/zc.c:28:0:
DEBUG:	| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/include/linux/mm.h:1316:6: note: declared here
| /WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/include/linux/mm.h:1316:6: note: declared here
DEBUG:	|  long get_user_pages(unsigned long start, unsigned long nr_pages,
|  long get_user_pages(unsigned long start, unsigned long nr_pages,
DEBUG:	|       ^~~~~~~~~~~~~~
|       ^~~~~~~~~~~~~~
DEBUG:	| cc1: some warnings being treated as errors
| cc1: some warnings being treated as errors
DEBUG:	| make[4]: *** [/WRL9/build_dir/kernel/GIT_201807/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:290: crypto/../drivers/staging/crypto/cryptodev/zc.o] Error 1
| make[4]: *** [/WRL9/build_dir/kernel/GIT_201807/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:290: crypto/../drivers/staging/crypto/cryptodev/zc.o] Error 1
DEBUG:	| make[4]: *** Waiting for unfinished jobs....
| make[4]: *** Waiting for unfinished jobs....
DEBUG:	| make[3]: *** [/WRL9/build_dir/kernel/GIT_201807/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:440: crypto/../drivers/staging/crypto/cryptodev] Error 2
| make[3]: *** [/WRL9/build_dir/kernel/GIT_201807/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:440: crypto/../drivers/staging/crypto/cryptodev] Error 2
DEBUG:	| ERROR: oe_runmake failed
| ERROR: oe_runmake failed
DEBUG:	| make[2]: *** [/WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/Makefile:971: crypto] Error 2
| make[2]: *** [/WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/build/tmp/work-shared/xilinx-zynq/kernel-source/Makefile:971: crypto] 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:	| make: Leaving directory '/WRL9/build_dir/kernel/GIT_201807/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/linux-xilinx_zynq-preempt-rt-build'
| make: Leaving directory '/WRL9/build_dir/kernel/GIT_201807/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/linux-xilinx_zynq-preempt-rt-build'
DEBUG:	| ERROR: Function failed: do_compile_kernelmodules (log file is located at /WRL9/build_dir/kernel/GIT_201807/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_kernelmodules.24795)
| ERROR: Function failed: do_compile_kernelmodules (log file is located at /WRL9/build_dir/kernel/GIT_201807/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_kernelmodules.24795)
DEBUG:	NOTE: recipe linux-windriver-4.8.28-r0: task do_compile_kernelmodules: Failed
NOTE: recipe linux-windriver-4.8.28-r0: task do_compile_kernelmodules: Failed
DEBUG:	ERROR: Task (/WRL9/build_dir/kernel/GIT_201807/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_kernelmodules) failed with exit code '1'
ERROR: Task (/WRL9/build_dir/kernel/GIT_201807/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_kernelmodules) failed with exit code '1'
DEBUG:	NOTE: Running task 2558 of 4285 (/WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/layers/oe-core/meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb:do_package_write_rpm)
NOTE: Running task 2558 of 4285 (/WRL9/build_dir/kernel/GIT_201807/lxbuilds/avnet_mini_itx-1_platform_up/xilinx-zynq-preempt-rt-glibc-std/wrlinux/layers/oe-core/meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb:do_package_write_rpm)
DEBUG:	NOTE: recipe wr-init-1.0-r0: task do_package_write_rpm: Started
NOTE: recipe wr-init-1.0-r0: task do_package_write_rpm: Started
DEBUG:	NOTE: recipe packagegroup-wr-core-perl-1.0-r1: task do_packagedata: Succeeded

Steps to Reproduce

/WRL9/product_install/wrlinux-9/setup.sh --machines=xilinx-zynq --kernel=preempt-rt --machines=xilinx-zynq --kernel=preempt-rt --dl-layers --accept-eula=yes --dl-layers && source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build

bitbake-layers add-layer /lpg-build/cdc/WASSP_LINUX_90/testcases/wrlinux/wr-testing/kts-dev && echo require templates/feature/wr-kts/template.conf >> conf/local.conf && echo IMAGE_FSTYPES += \"tar.bz2\" >> conf/local.conf && echo BB_NUMBER_THREADS ?= \"24\" >> conf/local.conf && echo PARALLEL_MAKE ?= \"-j 24\" >> conf/local.conf && echo BB_NO_NETWORK_pn-lmbench = \"0\" >> conf/local.conf

bitbake wrlinux-image-glibc-std

Other Downloads


Live chat
Online