www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - aarch64 plans for D lang ?

reply BrianLinuxing <BrianLinuxing somewhere.com> writes:
Afternoon all,

I think D Lang has such potential :)

I wonder if there are any plans to implement on aarch64? Which 
would be useful in schools/colleges, SBC projects etc.

Or release aarch64 binaries, etc

I just loaded up the installer on a Pi 400 (running Diet Pi 
(based on Debian bullseye)) and got:


"time curl -fsS https://dlang.org/install.sh | bash -s dmd
Downloading https://dlang.org/d-keyring.gpg

Downloading https://dlang.org/install.sh

gpg: keybox '/home/brian/.gnupg/pubring.kbx' created
gpg: /home/brian/.gnupg/trustdb.gpg: trustdb created
The latest version of this script was installed as 
~/dlang/install.sh.
It can be used it to install further D compilers.
Run `~/dlang/install.sh --help` for usage information.

no DMD binaries available for aarch64

real	0m4.018s
user	0m0.496s
sys	0m0.462s"


Good luck, Brian
Aug 28 2023
parent reply Sergey <kornburn yandex.ru> writes:
On Monday, 28 August 2023 at 14:38:36 UTC, BrianLinuxing wrote:
 Afternoon all,

 I think D Lang has such potential :)
Both GDC and LDC should support Linux aarch64. LDC even has file in Releases https://github.com/ldc-developers/ldc/releases/tag/v1.34.0
Aug 28 2023
parent reply BrianLinuxing <BrianLinuxing somewhere.com> writes:
On Monday, 28 August 2023 at 15:04:25 UTC, Sergey wrote:
 On Monday, 28 August 2023 at 14:38:36 UTC, BrianLinuxing wrote:
 Afternoon all,

 I think D Lang has such potential :)
Both GDC and LDC should support Linux aarch64. LDC even has file in Releases https://github.com/ldc-developers/ldc/releases/tag/v1.34.0
Thank you that looks good :) But is it the full installer and all of the bits? As an aside, I found the build for Android instructions on the wiki, https://wiki.dlang.org/Build_D_for_Android Is there a similar guide, etc for basic *nix systems? Am happy to build it from scratch on the Raspberry Pi 400 (Google searches didn't reveal that much) Any helpful pointers would be useful, thanks :)
Aug 28 2023
next sibling parent reply Sergey <kornburn yandex.ru> writes:
On Monday, 28 August 2023 at 15:14:52 UTC, BrianLinuxing wrote:
 On Monday, 28 August 2023 at 15:04:25 UTC, Sergey wrote:
 On Monday, 28 August 2023 at 14:38:36 UTC, BrianLinuxing wrote:
 Afternoon all,

 I think D Lang has such potential :)
Both GDC and LDC should support Linux aarch64. LDC even has file in Releases https://github.com/ldc-developers/ldc/releases/tag/v1.34.0
Thank you that looks good :) But is it the full installer and all of the bits?
 Any helpful pointers would be useful, thanks :)
I never worked with Pi boards, but in the archive from release should be binaries and some internal libraries. Usually just unzip + put some environment variables/path is enough. Also this is bit outdated example (not mine): https://gist.github.com/shabunin/8e3af1725c1c45f225174e9c2ee1557a Maybe it could be reused. There is also a docker container (https://github.com/Reavershark/ldc2-raspberry-pi) where you can try to build software for Pi on your regular computer. Moreover you can try the same installation script as in your first message, but use -ldc instead of -dmd in the end. But I think using files from GitHub Releases of official LDC repo will be better and easier.
Aug 28 2023
parent BrianLinuxing <BrianLinuxing somewhere.com> writes:
On Monday, 28 August 2023 at 15:38:34 UTC, Sergey wrote:
 On Monday, 28 August 2023 at 15:14:52 UTC, BrianLinuxing wrote:
 [...]
 [...]
I never worked with Pi boards, but in the archive from release should be binaries and some internal libraries. Usually just unzip + put some environment variables/path is enough. Also this is bit outdated example (not mine): https://gist.github.com/shabunin/8e3af1725c1c45f225174e9c2ee1557a Maybe it could be reused. There is also a docker container (https://github.com/Reavershark/ldc2-raspberry-pi) where you can try to build software for Pi on your regular computer. Moreover you can try the same installation script as in your first message, but use -ldc instead of -dmd in the end. But I think using files from GitHub Releases of official LDC repo will be better and easier.
Thank you Sergey, that is the answer. And it seems to work well :)
Aug 28 2023
prev sibling parent Anonymouse <zorael gmail.com> writes:
On Monday, 28 August 2023 at 15:14:52 UTC, BrianLinuxing wrote:
 Thank you that looks good :)

 But is it the full installer and all of the bits?
The official [`install.sh`](https://dlang.org/install.html) script will download ldc on ARM too, just as well as on x86. I use it on my Pi400.
Aug 28 2023