Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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.
–
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.