User avatar
Gavinmc42
Posts: 3715
Joined: Wed Aug 28, 2013 3:31 am

D language

Wed Sep 11, 2019 10:40 am

Hi Sakaki, is there a D language compiler for Gentoo64, I saw nothing in your repo?
https://dlang.org/

Will doing this work or will Layman break my Gentoo64?
https://wiki.gentoo.org/wiki/Dlang
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
sakaki
Posts: 341
Joined: Sun Jul 16, 2017 1:11 pm

Re: D language

Thu Sep 12, 2019 8:19 pm

Gavinmc42 wrote:
Wed Sep 11, 2019 10:40 am
Hi Sakaki, is there a D language compiler for Gentoo64, I saw nothing in your repo?
https://dlang.org/

Will doing this work or will Layman break my Gentoo64?
https://wiki.gentoo.org/wiki/Dlang
Haven't tried building this yet. Installing layman shouldn't break anything, but probably better to use the "eselect repository" approach instead nowadays (both ways are provided in the dlang Gentoo wiki page you linked).

hth, sakaki

User avatar
Gavinmc42
Posts: 3715
Joined: Wed Aug 28, 2013 3:31 am

Re: D language

Fri Sep 13, 2019 3:00 am

It turns out there is 3 versions of D compilers :o
DMD, GDC, LDC

FYI - GDC can be built as part of GCC if d enabled
https://wiki.dlang.org/GDC
Only C, C++, Fortran are in your current 9.2.0 GCC release.

Anyway, many versions for me to play with.
https://wiki.dlang.org/Bare_Metal_ARM_C ... s_Compiler

I think I can figure it out now.
Really need that 4GB Pi4 before I start compiling cross compilers.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
sakaki
Posts: 341
Joined: Sun Jul 16, 2017 1:11 pm

Re: D language

Fri Sep 13, 2019 11:12 am

Gavinmc42 wrote:
Fri Sep 13, 2019 3:00 am
FYI - GDC can be built as part of GCC if d enabled
https://wiki.dlang.org/GDC
Only C, C++, Fortran are in your current 9.2.0 GCC release.
Yes, you can also compile sys-devel/gcc with e.g. the objc and objc++ USE flags, but I try to keep the shipped version of gcc relatively vanilla.
Best, sakaki

User avatar
Gavinmc42
Posts: 3715
Joined: Wed Aug 28, 2013 3:31 am

Re: D language

Fri Sep 13, 2019 12:30 pm

Time to relearn GCC compiling ;)
I will need to install the armhf cross compiler for those old dinosaurs 32bit Pi's.

I had no luck with DMD and LDC.

But Nim did build and Zig is building now
Two newer languages that were on my list.

Hey is that a Mate Desktop for Gentoo?
Someone was after a Mate OS today.

Whoops running out of memory, time to shut the browser down, can only compile small stuff with the 2GB Pi4.
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

User avatar
Gavinmc42
Posts: 3715
Joined: Wed Aug 28, 2013 3:31 am

Re: D language

Sat Sep 21, 2019 10:01 am

While Geany is ok for simple stuff a better IDE is needed.
Code::Blocks emerged ok and seems to detect existing compilers and the demo OpenGL, SDL example worked.

When there is working D compilers Code::Blocks will be able to use them.
The embedded C compiler support looks interesting, will it do baremetal Pi's?
Attachments
codeblokcs.png
codeblokcs.png (97.89 KiB) Viewed 168 times
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Gentoo”