Thread overview
Re: dmd 1.041 and 2.026 releases
Mar 12, 2009
davesun
Mar 12, 2009
Walter Bright
Mar 12, 2009
Ellery Newcomer
Mar 12, 2009
dsimcha
Mar 12, 2009
Walter Bright
Mar 12, 2009
Ellery Newcomer
May 04, 2009
Sean Kelly
March 12, 2009
when can I use dmd on 64bit linux ?


March 12, 2009
davesun wrote:
> when can I use dmd on 64bit linux ?


You can now - 32 bit executables work fine on 64 bit linux!
March 12, 2009
Walter Bright wrote:
> davesun wrote:
>> when can I use dmd on 64bit linux ?
> 
> 
> You can now - 32 bit executables work fine on 64 bit linux!

Maybe I should try it again sometime, but I ran into linker issues when I tried using DMD on 64bit linux. Other than that, DMD worked fine.
March 12, 2009
== Quote from Ellery Newcomer (ellery-newcomer@utulsa.edu)'s article
> Walter Bright wrote:
> > davesun wrote:
> >> when can I use dmd on 64bit linux ?
> >
> >
> > You can now - 32 bit executables work fine on 64 bit linux!
> Maybe I should try it again sometime, but I ran into linker issues when I tried using DMD on 64bit linux. Other than that, DMD worked fine.

Same here, but only on some installations of 64-bit Linux.  Others work fine.  I think the key is that you need the 32-bit version of GCC and all the libraries like libpthread, libgcc, libc, etc. available.  I've been nagging my sysadmin to install these, though it matters less for me now that I have the DMD source and was able to make DMD work on some other Linux boxes that it previously didn't work on for unrelated reasons.  If you have a bunch of Linux boxes around, you can also compile on one that has the 32-bit libs and copy the resulting binary over to one that doesn't, and it will usually work.
March 12, 2009
dsimcha wrote:
> == Quote from Ellery Newcomer (ellery-newcomer@utulsa.edu)'s article
>> Walter Bright wrote:
>>> davesun wrote:
>>>> when can I use dmd on 64bit linux ?
>>>
>>> You can now - 32 bit executables work fine on 64 bit linux!
>> Maybe I should try it again sometime, but I ran into linker issues when
>> I tried using DMD on 64bit linux. Other than that, DMD worked fine.
> 
> Same here, but only on some installations of 64-bit Linux.  Others work fine.  I
> think the key is that you need the 32-bit version of GCC and all the libraries
> like libpthread, libgcc, libc, etc. available.  I've been nagging my sysadmin to
> install these, though it matters less for me now that I have the DMD source and
> was able to make DMD work on some other Linux boxes that it previously didn't work
> on for unrelated reasons.  If you have a bunch of Linux boxes around, you can also
> compile on one that has the 32-bit libs and copy the resulting binary over to one
> that doesn't, and it will usually work.

On Ubuntu64, which is my main linux dev machine, the following is necessary:

To compile 32 bit programs under ub64:
 sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386

To run 32 bit programs:
 sudo apt-get install gcc-multilib
 sudo apt-get install g++-multilib

(After long bitter experience, I now keep notes on how to configure the machine after a fresh install <g>.)
March 12, 2009
Walter Bright wrote:
> dsimcha wrote:
>> == Quote from Ellery Newcomer (ellery-newcomer@utulsa.edu)'s article
>>> Walter Bright wrote:
>>>> davesun wrote:
>>>>> when can I use dmd on 64bit linux ?
>>>>
>>>> You can now - 32 bit executables work fine on 64 bit linux!
>>> Maybe I should try it again sometime, but I ran into linker issues when
>>> I tried using DMD on 64bit linux. Other than that, DMD worked fine.
>>
>> Same here, but only on some installations of 64-bit Linux.  Others work fine.  I
>> think the key is that you need the 32-bit version of GCC and all the libraries
>> like libpthread, libgcc, libc, etc. available.  I've been nagging my sysadmin to
>> install these, though it matters less for me now that I have the DMD source and
>> was able to make DMD work on some other Linux boxes that it previously didn't work
>> on for unrelated reasons.  If you have a bunch of Linux boxes around, you can also
>> compile on one that has the 32-bit libs and copy the resulting binary over to one
>> that doesn't, and it will usually work.
> 
> On Ubuntu64, which is my main linux dev machine, the following is necessary:
> 
> To compile 32 bit programs under ub64:
>  sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386
> 
> To run 32 bit programs:
>  sudo apt-get install gcc-multilib
>  sudo apt-get install g++-multilib
> 
> (After long bitter experience, I now keep notes on how to configure the machine after a fresh install <g>.)

When I have free time again I'll give that a try. I found it easier just to put something inside a VM.
May 04, 2009
== Quote from Walter Bright (newshound1@digitalmars.com)'s article
> dsimcha wrote:
> > == Quote from Ellery Newcomer (ellery-newcomer@utulsa.edu)'s article
> >> Walter Bright wrote:
> >>> davesun wrote:
> >>>> when can I use dmd on 64bit linux ?
> >>>
> >>> You can now - 32 bit executables work fine on 64 bit linux!
> >> Maybe I should try it again sometime, but I ran into linker issues when I tried using DMD on 64bit linux. Other than that, DMD worked fine.
> >
> > Same here, but only on some installations of 64-bit Linux.  Others work fine.  I think the key is that you need the 32-bit version of GCC and all the libraries like libpthread, libgcc, libc, etc. available.  I've been nagging my sysadmin to install these, though it matters less for me now that I have the DMD source and was able to make DMD work on some other Linux boxes that it previously didn't work on for unrelated reasons.  If you have a bunch of Linux boxes around, you can also compile on one that has the 32-bit libs and copy the resulting binary over to one that doesn't, and it will usually work.
> On Ubuntu64, which is my main linux dev machine, the following is necessary:
> To compile 32 bit programs under ub64:
>   sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386
> To run 32 bit programs:
>   sudo apt-get install gcc-multilib
>   sudo apt-get install g++-multilib
> (After long bitter experience, I now keep notes on how to configure the
> machine after a fresh install <g>.)

Seems I might have to as well.  Before installing these, I was getting a "file not found" error running dmd.  Now everything works perfectly.  Talk about a confusing error message!