I'm trying to compile the GCC from source with module-TS support and I cloned to the devel branch (as stated here) :
git clone --branch devel/c++-modules git://gcc.gnu.org/git/gcc.git SRCDIR
Here's my configuration options :
./configure --disable-shared --disable-bootstrap --disable-libstdcxx-pch
--enable-languages=c,c++ --enable-libgomp --enable-lto --enable-threads=posix --enable-tls
--with-gmp=/tmp/gcc --with-mpfr=/tmp/gcc --with-mpc=/tmp/gcc --with-libelf=/tmp/gcc --with-fpmath=sse
And make
gave me the following errors:
/usr/bin/ld: /usr/local/lib/../lib64/libstdc++.a(compatibility.o): relocation R_X86_64_32
against symbol `_ZTIN10__cxxabiv115__forced_unwindE' can not be used when making a shared
object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
And similar errors for sso_string.o
, istream-inst.o
, etc.
What does that mean?
How can I recompile that with -fPIC
?
Do I need to patch the Makefiles?
Any help is appreciated.Thanks.