Thread overview
ldc on a raspberry pi 3 running freebsd
Feb 23
Decabytes
Feb 23
Decabytes
4 days ago
Jacob Carlborg
Feb 23
Decabytes
February 23
I've been playing around in D for a bit and I'm enjoying it so far. I've also been testing out freebsd on a Raspberry Pi 3. I noticed that there is actually a package for LDC on the raspberry pi 3, and thought it would be fun to play around with D on an ARM platform.

I installed it with "pkg install ldc", but embarrassingly I'm not actually sure where the compiler is. ldc isn't a recognized action on the command line, and I've hunted around my /usr/local/llvm10/ directory but I'm having difficulty finding anything that looks like what I'm looking for. Does anyone have any experience with ldc on freebsd that could help me out?
February 23
On Tuesday, 23 February 2021 at 14:56:45 UTC, Decabytes wrote:
> I installed it with "pkg install ldc", but embarrassingly I'm not actually sure where the compiler is. ldc isn't a recognized action on the command line

It is often called `ldc2` so give that a try.

btw I run gdc on my raspberry pi 3 from the raspbian distro package and it is pretty nice too. though ldc will have newer D frontend features as the version they have packaged of gdc is a touch old, both work pretty well.
February 23
On 2/23/21 9:56 AM, Decabytes wrote:
> I've been playing around in D for a bit and I'm enjoying it so far. I've also been testing out freebsd on a Raspberry Pi 3. I noticed that there is actually a package for LDC on the raspberry pi 3, and thought it would be fun to play around with D on an ARM platform.
> 
> I installed it with "pkg install ldc", but embarrassingly I'm not actually sure where the compiler is. ldc isn't a recognized action on the command line, and I've hunted around my /usr/local/llvm10/ directory but I'm having difficulty finding anything that looks like what I'm looking for. Does anyone have any experience with ldc on freebsd that could help me out?

Found this on the internet:

https://forums.freebsd.org/threads/list-of-the-installed-files-of-a-package.66372/

looks like:

pkg info -l name-of-package

It should show you were it put the ldc command and what it's called.

-Steve
February 23
On Tuesday, 23 February 2021 at 15:15:56 UTC, Steven Schveighoffer wrote:
> On 2/23/21 9:56 AM, Decabytes wrote:

> Found this on the internet:
>
> https://forums.freebsd.org/threads/list-of-the-installed-files-of-a-package.66372/
>
> looks like:
>
> pkg info -l name-of-package
>
> It should show you were it put the ldc command and what it's called.
>
> -Steve

Aha "pkg info ldc2 | grep "bin"" yielded the location in /usr/local/bin/ldc2. Thanks!
February 23
On Tuesday, 23 February 2021 at 15:11:32 UTC, Adam D. Ruppe wrote:
> On Tuesday, 23 February 2021 at 14:56:45 UTC, Decabytes wrote:

> It is often called `ldc2` so give that a try.
>
> btw I run gdc on my raspberry pi 3 from the raspbian distro package and it is pretty nice too. though ldc will have newer D frontend features as the version they have packaged of gdc is a touch old, both work pretty well.

ldc2 is the winner thank you! I'd like to get gdc and dmd up and running to at some point, but seeing as they aren't packaged up it will prob require building from source, which I'm not totally sure how to do or if it's even feasible on a raspberry pi 3 with only 1gb of ram. I wonder if it would be easier to load up freebsd on my main desktop get dmd and gdc running there, and then cross compile for arm64. Who knows! I probably won't be trying it for awhile but if anyone has any experience with this as well I'm all ears. Thanks again for the help
4 days ago
On 2021-02-23 16:34, Decabytes wrote:

> ldc2 is the winner thank you! I'd like to get gdc and dmd up and running to at some point

Unfortunately, DMD doesn't support ARM.

-- 
/Jacob Carlborg