Thread overview
64-bit gdc on AMD Opteron?
Mar 26, 2005
dslate
Mar 27, 2005
Manfred Hansen
Mar 28, 2005
Benjamin Herr
Mar 28, 2005
Charlie
March 26, 2005
I am trying to build a D compiler using gcc-3.4.3 and gdc-0.10.  I seem to have it working on a Pentium-III machine running Redhat 7.2 (it compiles and runs sieve.d), but am having problems building a 64-bit version on an AMD Opteron workstation running SUSE Professional Linux 9.1.  Various assertions are failing in the phobos build, and I did find a message from David Friedman dated last October about gdc not being 64-bit clean.  Does David or anyone else know what the current status is of gdc on the AMD-64 (or x86-64) architecture?

P.S. I am an experienced C programmer who is looking for something better.  C++ is too complicated for my tastes, and while I like Python, it's way too slow for my applications.  D looks pretty good, and I wish the developers best of luck in getting it widely adopted.

Thanks,

-- Dave Slate
dslate@patrec.com

Dave Slate
dslate@patrec.com
March 27, 2005
dslate@patrec.com wrote:

> I am trying to build a D compiler using gcc-3.4.3 and gdc-0.10.  I seem to have it working on a Pentium-III machine running Redhat 7.2 (it compiles and runs sieve.d), but am having problems building a 64-bit version on an AMD Opteron workstation running SUSE Professional Linux 9.1.  Various assertions are failing in the phobos build, and I did find a message from David Friedman dated last October about gdc not being 64-bit clean.  Does David or anyone else know what the current status is of gdc on the AMD-64 (or x86-64) architecture?
> 
> P.S. I am an experienced C programmer who is looking for something better.  C++ is too complicated for my tastes, and while I like Python, it's way too slow for my applications.  D looks pretty good, and I wish the developers best of luck in getting it widely adopted.
> 
> Thanks,
> 
> -- Dave Slate
> dslate@patrec.com
> 
> Dave Slate
> dslate@patrec.com


I have only successful compiled gdc in a chroot environment on a AMD-64 Machine.

Here is my configure

../gcc-3.4.3/configure --enable-languages=c,d,c++ --prefix=/usr/local/gcc-3.4.3 --target=i686-pc-linux-gnu --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --enable-shared

Phobos compiled without any problems in the chroot environment.

Manfred
March 27, 2005
Dave Slate wrote:

> I am trying to build a D compiler using gcc-3.4.3 and gdc-0.10.  I
> seem to have it working on a Pentium-III machine running Redhat 7.2
> (it compiles and runs sieve.d), but am having problems building a
> 64-bit version on an AMD Opteron workstation running SUSE Professional
> Linux 9.1.  Various assertions are failing in the phobos build, and I
> did find a message from David Friedman dated last October about gdc
> not being 64-bit clean.  Does David or anyone else know what the
> current status is of gdc on the AMD-64 (or x86-64) architecture?

I believe that DMD and Phobos itself is *not* 64-bit clean, and GDC
is merely echoing this fact when building the front-end/runtime-lib.

Trying to get a PPC64 build going myself, but I need a fully 64 OS
first (at the moment I only have 32-bit Mac OS X and 32-bit Linux)

But I do think it's upstream (too) ?

--anders
March 28, 2005
Anders F Björklund wrote:
> I believe that DMD and Phobos itself is *not* 64-bit clean, and GDC
> is merely echoing this fact when building the front-end/runtime-lib.

I think that gdc is actually very close to being clean, "fixing" only <built-dir>/gcc/d/dmd/lexer.c:1533 and <built-dir>/gcc/d/dmd/aggregate.h:197 got it to compile here.

However Phobos seems very "broken".
Would it not be easier to maintain Phobos if we finally reorganised the standard library after all these years, so the things that are vital to the language and required to compile simple programs are separated from tools and convenience wrappers?

> Trying to get a PPC64 build going myself, but I need a fully 64 OS
> first (at the moment I only have 32-bit Mac OS X and 32-bit Linux)

Gentoo has quite cool 64bit support.

> --anders

--funroll-loops
March 28, 2005
Benjamin Herr wrote:

> Gentoo has quite cool 64bit support.

Yeah, I'm installing Gentoo 2005.0
in a chroot on my Yellow Dog Linux...

Then you can bet I'll "emerge gdc" ;-)
http://bugs.gentoo.org/show_bug.cgi?id=48136


Although, all my regular work is done in
Mac OS X. Linux is just through dual-boot.

--anders
March 28, 2005
> Would it not be easier to maintain Phobos if we finally reorganised the standard library after all these years, so the things that are vital to the language and required to compile simple programs are separated from tools and convenience wrappers?

Lord yes :).  Have you tried ares : http://dsource.org/forums/viewforum.php?f=31&sid=1477845bd29cc3dbe8fa2fcb462 02d83  , its a re-write / re-organization of phobos, I imagine making phobos 64 bit compatibile would be much easier from this.

Charlie



"Benjamin Herr" <ben@0x539.de> wrote in message news:d29231$2009$1@digitaldaemon.com...
> Anders F Björklund wrote:
> > I believe that DMD and Phobos itself is *not* 64-bit clean, and GDC is merely echoing this fact when building the front-end/runtime-lib.
>
> I think that gdc is actually very close to being clean, "fixing" only <built-dir>/gcc/d/dmd/lexer.c:1533 and <built-dir>/gcc/d/dmd/aggregate.h:197 got it to compile here.
>
> However Phobos seems very "broken".
> Would it not be easier to maintain Phobos if we finally reorganised the
> standard library after all these years, so the things that are vital to
> the language and required to compile simple programs are separated from
> tools and convenience wrappers?
>
> > Trying to get a PPC64 build going myself, but I need a fully 64 OS first (at the moment I only have 32-bit Mac OS X and 32-bit Linux)
>
> Gentoo has quite cool 64bit support.
>
> > --anders
>
> --funroll-loops