Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 159196 - dgcc: support for D language in gcc
Summary: dgcc: support for D language in gcc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Lowest enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://dgcc.sourceforge.net/
Whiteboard:
Keywords:
: 162108 (view as bug list)
Depends on:
Blocks: 118209
  Show dependency tree
 
Reported: 2006-12-27 04:15 UTC by Mark
Modified: 2007-03-10 13:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark 2006-12-27 04:15:28 UTC
It would be a nice feature to have support for the D language in gcc -- including a useflag to enable it (like "D" or "dgcc").
There are some libraries, interfaces/wrappers and programs in/for D available (e.g. mysql-binding, SDL, OpenGL, games, ...).

There is a gcc-patch at http://dgcc.sourceforge.net/ which supports most OSes gentoo supports and it can be used as crosscompiler too.

It seems to be pretty easy to apply the patch to the gcc-sources, but I don't know how to change the gcc-ebuild to do this.

More information about the D language can be found here:
http://www.digitalmars.com/d/index.html
http://en.wikipedia.org/wiki/D_%28programming_language%29
Comment 1 SpanKY gentoo-dev 2006-12-27 07:22:05 UTC
it doesnt support gcc-4.1.x though (going by their homepage)

if i'm mistaken, i'll take another look
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-01-14 21:32:51 UTC
*** Bug 162108 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2007-02-17 01:06:47 UTC
new version supports 4.1
Comment 4 SpanKY gentoo-dev 2007-02-17 11:01:21 UTC
ive added support for the language to toolchain.eclass, but gcc-4.1.2 ICEs when building with DGCC-0.22 added on, so i'm not going to add the final piece to the ebuild

if you want to test locally, just add this line to your gcc ebuild (3.4.6 or 4.1.1 or 4.1.2 or whatever):
D_VER="0.22"

then emerge gcc with USE=d and you're set
Comment 5 Sean Fritz 2007-03-09 23:35:52 UTC
FYI:

http://dgcc.sourceforge.net/
March 5, 2007

Version 0.23 has been released. GDC now supports 64-bit targets.

===
This should be re-opening since it's still not possible to build D without manually hacking ebuilds.
Comment 6 brian-schott 2007-03-10 02:23:30 UTC
(In reply to comment #4)
> ive added support for the language to toolchain.eclass, but gcc-4.1.2 ICEs when
> building with DGCC-0.22 added on, so i'm not going to add the final piece to
> the ebuild
> 
> if you want to test locally, just add this line to your gcc ebuild (3.4.6 or
> 4.1.1 or 4.1.2 or whatever):
> D_VER="0.22"
> 
> then emerge gcc with USE=d and you're set
> 

Setting D_VER="0.23" in the ebuild and emerging gcc-4.1.1-r3 works on my AMD64 system.

----
import std.stdio;

void main()
{
        char[] gd = "Thanks Gentoo Developers!";
        foreach(char c; gd)
                writef(c);
        writefln();
}
----
(~) gdc temp.d -o temp && ./temp
Thanks Gentoo Developers!

Comment 7 SpanKY gentoo-dev 2007-03-10 13:58:56 UTC
should be in gcc-4.1.2 and gcc-3.4.6 now, cheers