【发布时间】: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。
构建环境-cygwin
GMP 版本号 - GMP-5.1.1
-
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) -
运行‘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 吗?