Thread overview
Does RedHat DTS have D frontend?
Oct 12, 2022
Andrey Zherikov
Oct 12, 2022
rikki cattermole
Oct 12, 2022
Andrey Zherikov
Oct 12, 2022
rikki cattermole
Oct 12, 2022
Mike Parker
Oct 12, 2022
Patrick Schluter
Oct 12, 2022
Adam D Ruppe
October 12, 2022

Long story short: I'm trying to add GDC and LDC into a set of available compilers in our company and a person who is able to do this said that since GDC sources require pre-existing D compiler, the only thing that would properly fit is having RedHat DTS with D front-end.

So does RedHat DTS have D frontend? If yes then what version?

October 12, 2022
You should confirm this, but the version of gcc I could find on Redhat's site lists it as gcc 4.8 which is more than 10 years old. So it won't have it.
October 12, 2022

On Wednesday, 12 October 2022 at 03:26:17 UTC, rikki cattermole wrote:

>

You should confirm this, but the version of gcc I could find on Redhat's site lists it as gcc 4.8 which is more than 10 years old. So it won't have it.

I checked DTS 10.1: it has GCC 10.2.1 - does it have D front-end?

May be correct question to ask is: what the earliest version of GCC does contain D front-end?

October 12, 2022
On 12/10/2022 11:41 PM, Andrey Zherikov wrote:
> On Wednesday, 12 October 2022 at 03:26:17 UTC, rikki cattermole wrote:
>> You should confirm this, but the version of gcc I could find on Redhat's site lists it as gcc 4.8 which is more than 10 years old. So it won't have it.
> 
> I checked [DTS 10.1](https://access.redhat.com/documentation/en-us/red_hat_developer_toolset/10/html/user_guide/chap-red_hat_developer_toolset#sect-Red_Hat_Developer_Toolset-About): it has GCC 10.2.1 - does it have D front-end?

Yes.

https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gcc/Standards.html#D-language

So you should be good to go, as long as you don't mind lagging behind latest version.

> May be correct question to ask is: what the earliest version of GCC does contain D front-end?

I checked the docs via the above, its 9.
October 12, 2022
On Wednesday, 12 October 2022 at 10:45:35 UTC, rikki cattermole wrote:
> On 12/10/2022 11:41 PM, Andrey Zherikov wrote:
>
>
>> May be correct question to ask is: what the earliest version of GCC does contain D front-end?
>
> I checked the docs via the above, its 9.

I'm pretty sure it was still on the C++ frontend then.
October 12, 2022
On Wednesday, 12 October 2022 at 11:36:38 UTC, Mike Parker wrote:
> On Wednesday, 12 October 2022 at 10:45:35 UTC, rikki cattermole wrote:
>> On 12/10/2022 11:41 PM, Andrey Zherikov wrote:
>>
>>
>>> May be correct question to ask is: what the earliest version of GCC does contain D front-end?
>>
>> I checked the docs via the above, its 9.
>
> I'm pretty sure it was still on the C++ frontend then.

The first version with D frontend is in the last version 12.2.
October 12, 2022

On Wednesday, 12 October 2022 at 00:42:56 UTC, Andrey Zherikov wrote:

>

So does RedHat DTS have D frontend? If yes then what version?

I would look for a gdc package. A lot of distros package it separately even if their gcc is built to enable the language.

The gcc version doesn't necessarily tell you anything - my old raspbian setup has gdc6 in its package repo and my newer Slackware install has gdc 9.... gdc9 is when D was upstreamed into gcc's main source, but both the gdc6 and gdc9 are installed as separate OS packages, so that little fact doesn't mean much to the user.

It looks like red hat's search needs an account*, but I'd suggest you just search for gdc in there and see if it comes up.

https://unix.stackexchange.com/questions/6864/how-to-search-for-official-rhel-packages