Using DMD2 on Ubuntu 9.04 x64?

Gareth Charnock gareth at oerc.ox.ac.uk
Mon Feb 1 06:19:54 PST 2010


Yes it is possible and you don't even have to mess about with chroot. I 
think the package you're looking for is ia32-libs. This is my dmd.conf file:

[Environment]

DFLAGS=-I%@P%/../../src/phobos -I%@P%/../../src/druntime/import 
-L-L%@P%/../lib -L-L/lib32 -L-L/usr/lib32

I think the important bits are -L-L/lib32 and -L-L/usr/lib32, the other 
three arguments are peculiarities of my set up.



Trip Volpe wrote:
> I installed the DMD2 compiler as per the instructions here: http://www.digitalmars.com/d/2.0/dmd-linux.html
> 
> After tweaking the conf file to get it actually working, I tried compiling a simple "hello, world" program. This was the result:
> 
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libpthread.so when searching for -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.3.3/../../../libpthread.a when searching for -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.so when searching for -lpthread
> /usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread
> /usr/bin/ld: cannot find -lpthread
> collect2: ld returned 1 exit status
> --- errorlevel 1
> 
> Okay, so I'm guessing this has something to do with the fact that the DMD compiler is 32-bit only, right? I already had to install the 32-bit version of libstdc++ 6 to get it to run in the first place. Does this mean that I need a 32-bit version of the pthread dev libraries? If so, I can't find one in Synaptic. Is there some other place I can find such a thing?
> 
> Has anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?
> 
> Any help would be appreciated.



More information about the Digitalmars-d mailing list