Nightly rustc cannot load LLVM plugins on ARM64 platforms (impacts afl.rs crate) #127573
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This issue prevents using the effective afl.rs (AFL++) plugins for fuzzing in Rust on ARM64 platforms.
The nightly rustc allows for loading LLVM plugins with
-Z llvm-plugins=/path/to/plugin
.This works without problems on Linux x86_x64, however on ARM64 - both Linux and MacOS - this fails with symbols not being resolvable.
How to reproduce:
Linux:
wget http://apt.llvm.org/llvm.sh ; sudo bash ./llvm.sh 18
Macos:
brew install llvm
+ setting up the PATH to prefer clang/clang++ from brew and not xlangOn Linux x86_x64 this works:
On ARM64 Ubuntu and MacOS this both fails:
After a lot of debugging, the reason seems to be that on Linux x86_x64 the following library is present:
libLLVM-18-rust-1.81.0-nightly.so
But on ARM64 rust nightly installation this is missing.
So this might be the reason for this issue.
The text was updated successfully, but these errors were encountered: