I had my environment set up for building LineageOS (Ubuntu xenial) and it was working perfectly fine.
I haven't updated the machine since March 2017.
Now I did 'repo sync' and suddenly I'm getting the following errors during brunch hammerhead
LD drivers/video/msm/mdss/mdss-dsi.o LD drivers/video/msm/mdss/built-in.o LD drivers/video/msm/built-in.o LD drivers/video/built-in.o LD drivers/usb/gadget/g_android.o LD drivers/usb/gadget/built-in.o LD drivers/usb/built-in.o LD drivers/built-in.o LD vmlinux.o MODPOST vmlinux.o ERROR: modpost: Found 12 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' To build the kernel despite the mismatches, build with: 'make CONFIG_NO_ERROR_ON_MISMATCH=y' (NOTE: This is not recommended) /media/rawi/android/lineageos/kernel/lge/hammerhead/scripts/Makefile.modpost:98: recipe for target 'vmlinux.o' failed make: *** [vmlinux.o] Error 1 /media/rawi/android/lineageos/kernel/lge/hammerhead/Makefile:936: recipe for target 'vmlinux.o' failed make: *** [vmlinux.o] Error 2 Makefile:130: recipe for target 'sub-make' failed make: *** [sub-make] Error 2 make: Leaving directory '/media/rawi/android/lineageos/kernel/lge/hammerhead' [ 12% 4387/34154] target Java: android-support-compat-ics-mr1 (/media/rawi/android/lineageos/out/target/common/obj/JAVA_LIBRARIES/android-support-compat-ics-mr1_intermediates/classes) ninja: build stopped: subcommand failed. build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed make: *** [ninja_wrapper] Error 1 make: Leaving directory '/media/rawi/android/lineageos' #### make failed to build some targets (13:29 (mm:ss)) ####
I added (not sure if it's necessary) the following exports
export PATH="/media/rawi/android/lineageos/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin:$PATH" export ARCH=arm export SUBARCH=arm export CROSS_COMPILE="/media/rawi/android/lineageos/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-"
I know that I can add CONFIG_NO_ERROR_ON_MISMATCH=y to config but I assume this is not the right way to do.
Any help greatly appreciated
EDIT: solved... I was compiling CAF kernel with non-caf device