Kernel Compilation Errror - Android Q&A, Help & Troubleshooting

Hey, i was trying to compile kernel from these ( https://github.com/ashwinr64/android_kernel_xiaomi_oxygen/tree/cm-14.1-clean?files=1) sources (cm 14.1 clean branch) without any modification and I'm getting an error with zsmalloc.o. I have used lineageos_oxygen_defconfig and I was following this thread https://forum.xda-developers.com/an...erence-how-to-compile-android-kernel-t3627297 Could you help me?
I'm using Ubuntu 16, Google's toolchain (gcc 4.9), Java installed
Log of compilation:
https://del.dog/yubunuguza.php

Related

How to setup GCC 4.6.3 arm-eabi tool chain for kernel building?

as the title asks if how do i compile the GCC 4.6.3 package into a working toolchain source??any guide or reference would be a great help..
am on Ubuntu 12.04 LTS..and i have downloaded the package already..

Compiling NDK on Android Itself

I'm compiling a custom gcc including the D language on android itself. I have C4Droid gcc binaries installed as well as Debian Wheezy on chroot with gcc/g++ 4.6. I was thinking I could change the host mode to arm-linux-androideabi in configure? Does the NDK build-gcc.sh script call the NDK toolchain to compile or the host systems gcc? Would this be enough to get the source to compile a android runnable binary? Thanks in advanced.

[Q] Kernel can't boot

I Compile the Huawei u8825d Kernel with GCC 4.7.x in ubuntu 13.04
add "#pragma GCC diagnostic ignored "-Wunused-value"" in some file then compile success
but the kernel can't boot
it just get stuck on the frist screen and then restarts itself
i can't get any log for the errors
someone can help how to get the log when the kernel can't boot
papersnake said:
I Compile the Huawei u8825d Kernel with GCC 4.7.x in ubuntu 13.04
add "#pragma GCC diagnostic ignored "-Wunused-value"" in some file then compile success
but the kernel can't boot
it just get stuck on the frist screen and then restarts itself
i can't get any log for the errors
someone can help how to get the log when the kernel can't boot
Click to expand...
Click to collapse
Try gcc 4.4.3 first some device fails to boot on gcc > 4.6 and make sure about config for your device.

[HELP][SOLVED]Errors while building from source

I am trying to port AOSPA marshmallow-caf (paranoid android) to victara and i cant get past these 2
1.
Code:
frameworks/base/packages/StatementService/src/com/android/statementservice/DirectStatementService.java:149: error: cannot access OkCacheContainer
mHttpResponseCache = HttpResponseCache.install(httpCacheDir, HTTP_CACHE_SIZE_IN_BYTES);
^
class file for com.android.okhttp.OkCacheContainer not found
1 error
make: *** [build/core/java.mk:394: out/target/common/obj/APPS/StatementService_intermediates/classes-full-debug.jar] Error 41
i tried building for the bacon using device trees and vendor stuff from official aospa repos but it also throws this error so i think its not device specific.
2.
Secondly the kernel is not compiling its throwing section mismatch error
Code:
ERROR: modpost: Found 11 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)
i am using the CM kernel sources and defconfig
On googling someone suggested to change toolchains so switched to the one provided in AOSPA manifest (namely eabi-4.8 toolchain in google aosp repos , revision android-r16) previously i was using UBERTC arm-eabi-4.8.
But the exact same error popped up and the exact same file vmlinux.o
Interestingly the kernel is built successfully if i build it separately outside the AOSPA tree , or if i build it inside resurrection remix source tree , with both the toolchains .
Also since i mentioned bacon previously , bacon's kernel doesn't throw this error.
EDIT :
I reverted this
the kernel compiled without section mismatches but i encountered
Code:
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.
make[2]: *** [modules] Error 1
make[1]: *** [sub-make] Error 2
i think this and this were responsible
i tried compiling with
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
and got the bootimg
so i guess kernel is done
but the class file not found error remains
Ok so i was able to fix the class file not found error also
The problem was that i was using jdk8 i switched to jdk7 and it compiled successfully

Building Android 4.3 Source on Ubuntu 16.04

Hello,
I am trying to build Android 4.3 for an ARM-based Computer on Module after upgrading my Ubuntu installation from 14.04 to 16.04. I was able to do this seamlessly on 14.04, but now it seems I am running into some problems. My logs indicate that GCC is throwing errors, so I'm thinking the problem is some discrepancy between GCC 4.x used in Ubuntu 14 and GCC 5.x used in Ubuntu 16. I would like to install GCC 4.x alongside GCC 5 on Ubuntu 16, but I'm not sure how to do that exactly.
Does anyone have any recommendations on getting 4.3 to build on Ubuntu 16.04, or at least installing an older version of GCC alongside GCC 5.x?
Here is the gist of my log file, seeing as how I don't know how to attach files:
Code:
https://gist.github.com/BTone/0428dad28751e60e8a4b40aea5438774
Any help would be greatly appreciated!

Categories

Resources