K
K
Kirill2019-09-10 22:54:23
linux
Kirill, 2019-09-10 22:54:23

How to solve Android kernel compilation error?

I'm trying to compile the kernel for my Xiaomi Redmi 5a phone, I use this firmware https://forum.xda-developers.com/xiaomi-redmi-5a/d... , and I make the kernel from these sources https://github.com/ sunnyraj84348/android_kernel_xi... .Errors when compiling the kernel, how to solve them? https://pastebin.com/A4yNQTfZ https://pastebin.com/8KqRhtdh . I'm compiling on Ubuntu 18.04 LTS in a virtual machine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-09-10
@jcmvbkbc

I built your kernel on pure debian 9:

ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make O=out riva_defconfig
ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make O=out -j8 all

I had to fix the shitrapper that caught warnings:
diff --git a/scripts/gcc-wrapper.py b/scripts/gcc-wrapper.py
index 93a6cf4e287e..55652d391844 100755
--- a/scripts/gcc-wrapper.py
+++ b/scripts/gcc-wrapper.py
@@ -83,8 +83,7 @@ def run_gcc():
     try:
         proc = subprocess.Popen(args, stderr=subprocess.PIPE)
         for line in proc.stderr:
-            print >> sys.stderr, line,
-            interpret_warning(line)
+            print >> sys.stderr, line
 
         result = proc.wait()
     except OSError as e:

There were no mistakes.
The version of aarch64-linux-gnu-gcc is 6.3.0.
It seemed to me that you are collecting without installing ARCH, it is not clear from the log.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question