build Linux kernel error

cancel
Showing results for 
Search instead for 
Did you mean: 

build Linux kernel error

90 Views
Contributor I

Hi,
I have recently purchased imx8mmevk board.
I have installed ubuntu16.04 in the vmware

I have download the yocto project.

but when I build Linux kerne ,I failed;

LDFLAGS="" CC="$CC" make
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
DESCEND objtool
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
CC drivers/md/dm-rq.o
drivers/md/dm-rq.c: In function ‘dm_old_init_request_queue’:
drivers/md/dm-rq.c:716:2: error: implicit declaration of function ‘elv_register_queue’ [-Werror=implicit-function-declaration]
elv_register_queue(md->queue);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:326: recipe for target 'drivers/md/dm-rq.o' failed
make[2]: *** [drivers/md/dm-rq.o] Error 1
scripts/Makefile.build:585: recipe for target 'drivers/md' failed
make[1]: *** [drivers/md] Error 2
Makefile:1039: recipe for target 'drivers' failed
make: *** [drivers] Error 2

how can I fix this error?

Thanks.

 

0 Kudos
1 Reply

35 Views
Contributor I

I had the same problem when tried to enable DM_CRYPT in kernel (4.14.98). Fixed by reverting changes from this patch: https://patchwork.kernel.org/patch/10167845/

0 Kudos