我正在尝试在群集上编译gcc 4.7.3的本地版本。 配置:
./configure --prefix=$HOME/opt/gcc-4.7.3 --with-gmp=$HOME/opt/gmp --with-mpfr=$HOME/opt/mpfr --with-mpc=$HOME/opt/mpc --with-libelf=$HOME/opt/libelf
。/home/users/didymos/opt/gmp/lib/libgmp.a(pprime_p.o):(文本+ 0x448): 未定义的引用`__multi3'
。/home/users/didymos/opt/gmp/lib/libgmp.a(mod_1.o):(文本+ 0x158): 未定义的引用`__multi3'
。/home/users/didymos/opt/gmp/lib/libgmp.a(mod_1.o):(文本+ 0x1b8): 未定义的引用`__multi3'
。/home/users/didymos/opt/gmp/lib/libgmp.a(mod_1.o):(文本+ 0x358): 未定义的引用`__multi3'
。/home/users/didymos/opt/gmp/lib/libgmp.a(pre_mod_1.o):(文本+ 0x74): 未定义的引用`__multi3'
/home/users/didymos/opt/gmp/lib/libgmp.a(mod_1_1.o):(。text + 0x60):more 对__multi3'的未定义引用遵循
collect2:错误:ld返回1退出状态
make [8]: * [libjavamath.la]错误1
make [8]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/libjava/classpath/native/jni/java-math'
make [7]: * [all-recursive]错误1
make [7]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/libjava/classpath/native/jni'
make [6]: * [all-recursive]错误1
make [6]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/libjava/classpath/native'
make [5]: * [all-recursive]错误1
make [5]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/libjava/classpath'
make [4]: * [all-recursive]错误1
make [4]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/libjava'
make [3]: * [multi-do]错误1
make [3]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/libjava'
make [2]: * [all-multi]错误2
make [2]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/libjava'
make [1]: * [all-target-libjava]错误2
make [1]: * 等待未完成的工作......
libtool:link:ranlib .libs / libgfortran.a
libtool:link :( cd“.libs”&& rm -f“libgfortran.la”&& ln -s “../libgfortran.la”“libgfortran.la”)
make [6]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/nof/libgfortran'
make [5]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/32/nof/libgfortran'
make [4]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/libgfortran'
make [3]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/libgfortran'
make [2]:离开目录 `/home/users/didymos/opt/gcc-4.3.7-scratch/powerpc64-unknown-linux-gnu/libgfortran'
make [1]:离开目录`/home/users/didymos/opt/gcc-4.3.7-scratch'
make: * [all]错误2
有什么想法吗? 感谢
答案 0 :(得分:0)
你能检查libgmp依赖吗?如果libgmp依赖于库A,则很可能未定义的符号将在A中。
如果您从源手动编译了libgmp,可以在问题中添加configure命令吗?