Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
interest in a D compiler ?
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Fri Aug 08, 2003 9:18 am    Post subject: interest in a D compiler ? Reply with quote

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
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Fri Aug 08, 2003 2:33 pm    Post subject: Reply with quote

Interesting. I might give it a try. However, their web page needs some corrections regarding C++ and C#.
Back to top
View user's profile Send private message
Anacific
Apprentice
Apprentice


Joined: 05 Jun 2003
Posts: 210
Location: Toronto, Canada

PostPosted: Fri Aug 08, 2003 9:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
ssvb
Tux's lil' helper
Tux's lil' helper


Joined: 06 Nov 2003
Posts: 96

PostPosted: Fri Apr 16, 2004 7:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Thu Apr 22, 2004 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
BugBuster
n00b
n00b


Joined: 20 Dec 2002
Posts: 12

PostPosted: Thu Apr 22, 2004 8:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Fri Apr 23, 2004 5:35 am    Post subject: Reply with quote

Why didn't they like it? I found an ebuild for dmd in portage and it seemed to work fine.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Fri Apr 23, 2004 7:39 am    Post subject: Reply with quote

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
View user's profile Send private message
BugBuster
n00b
n00b


Joined: 20 Dec 2002
Posts: 12

PostPosted: Fri Apr 23, 2004 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Fri Apr 23, 2004 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9507
Location: beyond the rim

PostPosted: Fri Apr 23, 2004 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Apr 23, 2004 11:22 pm    Post subject: Reply with quote

I have a question about this... ADA was done using C, so has been D made using C too?
Back to top
View user's profile Send private message
Caffeine
Guru
Guru


Joined: 17 Jul 2002
Posts: 401
Location: Melbourne, Australia

PostPosted: Wed Jul 14, 2004 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message
andersRson
n00b
n00b


Joined: 12 Jun 2003
Posts: 17
Location: Sweden

PostPosted: Wed Oct 27, 2004 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
meyerm
Veteran
Veteran


Joined: 27 Jun 2002
Posts: 1311
Location: Munich / Germany

PostPosted: Mon Jul 25, 2005 7:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Tue Jan 02, 2007 5:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
fuzzybyte
n00b
n00b


Joined: 27 May 2006
Posts: 42

PostPosted: Wed Jan 03, 2007 1:04 am    Post subject: Reply with quote

I really would like to see dmd or gdc in portage! has there been any progress lately?
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Wed Jan 03, 2007 5:35 pm    Post subject: Reply with quote

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

http://www.dsource.org/projects/gentoo
Back to top
View user's profile Send private message
HexFex
n00b
n00b


Joined: 06 Nov 2003
Posts: 14
Location: Germany

PostPosted: Wed Jan 03, 2007 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Wed Jan 03, 2007 11:36 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
fuzzybyte
n00b
n00b


Joined: 27 May 2006
Posts: 42

PostPosted: Thu Jan 04, 2007 11:01 am    Post subject: Reply with quote

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

http://www.dsource.org/projects/gentoo


dmd in that overlay is obsolete!
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Thu Jan 04, 2007 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1342
Location: Sweden

PostPosted: Thu Jan 04, 2007 6:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
ikeathesofa
n00b
n00b


Joined: 15 Mar 2005
Posts: 10
Location: Walla Walla / WA / USA

PostPosted: Fri Jan 05, 2007 5:35 am    Post subject: me also Reply with quote

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
View user's profile Send private message
fuzzybyte
n00b
n00b


Joined: 27 May 2006
Posts: 42

PostPosted: Fri Jan 05, 2007 7:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum