Problem description
myself and another tried using rust, its hella broken
error: process didn't exit successfully: `rustc -vV` (exit code: 1)
--- stdout
rustc 1.40.0-nightly
binary: rustc
commit-hash: unknown
commit-date: unknown
host: aarch64-linux-android
release: 1.40.0-nightly
--- stderr
error: couldn't load codegen backend "/data/data/com.termux/files/usr/opt/rust-nightly/lib/rustlib/aarch64-linux-android/codegen-backends/librustc_codegen_llvm-llvm.so": "dlopen failed: cannot locate symbol \"__clear_cache\" referenced by \"/data/data/com.termux/files/usr/lib/libLLVM-9.so\"..."
Steps to reproduce
pkg in rustc
cargo new foo
cd foo
cargo build
Expected behavior
yes
System information
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# x11-repo (sources.list.d/x11.list)
deb https://dl.bintray.com/xeffyr/x11-packages x11 main
# unstable-repo (sources.list.d/unstable.list)
deb https://dl.bintray.com/xeffyr/unstable-packages unstable main
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
Updatable packages:
All packages up to date
Android version:
9
Kernel build information:
Linux localhost 4.14.85-17063867 #1 SMP PREEMPT Sat Oct 26 16:18:52 KST 2019 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-G975F
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://termux.org/packages/ stable main
# science-repo (sources.list.d/science.list)
deb https://dl.bintray.com/grimler/science-packages-24 science stable
# game-repo (sources.list.d/game.list)
deb https://dl.bintray.com/grimler/game-packages-24 games stable
# sources.list.d/pointless.list
deb https://its-pointless.github.io/files/24 termux extras
# unstable-repo (sources.list.d/unstable.list)
deb https://dl.bintray.com/xeffyr/unstable-packages unstable main
# root-repo (sources.list.d/root.list)
deb https://dl.bintray.com/grimler/termux-root-packages-24 root stable
Updatable packages:
All packages up to date
Android version:
10
Kernel build information:
Linux localhost 3.18.140-Treble #1 SMP PREEMPT Sun Oct 27 08:56:50 IST 2019 aarch64 Android
Device manufacturer:
Xiaomi
Device model:
Redmi 5A
Note: while post describes error in rustc nightly (release: 1.40.0-nightly) it happens to rust v1.39 as well.
oh oops
yeah it happens in both
same error when I tried to compile a project with cargo build
Encountered the same problem, keep paying attention
The same bug when compiling C and C ++ programs with the -flto flag.
Can someone rebuild libllvm from source and see if it has a fix yet?
it seems the package has been fixed and updated in the repo
Most helpful comment
Note: while post describes error in rustc nightly (
release: 1.40.0-nightly) it happens to rust v1.39 as well.