www.digitalmars.com         C & C++   DMDScript  

D.gnu - compiling GDC, simple question

reply Lutger <lutger.blijdestijn gmail.com> writes:
I got stuck building gdc from svn during compilation of phobos, with this
error message:

Configuring in x86_64-unknown-linux-gnu/libphobos
/* blablabla */
checking
If
home/lutger/d/dgcc2/./gcc/gdc -B/home/lutger/d/dgcc2/./gcc/
-B/home/lutger/d/x86_64-unknown-linux-gnu/bin/
-B/home/lutger/d/x86_64-unknown-linux-gnu/lib/ -isystem
/home/lutger/d/x86_64-unknown-linux-gnu/include -isystem
/home/lutger/d/x86_64-unknown-linux-gnu/sys-include
can compile D
sources... /home/lutger/d/dgcc2/./gcc/cc1d:
/home/lutger/d/dgcc2/./gcc/libgcc_s.so.1:
version `GCC_4.2.0' not found (required by /usr/lib64/libstdc++.so.6)
configure: error: can't compile D sources!

I used the gcc 4.1.2 tarball, but on my system gcc 4.2.something is
installed, which it is picking up somehow. Should I replace gcc 4.2 with
4.1.2? Is there a way to fix this? 

More out of curiosity, why does it need libstdc++ when building phobos?

gdc is compiled o.k. btw,

Thanks.
Jun 27 2008
parent reply e-t172 <e-t172 akegroup.org> writes:
Lutger a écrit :
 version `GCC_4.2.0' not found (required by /usr/lib64/libstdc++.so.6)
 configure: error: can't compile D sources!
Call configure with --enable-static --disable-shared.
Jun 27 2008
parent Lutger <lutger.blijdestijn gmail.com> writes:
e-t172 wrote:

 --enable-static --disable-shared.
That worked, thanks a lot.
Jun 27 2008