Ok, I started with v4.5 and v4.6. I successfully did a couple iterations, after adding the follownig CFLAGS to Makefile to get past compiler errors:
-fno-pie -fno-stack-protector
But I then ran into this error when trying to compile both 4.9.0 and 4.8.0:
kernel/built-in.o: In function `update_wall_time':
/data/ubuntu_mainline_kernel/linux/kernel/time/timekeeping.c:2073: undefined reference to `____ilog2_NaN'
Ok, I started with v4.5 and v4.6. I successfully did a couple iterations, after adding the follownig CFLAGS to Makefile to get past compiler errors:
-fno-pie -fno-stack- protector
But I then ran into this error when trying to compile both 4.9.0 and 4.8.0:
kernel/built-in.o: In function `update_wall_time': mainline_ kernel/ linux/kernel/ time/timekeepin g.c:2073: undefined reference to `____ilog2_NaN'
/data/ubuntu_
This appears to be a problem with GCC 7:
https:/ /lore.kernel. org/lkml/ 20170225081810. GA1364@ x4/
This is taking too much time, and I don't use this laptop enough to justify the time expenditure.