www.digitalmars.com         C & C++   DMDScript  

D.gnu - compiling on linux ppc

reply Carlos Santander <csantander619 gmail.com> writes:
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
Dec 16 2006
next sibling parent Marcel Unbehaun <frostworks gmx.de> writes:
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...)
Dec 17 2006
prev sibling next sibling parent reply Carlos Santander <csantander619 gmail.com> writes:
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
Dec 19 2006
parent frostwork <frostworks gmx.de> writes:
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!
Dec 20 2006
prev sibling parent Carlos Santander <csantander619 gmail.com> writes:
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
Jan 01 2007