ubuntu 8.04 D 2.0 build?

Markus Koskimies markus at reaaliaika.net
Sun Jul 6 20:31:26 PDT 2008


On Mon, 07 Jul 2008 01:41:22 +0000, Moritz Warning wrote:

> On Mon, 07 Jul 2008 01:00:47 +0000, Markus Koskimies wrote:
> 
>> On Thu, 03 Jul 2008 17:29:48 +0000, name wrote:
>> 
>>> The default gdc package on ubuntu 8.04 is d 1.0
>>> 
>>> (prerelease gdc 0.25 20071215, using dmd 1.022)
>>> 
>>> I just wonder if there's a D 2.0 build?
>>> 
>>> Thanks.
>> 
>> Hi, have anyone really got this working?
>> 
>> I just bought a new 64-bit computer, and installed 64-bit Xubuntu on
>> it. I have a bunch of programs written with D (version 1) and I have
>> earlier used "dmd" for compiling them (some older, but functional
>> version).
>> 
>> ---
>> 
>> First I fetched GDC from repository. It can't compile my more complex
>> programs, but that's another case. The simple programs were compiled,
>> but none of them is working, since every "writefln" with more than the
>> format string causes segfault:
>> 
>> 	writefln("Hello, world!");	// Works
>> 
>> 	writelfn("Number: %d", 1);	// Segfault
>> 
>> Aargh!
>> 
> It's a known problem with gdc based on gcc >4.1.
> 
> These build instructions do work fine for me (they are not Tango
> specific):
> 
> http://dsource.org/projects/tango/wiki/GdcInstallation

Thanks, I'll check those later.

My first problem was to get old sources to get compiled. Those are made 
for DMD version 1 and Phobos, and I finally came to a conclusion that 
there is no other way than to set up a 32-bit chroot'd box for compiling 
them - yes, it's working now...

I'll fight with GDC later, and I study more about that tango-thing. I 
like Phobos, because it makes simple programs simple and I really like C-
style format strings (!!!), but I'll think that I'll give Tango a chance. 
Although I'm a little bit worried that Tango is something like C++ 
standard template library, meaning that you need to write a bunch of code 
to make simple things working, but in a more complex program it may pay 
back...


More information about the D.gnu mailing list