Friday, 16 October 2015

Attempting to compile using Sabermod



Compiling the code from https://github.com/SaberMod/android_kernel_moto_shamu using sabermod-prebuilts-07042015.tar.xz, arm-linux-androideabi-5.2-08-28-15.tar.xz.

It compiles well, until the very end; Using GNU/Debian here.

Any thoughts what I'm doing wrong? (bit of a new noob) Should I make make "CONFIG_NO_ERROR_ON_MISMATCH=y" to avoid it?


Code:


make CONFIG_DEBUG_SECTION_MISMATCH=y
  [...] 
  CC      lib/ratelimit.o
  CC      lib/rbtree.o
  CC      lib/reciprocal_div.o
  CC      lib/rwsem-spinlock.o
  CC      lib/sha1.o
  CC      lib/show_mem.o
  CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  AR      lib/lib.a
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0x7740): Section mismatch in reference from the variable msm_rpm_match_table to the function .init.text:mpm_irq_domain_linear_size()
The variable msm_rpm_match_table references
the function __init mpm_irq_domain_linear_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

WARNING: vmlinux.o(.data+0x7758): Section mismatch in reference from the variable msm_rpm_match_table to the function .init.text:mpm_irq_domain_legacy_size()
The variable msm_rpm_match_table references
the function __init mpm_irq_domain_legacy_size()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

To build the kernel despite the mismatches, build with:
'make CONFIG_NO_ERROR_ON_MISMATCH=y'
(NOTE: This is not recommended)
/root/SaberMod/android_kernel_moto_shamu/scripts/Makefile.modpost:95: recipe for target 'vmlinux.o' failed
make[1]: *** [vmlinux.o] Error 1
Makefile:901: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 2





No comments:

Post a Comment