【问题标题】:Error installing GMP on cygwin "configure: error: could not find a working compiler, see config.log for details"在 cygwin 上安装 GMP 时出错“配置:错误:找不到工作的编译器,有关详细信息,请参阅 config.log”
【发布时间】:2015-08-31 10:16:11
【问题描述】:

在 cygwin 上为 Xtensa 构建裸机 GNU 交叉工具链时配置 GMP 时出现以下错误

配置:错误:找不到工作的编译器,请参阅 config.log 了解详细信息

使用 git clone git clone https://github.com/foss-xtensa/crosstool-NG.git 从站点 http://wiki.linux-xtensa.org/index.php/Crosstool-NG 下载的 crosstool-NG 执行构建

这会在下载 GCC 和相关包的同时下载 GMP-5.1.1。

  1. 构建环境-cygwin

  2. GMP 版本号 - GMP-5.1.1

  3. gcc -v 的输出

    $ gcc -v
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.9.3/lto-wrapper.exe
    Target: i686-pc-cygwin
    Configured with: /cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.i686/src/gcc-   4.9.3/configure --srcdir=/cygdrive/i/szsz/tmpp/gcc/gcc-4.9.3-1.i686/src/gcc-4.9.3 --prefix=/usr --exec-prefix=/usr --localstatedir=/var --sysconfdir=/etc --docdir=/usr/share/doc/gcc --htmldir=/usr/share/doc/gcc/html -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --libexecdir=/usr/lib --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --enable-__cxa_atexit --with-dwarf2 --with-arch=i686 --with-tune=generic --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-threads=posix --enable-libatomic --enable-libgomp --disable-libitm --enable-libquadmath --enable-libquadmath-support --enable-libssp --enable-libada --enable-libjava --enable-libgcj-sublibs --disable-java-awt --disable-symvers --with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as --with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix --without-libintl-prefix --with-system-zlib --enable-linker-build-id
    Thread model: posix
    gcc version 4.9.3 (GCC)
    
  4. 运行‘uname -a’的输出。

    $ uname -a
    CYGWIN_NT-6.1 si-hnhari 2.1.0(0.287/5/3) 2015-07-14 21:26 i686 Cygwin
    

附上config.log和build.log的输出。

如果您需要更多信息,请告诉我。

感谢和问候, 哈里

【问题讨论】:

  • 你的 CFLAGS 不正确
  • 为什么要尝试旧版本?日志文件附加在哪里?
  • 我尝试使用最新的 6.0.0a。同样的问题。 cygwin gcc 版本是 gcc 4.9.3。我无法在工作中上传文件。知道我应该使用哪个版本的 gcc 来构建 cygwin 吗?

标签: cygwin gmp


【解决方案1】:

我们刚刚在 crosstool-ng 上游获得支持:

https://github.com/crosstool-ng/crosstool-ng/pull/253

它现在在 git、master 分支中可用,或者在 11 月 20 日星期五即将发布的版本中:1.22.0

目前,只有 xtensa 支持 gcc-5.2.0。我不确定 Max 是否计划将其向后移植到 4.9.x。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-06
    • 1970-01-01
    • 2017-10-06
    • 2013-04-05
    相关资源
    最近更新 更多