interest in a D compiler ?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
User avatar
Genone
Retired Dev
Retired Dev
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

interest in a D compiler ?

Post by Genone »

I find the D language from http://www.digitalmars.com/d/ very interesting, although I haven't used it much yet. In case someone else is interested, I put together an ebuild for the compiler:

Code: Select all

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

RESTRICT="nomirror"

S="${WORKDIR}/${P}"
DESCRIPTION="Compiler, library and tools for the D language"
HOMEPAGE="http://www.digitalmars.com/d/"
SRC_URI="ftp://ftp.digitalmars.com/dmd.zip"
LICENSE="Artistic as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="sys-devel/gcc"

src_install() {
	cd ${WORKDIR}/dmd

	# rename to make sure we don't overwrite files from another package
	mv bin/dumpobj bin/dmd-dumpobj
	mv bin/obj2asm bin/dmd-obj2asm

	dobin bin/{dmd,dmd-dumpobj,dmd-obj2asm}
	dolib lib/libphobos.a
	dohtml html/d/*
	dodoc bin/readme.txt license.txt

	# the source files are important, or the compiler won't 
	# find the library functions
	dodir usr/lib/dmd
	cp -r src/phobos/* ${D}/usr/lib/dmd/

	# config file to set the path for the source files
	dodir etc/env.d
	echo "DFLAGS=\"-I/usr/lib/dmd\"" > ${D}/etc/env.d/40dflags
}
If you want to use this don't forget to run

Code: Select all

env-update && source /etc/profile
after the emerge.

EDIT: spelling
Last edited by Genone on Fri Aug 08, 2003 5:15 pm, edited 1 time in total.
dma
Guru
Guru
Posts: 437
Joined: Fri Jan 31, 2003 9:13 pm
Location: Charlotte, NC, USA
Contact:

Post by dma »

Interesting. I might give it a try. However, their web page needs some corrections regarding C++ and C#.
User avatar
Anacific
Apprentice
Apprentice
Posts: 210
Joined: Thu Jun 05, 2003 8:30 pm
Location: Toronto, Canada

Post by Anacific »

Interesting indeed. I'll give this a try once I have some free time.
warning: `class GroveImpl' only defines a private destructor and has no friends.
ssvb
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Thu Nov 06, 2003 12:48 pm

Post by ssvb »

Looks like it is a very promising language. By the way, there is also GCC frontend for D language: http://www.prowiki.org/wiki4d/wiki.cgi?GccFrontEnd
Having ebuild for GCC based D compiler would be interesting too (open source and more supported platforms).
User avatar
Caffeine
Guru
Guru
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

Post by Caffeine »

I've just discovered D. Looks really promising. The ebuilds for the GCC front end (gdc) and the runtime library (phobos) are in bugzilla:

http://bugs.gentoo.org/show_bug.cgi?id=48136
User avatar
BugBuster
n00b
n00b
Posts: 12
Joined: Fri Dec 20, 2002 8:59 pm

Post by BugBuster »

I've had an ebuild for dmd in portage, but somebody deleted it.
Nobody likes my ebuilds for gdc so there will not be support for D in Gentoo....
User avatar
Caffeine
Guru
Guru
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

Post by Caffeine »

Why didn't they like it? I found an ebuild for dmd in portage and it seemed to work fine.
User avatar
Genone
Retired Dev
Retired Dev
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

Post by Genone »

Are you talking about #48136 ? The bug isn't even a week old and packages with versions like 0.0.1_rc5 are a bit discouraging (but challenging at the same time). Maybe I'll look into D more once I find some use for it. As a sidenote, I never put dmd into portage because of upstream restrictions, see this thread.
User avatar
BugBuster
n00b
n00b
Posts: 12
Joined: Fri Dec 20, 2002 8:59 pm

Post by BugBuster »

The frontend does not have a real version. Its announced as 1e which did not fit. Maybe I should call it 0.8.1-r5.
User avatar
Caffeine
Guru
Guru
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

Post by Caffeine »

BugBuster, the homepage for the GDC front end is http://home.earthlink.net/~dvdfrdmn/d/

Also, 1f is released, but I guess you're on the mailing list also.

I've modified you're ebuild (just substituted 1e for 1f) and am building it now. Patching seemed to work fine. I'll let you know if it builds.

Edit: No go. :-(
User avatar
Genone
Retired Dev
Retired Dev
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

Post by Genone »

FYI: 1e and 1f (or 0.1e or 0.0.1e, but not 0.1e.0) would be valid version numbers for portage.
User avatar
Deathwing00
Bodhisattva
Bodhisattva
Posts: 4087
Joined: Fri Jun 13, 2003 9:07 pm
Location: Berlin, Germany
Contact:

Post by Deathwing00 »

I have a question about this... ADA was done using C, so has been D made using C too?
User avatar
Caffeine
Guru
Guru
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

Post by Caffeine »

Anyone tried the latest gdc in bugzilla?
I get the following error...

Code: Select all

gdc -o helloWorld helloWorld.d
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libphobos.a(d_os_dep.o)(.text+0x37c): In function `GC_write_fault_handler':
/var/tmp/portage/phobos-0.8.2-r7/work/gcc-3.3.3/gcc/d/phobos/boehm-gc/d_os_dep.c:2334: undefined reference to `GC_err_printf'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libphobos.a(d_os_dep.o)(.text+0x3a2):/var/tmp/portage/phobos-0.8.2-r7/work/gcc-3.3.3/gcc/d/phobos/boehm-gc/d_os_dep.c:2251: undefined reference to `GC_arrays'
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../libphobos.a(d_os_dep.o)(.text+0x40a):/var/tmp/portage/phobos-0.8.2-r7/work/gcc-3.3.3/gcc/d/phobos/boehm-gc/d_os_dep.c:2264: undefined reference to `GC_err_printf'
andersRson
n00b
n00b
Posts: 17
Joined: Thu Jun 12, 2003 5:27 pm
Location: Sweden
Contact:

Post by andersRson »

bumping this age-old thread..
There has been some updates to the gdc compiler lately, does anyone still care about this?
GDC has been updated to match dmd version 0.102. I tried to modify the ebuilds from bugzilla, but it wouldn't compile..=(
http://bugs.gentoo.org/show_bug.cgi?id=48136
Here's my modified gdc ebuild if anyone's interested:
http://www.runesson.info/anders/gdc-0.102.ebuild
I didn't post it at bugzilla because it wouldn't compile for me, not sure if it's something I missed, or what. The only difference is the tarball downloaded, and one of the patches has been removed (patch-1f-20040427)
This is only for gdc, not phobos since i didn't get that far.
User avatar
meyerm
Veteran
Veteran
Posts: 1311
Joined: Thu Jun 27, 2002 5:18 pm
Location: Munich / Germany

Post by meyerm »

Hi there,

I no longer see any dmd/gdc/digitalmars ebuilds in portage. Were they deleted or do I simply not find them? Is there still interest from some devs in D or is it considered dead/boring/whatever?

Thanks,
Marcel
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

Post by Letharion »

Bumping this thread because I have the same question as the meyerm.
Bugs 118209 and 48136 have been modified fairly recently, so that should mean D is still "in progress", right?
fuzzybyte
n00b
n00b
Posts: 42
Joined: Sat May 27, 2006 5:44 pm

Post by fuzzybyte »

I really would like to see dmd or gdc in portage! has there been any progress lately?
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

Post by Letharion »

I found this interesting link :-) with an overlay for dmd.

http://www.dsource.org/projects/gentoo
HexFex
n00b
n00b
Posts: 14
Joined: Thu Nov 06, 2003 7:12 pm
Location: Germany
Contact:

Post by HexFex »

I really would like to see gdc in portage, too.
In a world without walls and fences, who needs windows and gates?
User avatar
sonicbhoc
Veteran
Veteran
Posts: 1805
Joined: Mon Oct 24, 2005 7:52 pm
Location: In front of the computer screen
Contact:

Post by sonicbhoc »

We should pitch in and help that guy write ebuilds for the dsource projects we are most interested in, starting with gdc of course :wink:

I wouldn't mind spending some time over the weekends messing with that.
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
fuzzybyte
n00b
n00b
Posts: 42
Joined: Sat May 27, 2006 5:44 pm

Post by fuzzybyte »

Letharion wrote:I found this interesting link :-) with an overlay for dmd.

http://www.dsource.org/projects/gentoo
dmd in that overlay is obsolete!
User avatar
sonicbhoc
Veteran
Veteran
Posts: 1805
Joined: Mon Oct 24, 2005 7:52 pm
Location: In front of the computer screen
Contact:

Post by sonicbhoc »

Well, could we make an up-to-date ebuild and send it to the overlay maintainer? dmd and gdc ebuilds are what we should do first - I'd like to help but I don't have free time until the weekend...
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

Post by Letharion »

Obsolete? Wasn't 1.0 just released? I don't know very much about D, but it looks very up to date to me.
ikeathesofa
n00b
n00b
Posts: 10
Joined: Tue Mar 15, 2005 10:06 am
Location: Walla Walla / WA / USA

me also

Post by ikeathesofa »

I would also like to see gdc in portage. I really want to learn and use D.

Anything I can do to help? I don't know much about ebuilds but I'm willing to learn.
fuzzybyte
n00b
n00b
Posts: 42
Joined: Sat May 27, 2006 5:44 pm

Post by fuzzybyte »

Letharion wrote:Obsolete? Wasn't 1.0 just released? I don't know very much about D, but it looks very up to date to me.
I guess they just managed to updated it before you looked :)
Post Reply