0

我正在尝试使用模块 TS 支持从源代码编译 GCC,然后我克隆到了 devel 分支(如此所述):

git clone --branch devel/c++-modules git://gcc.gnu.org/git/gcc.git SRCDIR

这是我的配置选项:

./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

make给了我以下错误:

/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

和类似的错误sso_string.oistream-inst.o等。
这是什么意思?
我怎样才能重新编译它-fPIC

我需要修补 Makefile 吗?
任何帮助表示赞赏。谢谢。

4

0 回答 0