View previous topic :: View next topic |
Author |
Message |
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9507 Location: beyond the rim
|
Posted: Fri Aug 08, 2003 9:18 am Post subject: interest in a D compiler ? |
|
|
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: |
# 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: | 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 |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Fri Aug 08, 2003 2:33 pm Post subject: |
|
|
Interesting. I might give it a try. However, their web page needs some corrections regarding C++ and C#. |
|
Back to top |
|
|
Anacific Apprentice
Joined: 05 Jun 2003 Posts: 210 Location: Toronto, Canada
|
Posted: Fri Aug 08, 2003 9:07 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
ssvb Tux's lil' helper
Joined: 06 Nov 2003 Posts: 96
|
Posted: Fri Apr 16, 2004 7:38 pm Post subject: |
|
|
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). |
|
Back to top |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Thu Apr 22, 2004 4:33 pm Post subject: |
|
|
I've just discovered D. Looks really promising. The ebuilds for the GCC front end (gdc) and the runtime library (phobos) are in bugzilla:
https://bugs.gentoo.org/show_bug.cgi?id=48136 |
|
Back to top |
|
|
BugBuster n00b
Joined: 20 Dec 2002 Posts: 12
|
Posted: Thu Apr 22, 2004 8:06 pm Post subject: |
|
|
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.... |
|
Back to top |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Fri Apr 23, 2004 5:35 am Post subject: |
|
|
Why didn't they like it? I found an ebuild for dmd in portage and it seemed to work fine. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9507 Location: beyond the rim
|
Posted: Fri Apr 23, 2004 7:39 am Post subject: |
|
|
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. |
|
Back to top |
|
|
BugBuster n00b
Joined: 20 Dec 2002 Posts: 12
|
Posted: Fri Apr 23, 2004 10:12 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Fri Apr 23, 2004 10:32 am Post subject: |
|
|
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. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9507 Location: beyond the rim
|
Posted: Fri Apr 23, 2004 7:09 pm Post subject: |
|
|
FYI: 1e and 1f (or 0.1e or 0.0.1e, but not 0.1e.0) would be valid version numbers for portage. |
|
Back to top |
|
|
Deathwing00 Bodhisattva
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Fri Apr 23, 2004 11:22 pm Post subject: |
|
|
I have a question about this... ADA was done using C, so has been D made using C too? |
|
Back to top |
|
|
Caffeine Guru
Joined: 17 Jul 2002 Posts: 401 Location: Melbourne, Australia
|
Posted: Wed Jul 14, 2004 7:50 am Post subject: |
|
|
Anyone tried the latest gdc in bugzilla?
I get the following error...
Code: | 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'
|
|
|
Back to top |
|
|
andersRson n00b
Joined: 12 Jun 2003 Posts: 17 Location: Sweden
|
Posted: Wed Oct 27, 2004 4:01 pm Post subject: |
|
|
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..=(
https://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. |
|
Back to top |
|
|
meyerm Veteran
Joined: 27 Jun 2002 Posts: 1311 Location: Munich / Germany
|
Posted: Mon Jul 25, 2005 7:55 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1342 Location: Sweden
|
Posted: Tue Jan 02, 2007 5:08 pm Post subject: |
|
|
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? |
|
Back to top |
|
|
fuzzybyte n00b
Joined: 27 May 2006 Posts: 42
|
Posted: Wed Jan 03, 2007 1:04 am Post subject: |
|
|
I really would like to see dmd or gdc in portage! has there been any progress lately? |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1342 Location: Sweden
|
|
Back to top |
|
|
HexFex n00b
Joined: 06 Nov 2003 Posts: 14 Location: Germany
|
Posted: Wed Jan 03, 2007 8:48 pm Post subject: |
|
|
I really would like to see gdc in portage, too. _________________ In a world without walls and fences, who needs windows and gates? |
|
Back to top |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Wed Jan 03, 2007 11:36 pm Post subject: |
|
|
We should pitch in and help that guy write ebuilds for the dsource projects we are most interested in, starting with gdc of course
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. |
|
Back to top |
|
|
fuzzybyte n00b
Joined: 27 May 2006 Posts: 42
|
Posted: Thu Jan 04, 2007 11:01 am Post subject: |
|
|
dmd in that overlay is obsolete! |
|
Back to top |
|
|
sonicbhoc Veteran
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Thu Jan 04, 2007 1:18 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
Letharion Veteran
Joined: 13 Jun 2005 Posts: 1342 Location: Sweden
|
Posted: Thu Jan 04, 2007 6:41 pm Post subject: |
|
|
Obsolete? Wasn't 1.0 just released? I don't know very much about D, but it looks very up to date to me. |
|
Back to top |
|
|
ikeathesofa n00b
Joined: 15 Mar 2005 Posts: 10 Location: Walla Walla / WA / USA
|
Posted: Fri Jan 05, 2007 5:35 am Post subject: me also |
|
|
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. |
|
Back to top |
|
|
fuzzybyte n00b
Joined: 27 May 2006 Posts: 42
|
Posted: Fri Jan 05, 2007 7:02 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|