compiling GDC, simple question

Lutger lutger.blijdestijn at gmail.com
Fri Jun 27 04:24:36 PDT 2008


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.


More information about the D.gnu mailing list