digitalmars.D - Using DMD2 on Ubuntu 9.04 x64?
- Trip Volpe (12/12) Jan 31 2010 I installed the DMD2 compiler as per the instructions here: http://www.d...
- Nick Sabalausky (3/28) Jan 31 2010 I haven't gotten into D2 yet, but D1 (DMD) works fine on Ubuntu 9.04 for...
- Trip Volpe (2/4) Jan 31 2010 Hm, just tried DMD 1.0, same exact result. Do you have a 32-bit installa...
- Travis Boucher (3/8) Feb 01 2010 Try the gdc-4.1 package. Its an old ass dmd-fe, but still works well and...
- Walter Bright (5/7) Jan 31 2010 Here's what I use on Ubuntu 64:
- Andrei Alexandrescu (3/12) Jan 31 2010 That definitely belongs on the installation notes webpage.
- Lars T. Kyllingstad (10/18) Feb 01 2010 The commands Walter mention will install the most basic libraries -- the...
- Steve Teale (5/14) Feb 01 2010 Walter,
- Walter Bright (5/8) Feb 01 2010 Yes, I have an AMD64. How that would differ as far as dev tool
- Vladimir Panteleev (8/16) Feb 01 2010 Possibly related, I filed this issue last year:
- Steve Teale (4/13) Feb 02 2010 Sorry Walter, I got my question wrong - probably too late in the day. I ...
- Andrei Alexandrescu (6/21) Feb 02 2010 32-bit D on 32-bit Ubuntu works. 32-bit D on 64-bit Ubuntu is more
- grauzone (3/27) Feb 02 2010 64 bit D on amd64 has been reported to work very well with LDC and GDC.
- Andrei Alexandrescu (4/31) Feb 02 2010 It was a joke.
- Jesse Phillips (6/20) Feb 02 2010 Intel 64 is AMD64. Intel dropped their 64-bit implementation, EM64T,
- retard (5/31) Feb 02 2010 That's bullshit, but I guess it doesn't matter, because most software
- Jesse Phillips (4/12) Feb 02 2010 Yes, there are differences, but the fact remains that Intel had to devel...
- Don (9/24) Feb 03 2010 Yes, but EM64T _was_ AMD64. That part of your post was wrong. It was
- Jesse Phillips (4/22) Feb 03 2010 Ok, I'll admit that I thought it was called ia-64 but couldn't find a
- dsimcha (2/9) Feb 01 2010 Is there any way to solve this if you don't have root access?
- Walter Bright (2/12) Feb 01 2010 Beats me. Perhaps ask your sys admin?
- Trip Volpe (2/7) Feb 01 2010 That did the trick. Thanks much! :-)
- Gareth Charnock (8/25) Feb 01 2010 Yes it is possible and you don't even have to mess about with chroot. I
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.
Jan 31 2010
"Trip Volpe" <mraccident gmail.com> wrote in message news:hk5p4f$2t2$1 digitalmars.com...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.I haven't gotten into D2 yet, but D1 (DMD) works fine on Ubuntu 9.04 for me.
Jan 31 2010
Nick Sabalausky Wrote:I haven't gotten into D2 yet, but D1 (DMD) works fine on Ubuntu 9.04 for me.Hm, just tried DMD 1.0, same exact result. Do you have a 32-bit installation of Ubuntu?
Jan 31 2010
Trip Volpe wrote:Nick Sabalausky Wrote:Try the gdc-4.1 package. Its an old ass dmd-fe, but still works well and is no hassle to install.I haven't gotten into D2 yet, but D1 (DMD) works fine on Ubuntu 9.04 for me.Hm, just tried DMD 1.0, same exact result. Do you have a 32-bit installation of Ubuntu?
Feb 01 2010
Trip Volpe wrote:Has anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Jan 31 2010
Walter Bright wrote:Trip Volpe wrote:That definitely belongs on the installation notes webpage. AndreiHas anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Jan 31 2010
Walter Bright wrote:Trip Volpe wrote:That last one is missing a 'c': libc6-dev-i386Has anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386sudo apt-get install g++-multilibThe commands Walter mention will install the most basic libraries -- the ones you need if you're just going to use Phobos and other 'native D' libraries. Another tip is that the 'ia32-libs' package contain 32-bit versions of a bunch of libraries (GTK, ALSA, X11, and a *lot* more). Also, try searching for packages with names starting with lib32, there are quite a few of those as well. -Lars
Feb 01 2010
Walter Bright Wrote:Trip Volpe wrote:Walter, Are we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture. Thanks SteveHas anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Feb 01 2010
Steve Teale wrote:Are we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture.Yes, I have an AMD64. How that would differ as far as dev tool installation from Intel, I have no idea. I'm not even sure what the packages I listed actually install - I just tried them (based on web search inquiries) and they work.
Feb 01 2010
On Mon, 01 Feb 2010 22:44:31 +0200, Walter Bright <newshound1 digitalmars.com> wrote:Steve Teale wrote:Possibly related, I filed this issue last year: http://d.puremagic.com/issues/show_bug.cgi?id=3028 (The D 1.0 Ubuntu .deb file is completely broken) -- Best regards, Vladimir mailto:thecybershadow gmail.comAre we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture.Yes, I have an AMD64. How that would differ as far as dev tool installation from Intel, I have no idea. I'm not even sure what the packages I listed actually install - I just tried them (based on web search inquiries) and they work.
Feb 01 2010
Walter Bright Wrote:Steve Teale wrote:Sorry Walter, I got my question wrong - probably too late in the day. I guess what I'm asking really is will there be a 32 bit version of D for Ubuntu in the near future, and if so, will it be D2, or D1, or both? Thanks SteveAre we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture.Yes, I have an AMD64. How that would differ as far as dev tool installation from Intel, I have no idea. I'm not even sure what the packages I listed actually install - I just tried them (based on web search inquiries) and they work.
Feb 02 2010
Steve Teale wrote:Walter Bright Wrote:32-bit D on 32-bit Ubuntu works. 32-bit D on 64-bit Ubuntu is more problematic (requires the extra packages just discussed). 64-bit D on 64-bit Ubuntu does not exist. 64-bit D on 32-bit Ubuntu may or may not exist, but anyway it doesn't work. :o) AndreiSteve Teale wrote:Sorry Walter, I got my question wrong - probably too late in the day. I guess what I'm asking really is will there be a 32 bit version of D for Ubuntu in the near future, and if so, will it be D2, or D1, or both? Thanks SteveAre we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture.Yes, I have an AMD64. How that would differ as far as dev tool installation from Intel, I have no idea. I'm not even sure what the packages I listed actually install - I just tried them (based on web search inquiries) and they work.
Feb 02 2010
Andrei Alexandrescu wrote:Steve Teale wrote:64 bit D on amd64 has been reported to work very well with LDC and GDC. I'm not sure what you mean by 64 bit on 32 bits.Walter Bright Wrote:32-bit D on 32-bit Ubuntu works. 32-bit D on 64-bit Ubuntu is more problematic (requires the extra packages just discussed). 64-bit D on 64-bit Ubuntu does not exist. 64-bit D on 32-bit Ubuntu may or may not exist, but anyway it doesn't work. :o)Steve Teale wrote:Sorry Walter, I got my question wrong - probably too late in the day. I guess what I'm asking really is will there be a 32 bit version of D for Ubuntu in the near future, and if so, will it be D2, or D1, or both? Thanks SteveAre we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture.Yes, I have an AMD64. How that would differ as far as dev tool installation from Intel, I have no idea. I'm not even sure what the packages I listed actually install - I just tried them (based on web search inquiries) and they work.Andrei
Feb 02 2010
grauzone wrote:Andrei Alexandrescu wrote:Sorry! I meant dmd...Steve Teale wrote:64 bit D on amd64 has been reported to work very well with LDC and GDC.Walter Bright Wrote:32-bit D on 32-bit Ubuntu works. 32-bit D on 64-bit Ubuntu is more problematic (requires the extra packages just discussed). 64-bit D on 64-bit Ubuntu does not exist. 64-bit D on 32-bit Ubuntu may or may not exist, but anyway it doesn't work. :o)Steve Teale wrote:Sorry Walter, I got my question wrong - probably too late in the day. I guess what I'm asking really is will there be a 32 bit version of D for Ubuntu in the near future, and if so, will it be D2, or D1, or both? Thanks SteveAre we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture.Yes, I have an AMD64. How that would differ as far as dev tool installation from Intel, I have no idea. I'm not even sure what the packages I listed actually install - I just tried them (based on web search inquiries) and they work.I'm not sure what you mean by 64 bit on 32 bits.It was a joke. Andrei
Feb 02 2010
Steve Teale wrote:Walter Bright Wrote:Intel 64 is AMD64. Intel dropped their 64-bit implementation, EM64T, after AMD won. The required packages are the same for both systems. The deb package is stated to be i386, which is not AMD64. You can force the installation by using: dpkg --force-architecture -i dmd.1.043.debTrip Volpe wrote:Walter, Are we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture. Thanks SteveHas anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Feb 02 2010
Tue, 02 Feb 2010 15:23:25 +0000, Jesse Phillips wrote:Steve Teale wrote:That's bullshit, but I guess it doesn't matter, because most software uses the compatible subset of both versions. See: http://en.wikipedia.org/wiki/X86-64#Differences_between_AMD64_and_Intel_64Walter Bright Wrote:Intel 64 is AMD64. Intel dropped their 64-bit implementation, EM64T, after AMD won.Trip Volpe wrote:Walter, Are we still just talking just AMD 64 here? Last time I tried to install the .deb package, the system told m that my Intel core2 64 bit machine was the wrong architecture. Thanks SteveHas anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Feb 02 2010
retard Wrote:Yes, there are differences, but the fact remains that Intel had to develop its implementation to mimic AMD64[1]. 1. http://en.wikipedia.org/wiki/X86-64#History_of_Intel_64 "Intel found itself in the position of adopting the architecture which AMD had created as an extension to Intel's own x86 processor line."Intel 64 is AMD64. Intel dropped their 64-bit implementation, EM64T, after AMD won.That's bullshit, but I guess it doesn't matter, because most software uses the compatible subset of both versions. See: http://en.wikipedia.org/wiki/X86-64#Differences_between_AMD64_and_Intel_64
Feb 02 2010
Jesse Phillips wrote:retard Wrote:Yes, but EM64T _was_ AMD64. That part of your post was wrong. It was Itanium they dropped. I don't think the differences between AMD's AMD64 and Intel's clone of AMD64 are any more significant than the differences between AMD and Intel for 32 bit. Obviously Intel marketing refuses to call it AMD64, but that's what it is. You could call it x86-64 to avoid that issue, but I don't think anyone should ever use the term "Intel64" unless they work for Intel.Yes, there are differences, but the fact remains that Intel had to develop its implementation to mimic AMD64[1]. 1. http://en.wikipedia.org/wiki/X86-64#History_of_Intel_64 "Intel found itself in the position of adopting the architecture which AMD had created as an extension to Intel's own x86 processor line."Intel 64 is AMD64. Intel dropped their 64-bit implementation, EM64T, after AMD won.That's bullshit, but I guess it doesn't matter, because most software uses the compatible subset of both versions. See: http://en.wikipedia.org/wiki/X86-64#Differences_between_AMD64_and_Intel_64
Feb 03 2010
Don wrote:Jesse Phillips wrote:Ok, I'll admit that I thought it was called ia-64 but couldn't find a reference to it so grabbed EM64T because it looked close. I guess what I was thinking of was ia-32e though.retard Wrote:Yes, but EM64T _was_ AMD64. That part of your post was wrong. It was Itanium they dropped.Yes, there are differences, but the fact remains that Intel had to develop its implementation to mimic AMD64[1]. 1. http://en.wikipedia.org/wiki/X86-64#History_of_Intel_64 "Intel found itself in the position of adopting the architecture which AMD had created as an extension to Intel's own x86 processor line."Intel 64 is AMD64. Intel dropped their 64-bit implementation, EM64T, after AMD won.That's bullshit, but I guess it doesn't matter, because most software uses the compatible subset of both versions. See: http://en.wikipedia.org/wiki/X86-64#Differences_between_AMD64_and_Intel_64
Feb 03 2010
== Quote from Walter Bright (newshound1 digitalmars.com)'s articleTrip Volpe wrote:Is there any way to solve this if you don't have root access?Has anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Feb 01 2010
dsimcha wrote:== Quote from Walter Bright (newshound1 digitalmars.com)'s articleBeats me. Perhaps ask your sys admin?Trip Volpe wrote:Is there any way to solve this if you don't have root access?Has anybody else managed to get DMD2 up and running on Ubuntu? It _is_ possible, right?Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilib
Feb 01 2010
Walter Bright Wrote:Here's what I use on Ubuntu 64: sudo apt-get install gcc-multilib libc6-i386 lib6-dev-i386 sudo apt-get install gcc-multilib sudo apt-get install g++-multilibThat did the trick. Thanks much! :-)
Feb 01 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.
Feb 01 2010