Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

interest in a D compiler ?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
49 posts
  • 1
  • 2
  • Next
Author
Message
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

interest in a D compiler ?

  • Quote

Post by Genone » Fri Aug 08, 2003 9:18 am

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.
Top
dma
Guru
Guru
Posts: 437
Joined: Fri Jan 31, 2003 9:13 pm
Location: Charlotte, NC, USA
Contact:
Contact dma
Website

  • Quote

Post by dma » Fri Aug 08, 2003 2:33 pm

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

  • Quote

Post by Anacific » Fri Aug 08, 2003 9:07 pm

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.
Top
ssvb
Tux's lil' helper
Tux's lil' helper
Posts: 96
Joined: Thu Nov 06, 2003 12:48 pm

  • Quote

Post by ssvb » Fri Apr 16, 2004 7:38 pm

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).
Top
Caffeine
Guru
Guru
User avatar
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

  • Quote

Post by Caffeine » Thu Apr 22, 2004 4:33 pm

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
Top
BugBuster
n00b
n00b
User avatar
Posts: 12
Joined: Fri Dec 20, 2002 8:59 pm

  • Quote

Post by BugBuster » Thu Apr 22, 2004 8:06 pm

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....
Top
Caffeine
Guru
Guru
User avatar
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

  • Quote

Post by Caffeine » Fri Apr 23, 2004 5:35 am

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

  • Quote

Post by Genone » Fri Apr 23, 2004 7:39 am

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.
Top
BugBuster
n00b
n00b
User avatar
Posts: 12
Joined: Fri Dec 20, 2002 8:59 pm

  • Quote

Post by BugBuster » Fri Apr 23, 2004 10:12 am

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.
Top
Caffeine
Guru
Guru
User avatar
Posts: 401
Joined: Wed Jul 17, 2002 7:21 pm
Location: Melbourne, Australia

  • Quote

Post by Caffeine » Fri Apr 23, 2004 10:32 am

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. :-(
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Fri Apr 23, 2004 7:09 pm

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

  • Quote

Post by Deathwing00 » Fri Apr 23, 2004 11:22 pm

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

  • Quote

Post by Caffeine » Wed Jul 14, 2004 7:50 am

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'
Top
andersRson
n00b
n00b
Posts: 17
Joined: Thu Jun 12, 2003 5:27 pm
Location: Sweden
Contact:
Contact andersRson
Website

  • Quote

Post by andersRson » Wed Oct 27, 2004 4:01 pm

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.
Top
meyerm
Veteran
Veteran
User avatar
Posts: 1311
Joined: Thu Jun 27, 2002 5:18 pm
Location: Munich / Germany

  • Quote

Post by meyerm » Mon Jul 25, 2005 7:55 pm

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
Top
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

  • Quote

Post by Letharion » Tue Jan 02, 2007 5:08 pm

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?
Top
fuzzybyte
n00b
n00b
Posts: 42
Joined: Sat May 27, 2006 5:44 pm

  • Quote

Post by fuzzybyte » Wed Jan 03, 2007 1:04 am

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

  • Quote

Post by Letharion » Wed Jan 03, 2007 5:35 pm

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

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

  • Quote

Post by HexFex » Wed Jan 03, 2007 8:48 pm

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

  • Quote

Post by sonicbhoc » Wed Jan 03, 2007 11:36 pm

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.
Top
fuzzybyte
n00b
n00b
Posts: 42
Joined: Sat May 27, 2006 5:44 pm

  • Quote

Post by fuzzybyte » Thu Jan 04, 2007 11:01 am

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

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

  • Quote

Post by sonicbhoc » Thu Jan 04, 2007 1:18 pm

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.
Top
Letharion
Veteran
Veteran
Posts: 1344
Joined: Mon Jun 13, 2005 8:04 am
Location: Sweden

  • Quote

Post by Letharion » Thu Jan 04, 2007 6:41 pm

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

me also

  • Quote

Post by ikeathesofa » Fri Jan 05, 2007 5:35 am

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.
Top
fuzzybyte
n00b
n00b
Posts: 42
Joined: Sat May 27, 2006 5:44 pm

  • Quote

Post by fuzzybyte » Fri Jan 05, 2007 7:02 am

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 :)
Top
Post Reply

49 posts
  • 1
  • 2
  • Next

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy