ldc icon indicating copy to clipboard operation
ldc copied to clipboard

Fails running on termux

Open dahi0 opened this issue 2 months ago • 2 comments

app.d: void main() {}

running ldc2 app.d results in the following error: /data/data/com.termux/files/usr/bin/ld.bfd: unrecognized option '--use-android-relr-tags' /data/data/com.termux/files/usr/bin/ld.bfd: use the --help option for usage information cc: error: linker command failed with exit code 1 (use -v to see invocation) Error: /data/data/com.termux/files/usr/bin/cc failed with status: 1

dahi0 avatar Oct 16 '25 13:10 dahi0

For me it displays this:

~ $ PATH=$PATH:~/ldc2-1.41.0-android-aarch64/bin
~ $ ldc2 --version
stack corruption detected (-fstack-protector)
stack corruption detected (-fstack-protector)
Aborted

anotherdoesnm avatar Oct 19 '25 07:10 anotherdoesnm

The original report is about Termux's cc as linker driver (for ld.bfd, which isn't supported anymore for recent LDC versions - needs the lld linker, like recent NDKs) - we don't inject --use-android-relr-tags anywhere.

kinke avatar Oct 31 '25 16:10 kinke