i am trying to compile this kernel source
https://github.com/jedld/kernel_9832_7.git
I am getting this error
Makefile:130: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Click to expand...
Click to collapse
my system linux mint 19.1 cinnamon
AMD A8-7410 APU with AMD Radeon R5 Graphics × 4
kernel 4.15.0-46 genric
ram 8gb
Looks my system has problem because i had compiled samsung j3 pro kernel earlier in this.
Edit - i reinstall os but problem persists while compiling this kernel source. I have tried 3 gcc toolchain version 4.8.
Even i build kernel for sm-j320f with same toolchains without error.
Please help...
Related
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
tthtlc said:
Got the following errors after compilation Hammerhead AOSP with "make otapackaage -j4":
target Java: core (out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes)
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/host/common/obj/JAVA_LIBRARIES/dumpkey_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
javac: target release 1.5 conflicts with default source release 1.7
make: *** [out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes-full-debug.jar] Error 41
Full errors are here:
http://pastebin.com/QAFQWbF5
Can someone please help with the error?
Click to expand...
Click to collapse
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
shimp208 said:
It's an error relating to the version of Java you have installed on your system. Which version do you have installed? Which Linux distribution/version are you using to compile? If you can tell me these things I can try and help you solve your error.
Click to expand...
Click to collapse
My java version is the latest 1.7 (from Ubuntu repository):
Ubuntu 12.04.03, LTS, 64-bit
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.4) (7u51-2.4.4-0ubuntu0.12.04.2)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
javac 1.7.0_51
As per this:
http://forum.pcsoft.fr/fr-FR/pcsoft...n-error-target-release-1-5-conflicts/read.awp
and this:
https://groups.google.com/forum/#!topic/android-platform/NHhin464dxc
It seemed that Java 7 cannot generate compatible Java 5 binaries, whereas Java 6 still can.
Ok, I shall try downgrading it to Java 6 than.
Am I right to say this?
Hi,
I am trying to build a kernel for rochchip tablet. When I compile the kernel using "make -j4 kernel.img", I am getting the following error.
HTML:
GEN drivers/video/rockchip/screen/lcd.h
Kernel: arch/arm/boot/Image is ready
<path>/kernel/mkkrnlimg: <path>/kernel/mkkrnlimg: cannot execute binary file
make: *** [kernel.img] Error 126
I understood that it is the problem compiling the binary mkkrnlimg. It is an ELF file which has to be compiled on MAC 10.9. Could some one please tell me how to fix it. I already had elf.h added to bin/include. It didn't help
Thanks
Problem Compiling arm 64 bit CM-13.0 gives me error:
make: *** No rule to make target `/root/Cyanogenmod-13.0/out/target/product/generic/obj/KERNEL_OBJ/usr', needed by `/root/Cyanogenmod-13.0/out/target/product/generic/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Stop.
Click to expand...
Click to collapse
@micaiahmorris ,
Try to create manually folder <KERNEL_OBJ> and <usr> in /root/Cyanogenmod-13.0/out/target/product/generic/obj/.
I had this problem, now it's gone for me.
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
Hello,
I`m not so new compiling roms, now have to OnePlus One Arsenic Rom. I`m now beginning to compile for OnePlus 3 and took a week that I can not spend the same error. I tried to compile using Ubuntu 14.04 and now test with 16.04.
I use ubertc 5.3 toolchains + custom optimizations. Open JDK 7 & 8 with the same result. I have done multiple tests with build & vendor of CM without optimizations,
And not use more tests, I tried adding flags -Wno-error=strict-aliasing -fno-strict-overflow -fno-strict-aliasin -Wno-strict-aliasing with the same error.
This is my error
system/bt/osi/./src/socket.c: In function 'socket_listen':
system/bt/osi/./src/socket.c:108:32: error: dereferencing type-punned pointer might break strict-aliasing rules [-Werror=strict-aliasing]
if (bind(socket->fd, (struct sockaddr *)&addr, sizeof(addr)) == -1) {
^
cc1: all warnings being treated as errors
make: *** [/home/jc/cm13/out/target/product/oneplus3/obj_arm/STATIC_LIBRARIES/libosi_intermediates/./src/socket.o] Error 1
make: *** Se espera a que terminen otras tareas....
Click to expand...
Click to collapse
Could someone give me a hand when I'm doing wrong?
Thanks in advance
PD: Forgive my poor English, I'm not very good and use a translator to communicate better.
juancarlos5 said:
Hello,
I`m not so new compiling roms, now have to OnePlus One Arsenic Rom. I`m now beginning to compile for OnePlus 3 and took a week that I can not spend the same error. I tried to compile using Ubuntu 14.04 and now test with 16.04.
I use ubertc 5.3 toolchains + custom optimizations. Open JDK 7 & 8 with the same result. I have done multiple tests with build & vendor of CM without optimizations,
And not use more tests, I tried adding flags -Wno-error=strict-aliasing -fno-strict-overflow -fno-strict-aliasin -Wno-strict-aliasing with the same error.
This is my error
Could someone give me a hand when I'm doing wrong?
Thanks in advance
PD: Forgive my poor English, I'm not very good and use a translator to communicate better.
Click to expand...
Click to collapse
hi,here you can find answerhttps://forum.xda-developers.com/showthread.php?t=1777504&page=2