Re: Prebuilt LLVM 18.1.0-rc2 uploaded

From: Miguel Ojeda
Date: Tue Feb 13 2024 - 15:37:36 EST


On Tue, Feb 13, 2024 at 3:53 AM Nathan Chancellor <nathan@xxxxxxxxxx> wrote:
>
> Alright, I reuploaded 18.1.0-rc2 with libclang.so included, please let
> me know if this will work for you going forward.

Thanks Nathan, that was quick!

I tried it, and it worked like a charm. bindgen reports:

$ bindgen --version --verbose
bindgen 0.65.1
Clang: ClangBuiltLinux clang version 18.1.0rc
(https://github.com/llvm/llvm-project.git
c6c86965d967886ca5a2ed8968c949cd42cdd49a)

And I built next-20240213 for LoongArch kernel with Rust enabled:

# Linux/loongarch 6.8.0-rc4 Kernel Configuration
CONFIG_CC_VERSION_TEXT="ClangBuiltLinux clang version 18.1.0rc
(https://github.com/llvm/llvm-project.git
c6c86965d967886ca5a2ed8968c949cd42cdd49a)"
CONFIG_WERROR=y
CONFIG_RUST=y
CONFIG_RUSTC_VERSION_TEXT="rustc 1.75.0 (82e1608df 2023-12-21)"
CONFIG_BINDGEN_VERSION_TEXT="bindgen 0.65.1"

I also built our rust-next branch for x86_64 and QEMU-boot tested it
with the couple Rust samples:

[ 0.000000] Linux version 6.8.0-rc1-gf090f0d0eea9
(root@02f0b7650ba6) (ClangBuiltLinux clang version 18.1.0rc
(https://github.com/llvm/llvm-project.git
c6c86965d967886ca5a2ed8968c949cd42cdd49a), ClangBuiltLinux LLD 18.1.0)
#1 SMP PREEMPT_DYNAMIC Tue Feb 13 20:14:57 UTC 2024
[ 1.788925] rust_minimal: My numbers are [72, 108, 200]

I have hooked it up into my small CI to keep using your toolchain in a
subset of the builds :)

Not sure if you pick tags for this sort of thing, but in case it is useful:

Tested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>

Thanks again!

Cheers,
Miguel