Can't build a ROM with UBERTC for the OnePlus One - Android Q&A, Help & Troubleshooting

I can't build a ROM using UB-5.3, it always gives me the same error. I can build a CyanogenMod ROM without issues with the toolchain you get when you build CyanogenMod from source here.
Here's the terminal output.
Code:
CC arch/arm/mach-msm/qdsp6v2/apr.o
In file included from ../../../../../../kernel/oneplus/msm8974/include/sound/apr_audio-v2.h:17:0,
from ../../../../../../kernel/oneplus/msm8974/arch/arm/mach-msm/qdsp6v2/apr.c:29:
../../../../../../kernel/oneplus/msm8974/arch/arm/mach-msm/include/mach/qdsp6v2/apr.h:156:12: warning: inline function 'apr_fill_hdr' declared but never defined
error, forbidden warning: apr.h:156
make[4]: *** [arch/arm/mach-msm/qdsp6v2/apr.o] Error 1
make[3]: *** [arch/arm/mach-msm/qdsp6v2] Error 2
make[2]: *** [arch/arm/mach-msm] Error 2
make[1]: *** [sub-make] Error 2
make[1]: se sale del directorio «/home/cesaragus/android/system/kernel/oneplus/msm8974»
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Se espera a que terminen otras tareas....
make: se sale del directorio «/home/cesaragus/android/system»
I haven't modified anything, I just changed the toolchain. I've tried installing libisl13 as I saw in another post that it worked, but I'm getting the same result. I haven't found any information about apr_fill_hdr nor apr.h in Google. I don't know what the problem is. I can build perfectly if I use the default TC.
Can you help me solve this?

Related

[Q] copile ICS 4.0.4 - erro - kernel

Hello I am trying to compile the ROM ics with 4.0.4 and I am with this problem. Can someone help me?
/Volumes/CyanogenModWorkspace/android/system/kernel/lge/p500/scripts/mod/mk_elfconfig.c:9: warning: unused variable ‘ei’
make[4]: *** [scripts/mod/mk_elfconfig] Error 1
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[1]: *** [sub-make] Error 2
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
This is for Mac OS X
1. I needed to reference in my $path /Android NDK directory/prebuilt/darwin-x86/toolchain/arm-eabi-4.4.0/bin instead of /linux-x86/
2. I needed to add a file: "elf.h" to /kernel repository/scripts/mod/
Data for the file here -> rockbox.org/tracker/9006?getfile=16683
3. I needed to change #include <elf.h> to #include "elf.h" in the following files in /kernel repository/scripts/mod/: mk_elfconfig.c and modpost.h

Error during kernel compilation (msm7627a)

Code:
kernel/kprobes.c: In function 'recycle_rp_inst':
kernel/kprobes.c:1016: warning: passing argument 1 of 'spin_lock' from incompatible pointer type
error, forbidden warning: kprobes.c:1016
make[1]: *** [kernel/kprobes.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [kernel] Error 2
Any Idea ?
Sent from my Karbonn A9+ using Tapatalk HD

[Q] CM 10.1 Kernel Compiling - mmu.c does not compile

Hey guys, I am trying to port Ubuntu Touch for my i9100G. All was going well but this error occurred when compiling. It seems there's a problem about mmu.c. I ve searched about it but no luck. Need your help!
Note: I opened the thread here and not Ubuntu Touch section because I think the problem is about compiling CM 10.1 kernel, not about porting Ubuntu.
HTML:
CC [M] /media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/sgxtransfer.o
CC [M] /media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.o
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c: In function 'MMU_Alloc':
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c:1487:11: error: 'sDevPAddr.uiAddr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c:1427:20: note: 'sDevPAddr.uiAddr' was declared here
cc1: all warnings being treated as errors
make[6]: *** [/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.o] Error 1
make[5]: *** [_module_/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [all] Error 2
make[2]: *** [kbuild] Error 2
make[1]: *** [build] Error 2
make[1]: INTERNAL: Exiting with 9 jobserver tokens available; should be 8!
make[1]: `/media/Yeni_Birim/ubuntu-i9100g/device/samsung/omap4-common/pvr-source/eurasiacon/build/linux2/omap4430_android' dizininden çıkılıyor (that means leaving that directory)
make: *** [SGX_MODULES] Error 2

[Q] Please Reply! Compiling CM11 Error!

Hey I am trying to compile CM11 for the xperia E, but I get this error:
In file included from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/byteorder/little_endian.h:12:0,
from /home/usaamah/cm11/kernel/sony/msm7x27a/arch/arm/include/asm/byteorder.h:21,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/asm-generic/bitops/le.h:5,
from /home/usaamah/cm11/kernel/sony/msm7x27a/arch/arm/include/asm/bitops.h:308,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/bitops.h:22,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/kernel.h:19,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/cache.h:4,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/time.h:7,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/stat.h:60,
from /home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/module.h:10,
from /home/usaamah/cm11/kernel/sony/msm7x27a/net/netfilter/xt_socket.c:13:
/home/usaamah/cm11/kernel/sony/msm7x27a/net/netfilter/xt_socket.c: In function 'xt_socket_get6_sk':
/home/usaamah/cm11/kernel/sony/msm7x27a/include/linux/swab.h:49:9: warning: 'sport' may be used uninitialized in this function [-Wmaybe-uninitialized]
error, forbidden warning: swab.h:49
make[4]: *** [net/netfilter/xt_socket.o] Error 1
make[3]: *** [net/netfilter] Error 2
make[2]: *** [net] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/usaamah/cm11/kernel/sony/msm7x27a'
make: *** [TARGET_KERNEL_BINARIES] Error 2
Any Solution ASAP!
BUMP!
requires this change
friend
https://github.com/chijure/android_kernel_lge_vee1/commit/1c0c41ed1a6da33b5bbd7580436619798536eced

Errors trying to compile a kernel

Hello guys.
I have Galaxy s8 G950F Orero. I'm trying to compile a kernel to support monitoring mode and packet injection on external wifi adapter. I got a few errors when the build started.
I'm using Ubuntu 18.04 and aarch64/aarch64-linux-android-4.9 -b pie-release toolchain64
The error is:
/home/zerocount/kernel/kernel/Makefile:614: recipe for target 'scripts' failed
make[1]: *** [scripts] Error 2
make[1]: *** Waiting for unfinished jobs....
CHK include/generated/timeconst.h
CC kernel/bounds.s
UPD include/generated/timeconst.h
/home/zerocount/kernel/kernel/kernel/bounds.c:1:0: error: unknown value 'exynos-m1+crc+nofp' for -mcpu
/*
^
/home/zerocount/kernel/kernel/kernel/bounds.c:1:0: error: unknown value 'exynos-m1' for -mtune
/home/zerocount/kernel/kernel/./Kbuild:19: recipe for target 'kernel/bounds.s' failed
make[2]: *** [kernel/bounds.s] Error 1
/home/zerocount/kernel/kernel/Makefile:1117: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2
/home/zerocount/kernel/kernel/drivers/sensorhub/brcm/Makefile:57: ANDROID_MAJOR_VERSION : p
/home/zerocount/kernel/kernel/drivers/sensorhub/brcm/Makefile:58: ANDROID_PLATFORM_VERSION : 990000
make[1]: Leaving directory '/home/zerocount/kernel/out'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
I don't get it why it has to be so hard to build a kernel... I got errors and nothing more. Everytime i type make O=../out -j5 i got different errors.

Categories

Resources