Does anyone build for Android? Tons of link errors..

2022-02-16 Thread Fry via Digitalmars-d-learn
I'm getting a ton of linker errors when building with LDC with the aarch64 release from here: https://github.com/ldc-developers/ldc/releases ``` Lib/Android/arm64-v8a/libphobos2-ldc.a(concurrency.o):(.data._D3std11concurrency12__ModuleInfoZ+0x20): undefined reference to

Re: Does anyone build for Android? Tons of link errors..

2022-02-16 Thread Fry via Digitalmars-d-learn
On Wednesday, 16 February 2022 at 22:50:09 UTC, H. S. Teoh wrote: On Wed, Feb 16, 2022 at 08:40:02PM +, Fry via Digitalmars-d-learn wrote: I'm getting a ton of linker errors when building with LDC with the aarch64 release from here: [...] Is anyone able to build for android? I adapted

Re: Does anyone build for Android? Tons of link errors..

2022-02-16 Thread Fry via Digitalmars-d-learn
On Thursday, 17 February 2022 at 01:17:51 UTC, kinke wrote: On Wednesday, 16 February 2022 at 20:40:02 UTC, Fry wrote: A lot of unresolved references to just CPU_COUNT. The confusing part is that it has undefined referenced to parts of in `core`, which I am linking the druntime as well. If

Re: Does anyone build for Android? Tons of link errors..

2022-02-18 Thread Fry via Digitalmars-d-learn
I got it working, kind of. I just needed to use a different ndk version. There's a lot of problems with the NDK, the latest one doesn't appear to have the bfd linker anymore. Does anyone know why the bfd linker is needed and why the gold linker doesn't work for the emulated TLS?

Crosscompiling LDC's druntime for Android on Windows

2022-02-20 Thread Fry via Digitalmars-d-learn
I'm trying to cross compile LDC's druntime to enable more debug print statements but I'm having trouble getting it built correctly for aarch64. I'm following the azure pipeline's commands for how it's being built here:

Cross Compile to Linux from Windows using LDC?

2022-02-10 Thread Fry via Digitalmars-d-learn
Is it possible to compile for Linux from Windows using the LDC compiler? It seems like it is possible to compile for different architectures Linux x86 -> Linux Arm but what about for Windows x86 -> Linux x86?