Kendrenogen / android_kernel_lge_sm8150

Other
0 stars 2 forks source link

How do I go about compiling this kernel, I'm running into a lot of problems that I can't solve #1

Closed knbnaz closed 3 months ago

knbnaz commented 3 months ago

495f42ef80225d2c4f6cd2c797f67cdd clang https://gitlab.com/XSans0/weebx-clang gcc https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/+archive/refs/tags/android-12.1.0_r27.tar.gz

Kendrenogen commented 3 months ago

Your problem is in your toolchain. Compile it on your PC natively, not via Github Actions. Also, you only need Clang for this, no GCC.

knbnaz commented 3 months ago

你的问题出在你的工具链上。在您的 PC 上本地编译它,而不是通过 Github Actions。此外,您只需要 Clang 即可,无需 GCC。

What version of the toolchain should I use?

Kendrenogen commented 3 months ago

你的问题出在你的工具链上。在您的 PC 上本地编译它,而不是通过 Github Actions。此外,您只需要 Clang 即可,无需 GCC。

What version of the toolchain should I use?

The latest LLVM toolchain. Also, build with LLVM=1.

Also, flex and bison should be installed.

knbnaz commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases Is this it?

Kendrenogen commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases Is this it?

That or whatever is bundled with your distro

Or latest AOSP Clang

knbnaz commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases是这样吗

与您的发行版捆绑在一起的那个或任何内容

或最新的 AOSP Clang thank you very much,I‘d also like to ask a question, is the 5.4 branch in the source code for LG855 devices, which boggles my mind

knbnaz commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases是这样吗

与您的发行版捆绑在一起的那个或任何内容

或最新的 AOSP Clang

I can't believe he's running on my LG device.

Kendrenogen commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases是这样吗?

与您的发行版捆绑在一起的那个或任何内容 或最新的 AOSP Clang thank you very much,I‘d also like to ask a question, is the 5.4 branch in the source code for LG855 devices, which boggles my mind

The 5.4 branch is a work in progress branch. It is my attempt at running 5.4 CAF on sm8150.

knbnaz commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases是这样吗?

与您的发行版捆绑在一起的那个或任何内容 或最新的 AOSP Clang thank you very much,I‘d also like to ask a question, is the 5.4 branch in the source code for LG855 devices, which boggles my mind

The 5.4 branch is a work in progress branch. It is my attempt at running 5.4 CAF on sm8150.

/bin/sh: 1: llvm-objdump: not found CC arch/arm64/kernel/irq.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/fpsimd.o /bin/sh: 1: llvm-nm: not found CC init/do_mounts_rd.o /bin/sh: 1: llvm-nm: not found AS arch/arm64/kernel/entry-fpsimd.o /bin/sh: 1: llvm-objdump: not found CC arch/arm64/kernel/process.o /bin/sh: 1: llvm-nm: not found CC init/do_mounts_initrd.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/ptrace.o /bin/sh: 1: llvm-nm: not found CC init/do_mounts_dm.o /bin/sh: 1: llvm-nm: not found CC init/noinitramfs.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/setup.o /bin/sh: 1: llvm-nm: not found CC init/initramfs.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/signal.o /bin/sh: 1: llvm-nm: not found CC init/calibrate.o /bin/sh: 1: llvm-nm: not found CC init/init_task.o /bin/sh: 1: llvm-nm: not found

What's the solution to this?

knbnaz commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases 是这样吗?

与您的发行版捆绑在一起的那个或任何内容 或最新的 AOSP Clang 非常感谢你,我还想问一个问题,LG855 设备源代码中的 5.4 分支吗,这让我感到难以置信

5.4 分支是正在进行的分支。这是我在 sm8150 上运行 5.4 CAF 的尝试。

/bin/sh: 1: llvm-objdump: 未找到 CC arch/arm64/kernel/irq.o /bin/sh: 1: llvm-nm: 未找到 CC arch/arm64/kernel/fpsimd.o /bin/sh: 1: llvm-nm: 未找到 CC init/do_mounts_rd.o /bin/sh: 1: llvm-nm: 未找到 AS arch/arm64/kernel/entry-fpsimd.o /bin/sh: 1: llvm-objdump: 未找到 CC arch/arm64/kernel/process.o /bin/sh: 1: llvm-nm: 未找到 CC init/do_mounts_initrd.o /bin/sh: 1: llvm-nm: 未找到 CC arch/arm64/kernel/ptrace.o /bin/sh: 1: llvm-nm: 未找到 CC init/do_mounts_dm.o /bin/sh: 1: llvm-nm: 未找到 CC init/noinitramfs.o /bin/sh: 1: llvm-nm: 未找到 CC arch/arm64/kernel/setup.o /bin/sh: 1: llvm-nm: 未找到 CC init/initramfs.o/bin/sh: 1: llvm-nm: 未找到 CC arch/arm64/kernel/signal.o /bin/sh: 1: llvm-nm: 未找到 CC init/calibrate.o /bin/sh: 1: llvm-nm: 未找到 CC init/init_task.o /bin/sh: 1: llvm-nm: 未找到

对此的解决方案是什么?

I use the latest LLVM and clang

Kendrenogen commented 3 months ago

最新的 LLVM 工具链

https://github.com/llvm/llvm-project/releases是这样吗?

与您的发行版捆绑在一起的那个或任何内容 或最新的 AOSP Clang thank you very much,I‘d also like to ask a question, is the 5.4 branch in the source code for LG855 devices, which boggles my mind

The 5.4 branch is a work in progress branch. It is my attempt at running 5.4 CAF on sm8150.

/bin/sh: 1: llvm-objdump: not found CC arch/arm64/kernel/irq.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/fpsimd.o /bin/sh: 1: llvm-nm: not found CC init/do_mounts_rd.o /bin/sh: 1: llvm-nm: not found AS arch/arm64/kernel/entry-fpsimd.o /bin/sh: 1: llvm-objdump: not found CC arch/arm64/kernel/process.o /bin/sh: 1: llvm-nm: not found CC init/do_mounts_initrd.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/ptrace.o /bin/sh: 1: llvm-nm: not found CC init/do_mounts_dm.o /bin/sh: 1: llvm-nm: not found CC init/noinitramfs.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/setup.o /bin/sh: 1: llvm-nm: not found CC init/initramfs.o /bin/sh: 1: llvm-nm: not found CC arch/arm64/kernel/signal.o /bin/sh: 1: llvm-nm: not found CC init/calibrate.o /bin/sh: 1: llvm-nm: not found CC init/init_task.o /bin/sh: 1: llvm-nm: not found

What's the solution to this?

Are all of the LLVM tools recognized by your PATH environment variables? If not, export the path, then compile.

export PATH="/path/to/llvm:$PATH"