【发布时间】:2016-04-29 22:08:48
【问题描述】:
在尝试编译 GNU GCC 5.3.0 时,我在尝试构建 libjavamath.la 时遇到以下错误。
/bin/bash ../../../libtool --tag=CC --mode=link /home/borish/Downloads/gcc-build/./gcc/xgcc -B/home/borish/Downloads/gcc-build/./gcc/ -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -isystem /usr/local/x86_64-unknown-linux-gnu/sys-include -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Iyes/include -g -O2 -module -version-info 0:0:0 -no-undefined -Lyes/lib -lgmp -avoid-version -o libjavamath.la -rpath /usr/local/lib/../lib64/gcj-5.3.0-16 gnu_java_math_GMP.lo ../../../native/jni/classpath/jcl.lo
../../../libtool: line 5209: cd: yes/lib: No such file or directory
libtool: link: cannot determine absolute directory name of `yes/lib'
Makefile:403: recipe for target 'libjavamath.la' failed
这是在安装了 GCC 4.9.2-10 的 Debian 8.4 系统上。我相信我已经满足了所有prerequisites 和Google wasn't been much help。
有什么想法吗?
更新:
我使用以下内容运行配置脚本:
../gcc-5.3.0/configure --disable-multilib --with-mpc --with-isl --with-mpfr --with-gmp
【问题讨论】:
-
-Lyes/lib对我来说看起来很奇怪。显然,问题的关键在于libtool文件。yes/lib来自哪里?此外,configure命令的外观也很有趣。 -
@RuslanOsmanov 它在多个 Makefile 中被引用,并且通常与
libgmp相关联。 -
我再次尝试不使用所有
--with-XXX开关,只包括--disable-multilib并看看会发生什么。