termux / termux-packages

A package build system for Termux.
https://termux.dev
Other
13.16k stars 3.02k forks source link

Cargo build fail: can't find lgcc #20063

Closed luisdavim closed 5 months ago

luisdavim commented 5 months ago

Problem description

I use a vim plugin named vim-clap that has a component in Rust, until the latest update I was able to build it, now I get "ld: error: unable to find library -lgcc"

What steps will reproduce the bug?

Clone https://github.com/liuchengxu/vim-clap.git Run cargo build --release

What is the expected behavior?

No response

System information

termux-info:

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=2155
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages-cf.termux.dev/apt/termux-main/ stable main
# root-repo (sources.list.d/root.list)
deb https://packages-cf.termux.dev/apt/termux-root/ root stable
Updatable packages:
All packages up to date
termux-tools version:
1.42.1
Android version:
14
Kernel build information:
Linux localhost 5.15.123-android13-8-28577312-abS918BXXU3CXD3 #1 SMP PREEMPT Mon Apr 8 00:39:14 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S918B
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.styling versionCode:32
truboxl commented 5 months ago

One of the project dependencies injected -lgcc. Rust hasn't add -lgcc for Android targets for a long time. I will submit a PR to upstream shortly.

truboxl commented 5 months ago

Fixed in upstream