gcc - 编译 GCC 5.3.0 时出现编译器错误(-Lyes/lib 和 -Iyes/include)

标签 gcc configure

尝试编译 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

最佳答案

听起来您没有正确运行“配置”。例如:

https://software.ecmwf.int/issues/browse/SUP-676

OK, I see a problem already, the "--with-jasper" option must point the to the prefix of the "jasper" installation, for example

$./configure --with-jasper=/usr/local/jasper --with-png-support.

Otherwise the value "yes" is set as prefix..

例如,如果您查看此处:

http://www.gnu.org/software/libc/manual/html_node/Configuring-and-compiling.html

您会看到类似‘--with-headers=directory’的标志要求您输入目录路径。我怀疑你的“-with-mpc”等也发生了同样的事情。

建议:清理构建目录,然后(小心!)重新运行 ./configure

关于gcc - 编译 GCC 5.3.0 时出现编译器错误(-Lyes/lib 和 -Iyes/include),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36928789/

相关文章:

c - 为什么这个程序一次又一次地不显示第一行?

c - 是 Unix 编译器太松懈了,还是 MSVC 2005 缺少一个技巧?

编译器看不到的常量

GCC降级问题

linux - 如何在 makefile 中运行 ./configure 脚本

php - [OSX][PHP 5.5.5] 忽略 --with-config-file-scan-dir

c - 警告 : case not evaluated in enumerated type?

c - ARM架构下调用函数的GCC返回地址

c - 为什么这个函数确实以偏移量 1 指向它自己?

c - 如何将新文件添加到现有的 makefile 项目