termux / termux-packages

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

LDC compile error #14587

Open ghost opened 1 year ago

ghost commented 1 year ago

Problem description

When i try to compile with ldc2, i get an error message: Error: No matching section for triple 'armv7a--linux-androideabi' in /data/data/com.termux/files/usr/etc/ldc2.conf Error: cannot find source code for runtime library file 'object.d'

What steps will reproduce the bug?

echo 'void main() {}' >hello.d ldc2 hello.d

What is the expected behavior?

echo 'void main() {}' >hello.d ldc2 hello.d ./hello

System information

termux-info:

Termux Variables:
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=21043
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_VERSION=0.118.0
Packages CPU architecture:
arm
Subscribed repositories:
# sources.list
deb https://packages.termux.dev/apt/termux-main/ stable main
Updatable packages:
All packages up to date
termux-tools version:
1.35.0
Android version:
9
Kernel build information:
Linux localhost 3.18.120-perf-g3e480e17e11f-04280-g407726838ebf #1 SMP PREEMPT Sat Apr 4 12:24:37 CDT 2020 armv7l Android
Device manufacturer:
motorola
Device model:
moto g(6) play
0m364 commented 1 year ago

pkg install dmd gdc

sylirre commented 1 year ago

@0m364 Termux doesn't provide dmd and gdc packages. Check the information you providing to other users.

We only have ldc for D compiler.

truboxl commented 1 year ago

I am proposing to move LDC to disabled package. The latest version will result in stack corruption. https://github.com/ldc-developers/ldc/issues/4383