Closed infinitebash closed 2 years ago
isn't clang-arm64
an Arch specific?
ClangBuiltLinux uses
make ARCH=arm64 LLVM=1 LLVM_IAS=1 LLVM_VERSION=15
not sure how necessary the last paremeter is though and I can't really test rn
I get the same error on Arch Linux; however, using:
make ARCH=arm64 LLVM=1 LLVM_IAS=1 LLVM_VERSION=15 -j$(nproc) Image.lzma dtbs
Works fine for me on Arch Linux.
I was able to build on ubuntu with make ARCH=arm64 LLVM=-14
(-14
specifies to use version 14 of the clang toolchain). The kernel docs specify the CROSS_COMPILE property is redundant when clang is being used.
The command make ARCH=arm64 LLVM=1 -j$(nproc) Image.lzma dtbs
worked for me as well so I've updated my repo/PR to use it (as well as pulling changes from upstream).
The command
make ARCH=arm64 CROSS_COMPILE=clang LLVM=1 -j$(nproc) Image.lzma dtbs
threw the following error on my machine (Arch Linux with clang 13.0.1):However
make ARCH=arm64 CROSS_COMPILE=clang-arm64 LLVM=1 -j$(nproc) Image.lzma dtbs
did work.