Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,192 Members 37,714 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Compile kernel?

Tip us?
 
pacorrop
Old
#1  
Junior Member - OP
Thanks Meter 4
Posts: 19
Join Date: Feb 2011
Default [Q] Compile kernel?

Hi all,

I have downloaded the faux123's github data for the kernel compilation, and I use the commands located in http://sourceforge.net/projects/moto...0.0Q3.X-84-16/ Readme file. For this, I use the NDK toolchain (arm-linux-androideabi-4.8) downloaded from android.com.

However, some errors arise:

Code:
  GEN     moto_g/out/target/product/generic/obj/kernel/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/thermal/Kconfig:84:warning: defaults for choice values not supported
drivers/thermal/Kconfig:93:warning: defaults for choice values not supported
drivers/usb/gadget/Kconfig:881:warning: defaults for choice values not supported
warning: (ARCH_MSM8974 && ARCH_MSM9625 && ARCH_MSM8610 && ARCH_MSM8226) selects MSM_RPM_LOG which has unmet direct dependencies (ARCH_MSM && DEBUG_FS && (MSM_RPM || MSM_RPM_SMD))
warning: (ARCH_MSM8974 && ARCH_MSM9625 && ARCH_MSM8610 && ARCH_MSM8226) selects MSM_RPM_STATS_LOG which has unmet direct dependencies (ARCH_MSM && DEBUG_FS && (MSM_RPM || MSM_RPM_SMD))
warning: (ARCH_MSM8974 && ARCH_MSM9625 && ARCH_MSM8610 && ARCH_MSM8226) selects MSM_RPM_LOG which has unmet direct dependencies (ARCH_MSM && DEBUG_FS && (MSM_RPM || MSM_RPM_SMD))
warning: (ARCH_MSM8974 && ARCH_MSM9625 && ARCH_MSM8610 && ARCH_MSM8226) selects MSM_RPM_STATS_LOG which has unmet direct dependencies (ARCH_MSM && DEBUG_FS && (MSM_RPM || MSM_RPM_SMD))
  GEN     moto_g/out/target/product/generic/obj/kernel/Makefile
  CHK     include/linux/version.h
  Using motoG/sources/moto_g as source for kernel
  CHK     include/generated/utsrelease.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
cc1: error: unrecognized command line option '-munaligned-access'
motoG/sources/moto_g/scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[3]: *** [scripts/mod/empty.o] Error 1
make[3]: *** Se espera a que terminen otras tareas....
motoG/sources/moto_g/scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[2]: *** [scripts/mod] Error 2
motoG/sources/moto_g/Makefile:515: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
make[1]: *** Se espera a que terminen otras tareas....
Makefile:135: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Press any key to continue
  CC      scripts/mod/empty.o
  HOSTCC  scripts/kallsyms
  HOSTCC  scripts/conmakehash
cc1: error: unrecognized command line option '-munaligned-access'
  HOSTCC  scripts/selinux/genheaders/genheaders
motoG/sources/moto_g/scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[3]: *** [scripts/mod/empty.o] Error 1
motoG/sources/moto_g/scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[2]: *** [scripts/mod] Error 2
make[2]: *** Se espera a que terminen otras tareas....
  HOSTCC  scripts/selinux/mdp/mdp
motoG/sources/moto_g/Makefile:515: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
Makefile:135: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Does anyone know how to go on?
 
monst
Old
#2  
Junior Member
Thanks Meter 0
Posts: 7
Join Date: Aug 2010
I am getting the same error

cc1: error: unrecognized command line option "-munaligned-access"
kernel/bounds.c:1: warning: switch -mcpu=cortex-a8 conflicts with -march= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

any help would be appreciated.

---------- Post added at 02:55 PM ---------- Previous post was at 02:40 PM ----------

either use a newer version of toolchain or remove munalign flags from Makefile.
Tags
compilation, kernel
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes