www.digitalmars.com         C & C++   DMDScript  

D.gnu - GDC 0.11 on Tiger / Darwin8

reply =?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Haven't found any major problems on Mac OS X 10.4,
just some minor issues when compiling the new GDC:

- I used GCC 3.3 instead of (the default) GCC 4.0:
   CC="gcc-3.3" CXX="g++-3.3" ./configure
   (Tiger ships with GCC: 2.95, 3.1, 3.3 *and* 4.0)

- The old preprocessor command "c++filt" is not
   around anymore, used to be present from GCC 3.3
   But "c++filt3" from GCC 3.1, is available - so:
   sudo ln -s /usr/bin/c++filt3 /usr/bin/c++filt

- The old libgcc.a is not used anymore (system
   compiler uses dynamic libs now), but one can
   just use the new one installed by GDC instead:
   gcc-lib/powerpc-apple-darwin8.0.0/3.3.5/libgcc.a


Will post precompiled binaries on gdcmac.sf.net
for powerpc-apple-darwin8.0.0 (Mac OS X 10.4)
and powerpc-apple-darwin7.9.0 (Mac OS X 10.3.9)

Thanks to the work of David, they are now just:
2.6M    gdc.zip (for 10.4, with the libgcc.a)
2.3M    gdc.zip (for 10.3, without libgcc.a)

They are both based on GCC 3.3.5, with patches
for Darwin (frameworks) and for PowerPC (cpus).


Compiling the unittest with DFLAGS set turned out
to be hard, and the old workaround broke severly ?

So I don't think I will bother with GCC 3.4.3 or
the C/C++ installation, for Mac OS X. (use System)

Haven't tried to build PPC64 binaries yet, since
ole Phobos is probably not up to the task anyway...

--anders


PS.
The Install CD for Darwin 8.0.1 for PPC/PPC64 and X86(!) is out now too:
http://www.opensource.apple.com/darwinsource/images/release-notes-8.0.1.txt
But I haven't tried it. Anyone care to give it a spin on i386, perhaps ?
May 04 2005
parent John Reimer <brk_6502 yahoo.com> writes:
Anders F Björklund wrote:

 
 PS.
 The Install CD for Darwin 8.0.1 for PPC/PPC64 and X86(!) is out now too:
 http://www.opensource.apple.com/darwinsource/images/release-notes-8.0.1.txt
 But I haven't tried it. Anyone care to give it a spin on i386, perhaps ?
I've downloaded it, but haven't installed it yet (x86). I may boot it up to see how it works. -JJR
May 04 2005