Using DMD2 on Ubuntu 9.04 x64?

Trip Volpe mraccident at gmail.com
Sun Jan 31 21:34:07 PST 2010


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