Cross Compiling an android Kernel: Errors

Hello guys maybe someone here is able to help me,

I am getting weird errors while cross compiling and android kernel.

I installed clang 3.7 on my ubuntu machine.

This is my github if anyone is interested in:

I think i added all necessary patches to make it working but it does not work.

When i cross compile without adding a target to Makefile: to hostcflags and hostcxxflags i get these errors:

Than i figured out that the target is missing i added to hostcflags and hostcxxflags and i get another weird errors:

Am i using the wrong target? Or what is the problem related to.

To compile i used make V=1 ARCH=arm SUBARCH=arm CC=/usr/lib/llvm-3.7/bin/clang HOSTCC=clang

How can i solve this?

Kind regards


Hi Stefan,

I'm no expert in compiling the kernel, but these guys are:

Maybe you'll have more luck asking them the hard questions... :slight_smile: