Thread overview
compiling on linux ppc
Dec 17, 2006
Carlos Santander
Dec 17, 2006
Marcel Unbehaun
Dec 20, 2006
Carlos Santander
Dec 20, 2006
frostwork
Jan 01, 2007
Carlos Santander
December 17, 2006
I'm trying to compile GDC (one of the latest revisions, I'm not sure which one) on linux PPC, but I'm getting this:

checking If /home/carlos/dev/gdc-sf/build/gcc/gdc -B/home/carlos/dev/gdc-sf/build/gcc/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -B/usr/local/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/powerpc-unknown-linux-gnu/include -isystem /usr/local/powerpc-unknown-linux-gnu/sys-include can compile D sources... /home/carlos/dev/gdc-sf/build/gcc/cc1d: /home/carlos/dev/gdc-sf/build/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
no
configure: error: can't compile D sources!
make: *** [configure-target-libphobos] Error 1

I'm using Kubuntu 6.10. The GCC sources are for version 4.0.3. The current GCC version is:

gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)

-- 
Carlos Santander Bernal
December 17, 2006
Sorry for probably being not of too much help!
I can only tell that gdc builds fine with the standard INSTALL instructions
since 0.18.
just found out that gdc-0.20 has been released  - this time
even with precompiled ppc-linux version.
Maybe this can help you.
(unfortunately i still can't build several aba-games with it...)
December 20, 2006
Carlos Santander escribió:
> I'm trying to compile GDC (one of the latest revisions, I'm not sure which one) on linux PPC, but I'm getting this:
> 
> checking If /home/carlos/dev/gdc-sf/build/gcc/gdc -B/home/carlos/dev/gdc-sf/build/gcc/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -B/usr/local/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/powerpc-unknown-linux-gnu/include -isystem /usr/local/powerpc-unknown-linux-gnu/sys-include can compile D sources... /home/carlos/dev/gdc-sf/build/gcc/cc1d: /home/carlos/dev/gdc-sf/build/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
> no
> configure: error: can't compile D sources!
> make: *** [configure-target-libphobos] Error 1
> 
> I'm using Kubuntu 6.10. The GCC sources are for version 4.0.3. The current GCC version is:
> 
> gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
> 

I'm going to have to give the precompiled binaries a try, because I had the same result with GDC 0.20. Any ideas?

-- 
Carlos Santander Bernal
December 20, 2006
Not really an idea, but maybe you have 2 different gcc's installed & s.th. is mixed up
during build(?)
Good luck that the binaries work for you!
January 01, 2007
Carlos Santander escribió:
> I'm trying to compile GDC (one of the latest revisions, I'm not sure which one) on linux PPC, but I'm getting this:
> 
> checking If /home/carlos/dev/gdc-sf/build/gcc/gdc -B/home/carlos/dev/gdc-sf/build/gcc/ -B/usr/local/powerpc-unknown-linux-gnu/bin/ -B/usr/local/powerpc-unknown-linux-gnu/lib/ -isystem /usr/local/powerpc-unknown-linux-gnu/include -isystem /usr/local/powerpc-unknown-linux-gnu/sys-include can compile D sources... /home/carlos/dev/gdc-sf/build/gcc/cc1d: /home/carlos/dev/gdc-sf/build/gcc/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
> no
> configure: error: can't compile D sources!
> make: *** [configure-target-libphobos] Error 1
> 
> I'm using Kubuntu 6.10. The GCC sources are for version 4.0.3. The current GCC version is:
> 
> gcc version 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)
> 

--disable-shared was the solution. Thanks David!

http://d.puremagic.com/issues/show_bug.cgi?id=781

-- 
Carlos Santander Bernal