在天鹅座"configure: error: could not find a working compiler, see config.log for details"上安装 GMP 时出错



在cygwin上为Xtensa构建裸机GNU交叉工具链时,我在配置GMP时遇到了以下错误

configure: error: could not find a working compiler,详情见config.log

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

在下载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的输出。

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

谢谢哈里

我们刚刚得到了上游的支持:

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

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

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

相关内容

最新更新