site  contact  subhomenews

Linux kernel 5.2.11 fails to compile

September 02, 2019 — BarryK

Well well, it has been awhile since a kernel has failed to compile, years even. Here is where it stops:

  CC      mm/rodata_test.o
CC mm/zsmalloc.o
In file included from ./include/linux/mmzone.h:10,
from ./include/linux/gfp.h:6,
from ./include/linux/umh.h:4,
from ./include/linux/kmod.h:9,
from ./include/linux/module.h:13,
from mm/zsmalloc.c:33:
mm/zsmalloc.c: In function ‘zs_create_pool’:
mm/zsmalloc.c:2435:27: error: ‘struct zs_pool’ has no member named ‘migration_wait’
./include/linux/wait.h:67:26: note: in definition of macro ‘init_waitqueue_head’
__init_waitqueue_head((wq_head), #wq_head, &__key); \
make[1]: *** [scripts/ mm/zsmalloc.o] Error 1
make: *** [Makefile:1073: mm] Error 2

I will try 5.2.10. 

EDIT 2019-09-03:
Yes, 5.2.10 compiles. I examined the changelog for 5.2.11, and it looks like a change made to mm/zsmalloc.c is the culprit. I have sent an email to the author of that commit. 

EDIT 2019-09-07:
A quick followup note. I had some communication with kernel developers. They were already aware of the problem and have fixed it in 5.2.12.

Tags: easy