【问题】
之前已经折腾了足够长时间了:
现象继续研究其原因。
【解决过程】
1.后来想到,貌似可以想办法,去给libtool在configure期间,传递进去-v参数,使得可以输出verbose的信息。
使得在
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\config.log
中的具体错误的位置:
configure:3536: checking whether the C compiler works configure:3558: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib conftest.c >&5 /usr/lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory configure:3562: $? = 1
时,可以显示详细信息,由此,或许可以找到错误根本原因。
比如有可能是找到具体是缺少了某些库,或者是某些库不能用,或者是路径错误等等。
2.此处,先验证,手动去运行对应的命令,也是同样错误:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $ cd /home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10/ CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ rm -rf config.cache CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop ## -------------------------- ## ## Configuring libtool 2.2.10 ## ## -------------------------- ## checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether subdir libobjs are useable... yes checking for gcc... /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc checking whether the C compiler works... no configure: error: in `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10': configure: error: C compiler cannot create executables See `config.log' for more details.
3.再去想办法,如何传入类似-v的参数,如何显示详细信息。
先看看./configure –help的信息:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ ./configure --help `configure' configures libtool 2.2.10 to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print `checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for `--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or `..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [/usr/local] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, `make install' will install all the files in `/usr/local/bin', `/usr/local/lib' etc. You can specify an installation prefix other than `/usr/local' using `--prefix', for instance `--prefix=$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/libtool] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-ltdl-install do not install libltdl --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-ltdl-install install libltdl Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir> LIBS libraries to pass to the linker, e.g. -l<library> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir> CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags CXXCPP C++ preprocessor F77 Fortran 77 compiler command FFLAGS Fortran 77 compiler flags FC Fortran compiler command FCFLAGS Fortran compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to <bug-libtool@gnu.org>. CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
貌似没有类似-v的参数。
4.然后再去找找,对于config.log中输出的:
configure:3558: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib conftest.c >&5
所对应的是哪些configure的代码产生此处的内容的,然后尝试给:
此处的CC,即:
/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc
去加上对应的-v,以使得可以输出详细信息。
结果是对于:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\configure
中相关的代码:
if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; };
无从下手。
所以,算了,还是直接给CC的值,去加上-v,看看是否可行吧。
5.然后看到了之前上面的输出:
configure:3558: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib conftest.c >&5
中的一些额外参数,比如:
-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include
其对应的变量CFLAGS(或CXXFLAGS)传递进入的。所以此处,可以去修改CFLAGS,把-v传递进去。
(注意到此处实际上有两个CFLAGS,但值是一样的,所以索性两个一起改)
改为:
PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no
然后去运行试试:
错误肯定是一样的:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop ## -------------------------- ## ## Configuring libtool 2.2.10 ## ## -------------------------- ## checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether subdir libobjs are useable... yes checking for gcc... /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc checking whether the C compiler works... no configure: error: in `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10': configure: error: C compiler cannot create executables See `config.log' for more details.
然后去看对应的config.log,看看是否有详细信息输出:
果然是有详细信息的:
configure:3536: checking whether the C compiler works configure:3558: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib conftest.c >&5 Using built-in specs. COLLECT_GCC=/bin/gcc COLLECT_LTO_WRAPPER=/bin/../lib/gcc/i686-pc-cygwin/4.7.3/lto-wrapper.exe Target: i686-pc-cygwin Configured with: /cygdrive/i/szsz/git/cygwin-ports-gcc/gcc-4.7.3-1/src/gcc-4.7.3/configure --srcdir=/cygdrive/i/szsz/git/cygwin-ports-gcc/gcc-4.7.3-1/src/gcc-4.7.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__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-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-ppl --with-system-zlib : (reconfigured) /cygdrive/i/szsz/git/cygwin-ports-gcc/gcc-4.7.3-1/src/gcc-4.7.3/configure --srcdir=/cygdrive/i/szsz/git/cygwin-ports-gcc/gcc-4.7.3-1/src/gcc-4.7.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc -C --build=i686-pc-cygwin --host=i686-pc-cygwin --target=i686-pc-cygwin --without-libiconv-prefix --without-libintl-prefix --enable-shared --enable-shared-libgcc --enable-static --enable-version-specific-runtime-libs --enable-bootstrap --disable-__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-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-ppl --with-system-zlib Thread model: posix gcc version 4.7.3 (GCC) COLLECT_GCC_OPTIONS='-v' '-O2' '-I' '/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include' '-I' '/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include' '-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib' '-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib' '-mtune=generic' '-march=i686' /bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -quiet -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s /usr/lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory configure:3562: $? = 1 configure:3600: result: no
然后就可以去分析,为何出错了。
6.此处是直接运行:
/bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -quiet -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s
而出错的:
/usr/lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory |
然后去用:
/bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe –help
去看看当前所支持的功能和参数:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ /bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe --help The following options are specific to just the language Ada: None found. Use --help=Ada to show *all* the options supported by the Ada front-end The following options are specific to just the language AdaWhy: None found. Use --help=AdaWhy to show *all* the options supported by the AdaWhy front-end The following options are specific to just the language C: None found. Use --help=C to show *all* the options supported by the C front-end The following options are specific to just the language C++: None found. Use --help=C++ to show *all* the options supported by the C++ front-end The following options are specific to just the language Fortran: -J<directory> -Waliasing -Walign-commons -Wampersand -Warray-temporaries -Wcharacter-truncation -Wconversion-extra -Wfunction-elimination -Wimplicit-interface -Wimplicit-procedure -Wintrinsic-shadow -Wintrinsics-std -Wline-truncation -Wreal-q-constant -Wsurprising -Wtabs -Wunderflow -Wunused-dummy-argument -cpp -faggressive-function-elimination -falign-commons -fall-intrinsics -fautomatic -fbackslash -fbacktrace -fblas-matmul-limit=<n> -fcheck-array-temporaries -fcheck=[...] -fcoarray=[...] -fconvert=big-endian -fconvert=little-endian -fconvert=native -fconvert=swap -fcray-pointer -fd-lines-as-code -fd-lines-as-comments -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8 -fdollar-ok -fdump-core -fdump-fortran-optimized -fdump-fortran-original -fdump-parse-tree -fexternal-blas -ff2c -ffixed-form -ffixed-line-length-<n> -ffixed-line-length-none -ffpe-trap=[...] -ffree-form -ffree-line-length-<n> -ffree-line-length-none -ffrontend-optimize -fimplicit-none -finit-character=<n> -finit-integer=<n> -finit-local-zero -finit-logical=<true|false> -finit-real=<zero|nan|inf|-inf> -finteger-4-integer-8 -fintrinsic-modules-path -fmax-array-constructor=<n> -fmax-identifier-length=<n> -fmax-stack-var-size=<n> -fmax-subrecord-length=<n> -fmodule-private -fpack-derived -fprotect-parens -frange-check -freal-4-real-10 -freal-4-real-16 -freal-4-real-8 -freal-8-real-10 -freal-8-real-16 -freal-8-real-4 -frealloc-lhs -frecord-marker=4 -frecord-marker=8 -frecursive -frepack-arrays -fsecond-underscore -fsign-zero -fstack-arrays -funderscoring -fwhole-file -nocpp -static-libgfortran -std=f2003 -std=f2008 -std=f2008ts -std=f95 -std=gnu -std=legacy The following options are specific to just the language Go: -fgo-check-divide-overflow [enabled] -fgo-check-divide-zero [enabled] -fgo-dump-<type> -fgo-optimize-<type> -fgo-pkgpath=<string> -fgo-prefix=<string> -fgo-relative-import-path= -frequire-return-statement [enabled] The following options are specific to just the language Java: -Wextraneous-semicolon [disabled] -Wout-of-date [enabled] -Wredundant-modifiers [disabled] -Wunused [disabled] -Wunused-label [enabled] --CLASSPATH -fassert [enabled] --bootclasspath=<path> -fbootstrap-classes [disabled] -fcheck-references [disabled] --classpath=<path> -femit-class-file [disabled] -femit-class-files [disabled] --encoding=<encoding> --extdirs=<path> -ffilelist-file [disabled] -fforce-classes-archive-check [disabled] -fhash-synchronization [disabled] -findirect-classes [enabled] -findirect-dispatch [disabled] -finline-functions [disabled] -fjni [disabled] -foptimize-static-class-initialization [disabled] -freduced-reflection [disabled] -fsource= -fstore-check [enabled] -ftarget= -fuse-atomic-builtins [disabled] -fuse-boehm-gc [disabled] -fuse-divide-subroutine [enabled] -version [disabled] The following options are specific to just the language LTO: -fltrans [disabled] -fltrans-output-list= -fresolution= -fwpa [disabled] The following options are specific to just the language ObjC: None found. Use --help=ObjC to show *all* the options supported by the ObjC front-end The following options are specific to just the language ObjC++: -fobjc-call-cxx-cdtors [disabled] The following options are language-related: -A<question>=<answer> -C -CC -D<macro>[=<val>] -F <dir> -H -I <dir> -M -MD -MF <file> -MG -MM -MMD -MP -MQ <target> -MT <target> -P -U<macro> -Wabi [disabled] -Waddress [disabled] -Wall -Wassign-intercept [disabled] -Wbad-function-cast [disabled] -Wbuiltin-macro-redefined -Wc++-compat [disabled] -Wc++0x-compat [disabled] -Wc++11-compat -Wcast-qual [disabled] -Wchar-subscripts [disabled] -Wclobbered [enabled] -Wcomment -Wcomments -Wconversion [disabled] -Wconversion-null [enabled] -Wctor-dtor-privacy [disabled] -Wdeclaration-after-statement [disabled] -Wdelete-non-virtual-dtor [disabled] -Wdeprecated [enabled] -Wdiv-by-zero [enabled] -Wdouble-promotion [disabled] -Weffc++ [disabled] -Wempty-body [enabled] -Wendif-labels -Wenum-compare [enabled] -Werror [disabled] -Werror-implicit-function-declaration -Wfloat-equal [disabled] -Wformat -Wformat-contains-nul [disabled] -Wformat-extra-args [disabled] -Wformat-nonliteral [disabled] -Wformat-security [disabled] -Wformat-y2k [disabled] -Wformat-zero-length [disabled] -Wignored-qualifiers [enabled] -Wimplicit [enabled] -Wimplicit-function-declaration [enabled] -Wimplicit-int [enabled] -Winit-self [disabled] -Wint-to-pointer-cast [enabled] -Winvalid-offsetof [enabled] -Winvalid-pch -Wjump-misses-init [enabled] -Wlogical-op [disabled] -Wlong-long [enabled] -Wmain [enabled] -Wmissing-braces [disabled] -Wmissing-declarations [disabled] -Wmissing-field-initializers [enabled] -Wmissing-format-attribute [disabled] -Wmissing-include-dirs -Wmissing-parameter-type [enabled] -Wmissing-prototypes [disabled] -Wmudflap [enabled] -Wmultichar -Wnarrowing [enabled] -Wnested-externs [disabled] -Wnoexcept [disabled] -Wnon-template-friend [enabled] -Wnon-virtual-dtor [disabled] -Wnonnull [disabled] -Wnormalized=<id|nfc|nfkc> -Wold-style-cast [disabled] -Wold-style-declaration [enabled] -Wold-style-definition [disabled] -Woverlength-strings [enabled] -Woverloaded-virtual [disabled] -Woverride-init [enabled] -Wpacked-bitfield-compat [enabled] -Wparentheses [disabled] -Wpmf-conversions [enabled] -Wpointer-arith [disabled] -Wpointer-sign [enabled] -Wpointer-to-int-cast [enabled] -Wpragmas [enabled] -Wproperty-assign-default [enabled] -Wprotocol [enabled] -Wredundant-decls [disabled] -Wreorder [disabled] -Wreturn-type [disabled] -Wselector [disabled] -Wsequence-point [disabled] -Wsign-compare [enabled] -Wsign-conversion [enabled] -Wsign-promo [disabled] -Wstrict-null-sentinel [disabled] -Wstrict-prototypes [disabled] -Wstrict-selector-match [disabled] -Wsync-nand [enabled] -Wsynth [disabled] -Wsystem-headers [disabled] -Wtraditional [disabled] -Wtraditional-conversion [disabled] -Wtrigraphs -Wundeclared-selector [disabled] -Wundef -Wunknown-pragmas -Wunsuffixed-float-constants [disabled] -Wunused-local-typedefs [disabled] -Wunused-macros -Wunused-result [enabled] -Wvariadic-macros -Wvla [enabled] -Wvolatile-register-var [disabled] -Wwrite-strings [disabled] -Wzero-as-null-pointer-constant [disabled] -ansi -d<letters> -fRTS= -faccess-control [enabled] -fallow-parameterless-variadic-functions [disabled] -falt-external-templates -fasm [enabled] -fbuiltin [enabled] -fcheck-new [disabled] -fcond-mismatch -fconserve-space [disabled] -fconst-string-class=<name> -fconstexpr-depth=<number> 0x200 -fdebug-cpp -fdeduce-init-list [disabled] -fdefault-inline -fdirectives-only -fdollars-in-identifiers -femit-struct-debug-baseonly -femit-struct-debug-detailed=<spec-list> -femit-struct-debug-reduced -fenforce-eh-specs [enabled] -fexec-charset=<cset> -fextended-identifiers -ffor-scope [enabled] -ffreestanding -ffriend-injection [disabled] -fgnu-keywords [enabled] -fgnu-runtime [enabled] -fgnu89-inline [enabled] -fhosted -fhuge-objects -fimplement-inlines [enabled] -fimplicit-inline-templates [enabled] -fimplicit-templates [enabled] -finput-charset=<cset> -fkeep-inline-dllexport [enabled] -flax-vector-conversions [disabled] -fms-extensions [disabled] -fmudflap [disabled] -fmudflapir [disabled] -fmudflapth [disabled] -fnext-runtime [disabled] -fnil-receivers [enabled] -fnothrow-opt [disabled] -fobjc-abi-version= 0 -fobjc-direct-dispatch [disabled] -fobjc-exceptions [disabled] -fobjc-gc [disabled] -fobjc-nilcheck [disabled] -fobjc-sjlj-exceptions [enabled] -fobjc-std=objc1 [disabled] -fopenmp [disabled] -foperator-names -foptional-diags -fpch-preprocess -fpermissive -fplan9-extensions [disabled] -fpreprocessed -fpretty-templates [enabled] -freplace-objc-classes [disabled] -frepo -frtti [enabled] -fshort-double [disabled] -fshort-enums [enabled] -fshort-wchar [disabled] -fsigned-bitfields [enabled] -fsigned-char [enabled] -fstats [disabled] -fstrict-enums [disabled] -ftabstop=<number> -ftemplate-depth=<number> -fno-threadsafe-statics [enabled] -ftrack-macro-expansion= -funsigned-bitfields [disabled] -funsigned-char [disabled] -fuse-cxa-atexit [disabled] -fuse-cxa-get-exception-ptr [enabled] -fvisibility-inlines-hidden -fvisibility-ms-compat [disabled] -fvtable-gc -fvtable-thunks -fweak [enabled] -fwide-exec-charset=<cset> -fworking-directory [enabled] -fxref -fzero-link [disabled] -gen-decls [disabled] -gnat<options> -gnatO -idirafter <dir> -imacros <file> -imultilib <dir> -include <file> -iprefix <path> -iquote <dir> -isysroot <dir> -isystem <dir> -iwithprefix <dir> -iwithprefixbefore <dir> -nostdinc -nostdinc++ -nostdlib -o <file> -pedantic [disabled] -pedantic-errors [disabled] -print-objc-runtime-info -remap -std=c++03 -std=c++0x -std=c++11 -std=c++98 -std=c11 -std=c1x -std=c89 -std=c90 -std=c99 -std=c9x -std=gnu++03 -std=gnu++0x -std=gnu++11 -std=gnu++98 -std=gnu11 -std=gnu1x -std=gnu89 -std=gnu90 -std=gnu99 -std=gnu9x -std=iso9899:1990 -std=iso9899:199409 -std=iso9899:1999 -std=iso9899:199x -std=iso9899:2011 -traditional-cpp -trigraphs -undef [disabled] -v [disabled] -w [disabled] The --param option recognizes the following as parameters: predictable-branch-outcome Maximal estimated outcome of branch considered predictable max-inline-insns-single The maximum number of instructions in a single function eligible for inlining max-inline-insns-auto The maximum number of instructions when automatically inlining max-inline-insns-recursive The maximum number of instructions inline function can grow to via recursive inlining max-inline-insns-recursive-auto The maximum number of instructions non-inline function can grow to via recursive inlining max-inline-recursive-depth The maximum depth of recursive inlining for inline functions max-inline-recursive-depth-auto The maximum depth of recursive inlining for non-inline functions min-inline-recursive-probability Inline recursively only when the probability of call being executed exceeds the parameter max-early-inliner-iterations The maximum number of nested indirect inlining performed by early inliner comdat-sharing-probability Probability that COMDAT function will be shared with different compilation unit partial-inlining-entry-probability Maximum probability of the entry BB of split region (in percent relative to entry BB of the function) to make partial inlining happen max-variable-expansions-in-unroller If -fvariable-expansion-in-unroller is used, the maximum number of times that an individual variable will be expanded during loop unrolling min-vect-loop-bound If -ftree-vectorize is used, the minimal loop bound of a loop to be considered for vectorization max-delay-slot-insn-search The maximum number of instructions to consider to fill a delay slot max-delay-slot-live-search The maximum number of instructions to consider to find accurate live register information max-pending-list-length The maximum length of scheduling's pending operations list max-modulo-backtrack-attempts The maximum number of backtrack attempts the scheduler should make when modulo scheduling a loop large-function-insns The size of function body to be considered large large-function-growth Maximal growth due to inlining of large function (in percent) large-unit-insns The size of translation unit to be considered large inline-unit-growth How much can given compilation unit grow because of the inlining (in percent) ipcp-unit-growth How much can given compilation unit grow because of the interprocedural constant propagation (in percent) early-inlining-insns Maximal estimated growth of function body caused by early inlining of single call large-stack-frame The size of stack frame to be considered large large-stack-frame-growth Maximal stack frame growth due to inlining (in percent) max-gcse-memory The maximum amount of memory to be allocated by GCSE max-gcse-insertion-ratio The maximum ratio of insertions to deletions of expressions in GCSE gcse-after-reload-partial-fraction The threshold ratio for performing partial redundancy elimination after reload gcse-after-reload-critical-fraction The threshold ratio of critical edges execution count that permit performing redundancy elimination after reload gcse-cost-distance-ratio Scaling factor in calculation of maximum distance an expression can be moved by GCSE optimizations gcse-unrestricted-cost Cost at which GCSE optimizations will not constraint the distance an expression can travel max-hoist-depth Maximum depth of search in the dominator tree for expressions to hoist max-unrolled-insns The maximum number of instructions to consider to unroll in a loop max-average-unrolled-insns The maximum number of instructions to consider to unroll in a loop on average max-unroll-times The maximum number of unrollings of a single loop max-peeled-insns The maximum number of insns of a peeled loop max-peel-times The maximum number of peelings of a single loop max-completely-peeled-insns The maximum number of insns of a completely peeled loop max-completely-peel-times The maximum number of peelings of a single loop that is peeled completely max-once-peeled-insns The maximum number of insns of a peeled loop that rolls only once max-completely-peel-loop-nest-depth The maximum depth of a loop nest we completely peel max-unswitch-insns The maximum number of insns of an unswitched loop max-unswitch-level The maximum number of unswitchings in a single loop max-iterations-to-track Bound on the number of iterations the brute force # of iterations analysis algorithm evaluates max-iterations-computation-cost Bound on the cost of an expression to compute the number of iterations sms-max-ii-factor A factor for tuning the upper bound that swing modulo scheduler uses for scheduling a loop sms-min-sc The minimum value of stage count that swing modulo scheduler will generate. sms-dfa-history The number of cycles the swing modulo scheduler considers when checking conflicts using DFA sms-loop-average-count-threshold A threshold on the average loop count considered by the swing modulo scheduler hot-bb-count-fraction Select fraction of the maximal count of repetitions of basic block in program given basic block needs to have to be considered hot hot-bb-frequency-fraction Select fraction of the maximal frequency of executions of basic block in function given basic block needs to have to be considered hot align-threshold Select fraction of the maximal frequency of executions of basic block in function given basic block get alignment align-loop-iterations Loops iterating at least selected number of iterations will get loop alignement. max-predicted-iterations The maximum number of loop iterations we predict statically tracer-dynamic-coverage-feedback The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is available tracer-dynamic-coverage The percentage of function, weighted by execution frequency, that must be covered by trace formation. Used when profile feedback is not available tracer-max-code-growth Maximal code growth caused by tail duplication (in percent) tracer-min-branch-ratio Stop reverse growth if the reverse probability of best edge is less than this threshold (in percent) tracer-min-branch-probability-feedback Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is available tracer-min-branch-probability Stop forward growth if the probability of best edge is less than this threshold (in percent). Used when profile feedback is not available max-crossjump-edges The maximum number of incoming edges to consider for crossjumping min-crossjump-insns The minimum number of matching instructions to consider for crossjumping max-grow-copy-bb-insns The maximum expansion factor when copying basic blocks max-goto-duplication-insns The maximum number of insns to duplicate when unfactoring computed gotos max-cse-path-length The maximum length of path considered in cse max-cse-insns The maximum instructions CSE process before flushing lim-expensive The minimum cost of an expensive expression in the loop invariant motion iv-consider-all-candidates-bound Bound on number of candidates below that all candidates are considered in iv optimizations iv-max-considered-uses Bound on number of iv uses in loop optimized in iv optimizations iv-always-prune-cand-set-bound If number of candidates in the set is smaller, we always try to remove unused ivs during its optimization scev-max-expr-size Bound on size of expressions used in the scalar evolutions analyzer scev-max-expr-complexity Bound on the complexity of the expressions in the scalar evolutions analyzer omega-max-vars Bound on the number of variables in Omega constraint systems omega-max-geqs Bound on the number of inequalities in Omega constraint systems omega-max-eqs Bound on the number of equalities in Omega constraint systems omega-max-wild-cards Bound on the number of wild cards in Omega constraint systems omega-hash-table-size Bound on the size of the hash table in Omega constraint systems omega-max-keys Bound on the number of keys in Omega constraint systems omega-eliminate-redundant-constraints When set to 1, use expensive methods to eliminate all redundant constraints vect-max-version-for-alignment-checks Bound on number of runtime checks inserted by the vectorizer's loop versioning for alignment check vect-max-version-for-alias-checks Bound on number of runtime checks inserted by the vectorizer's loop versioning for alias check max-cselib-memory-locations The maximum memory locations recorded by cselib ggc-min-expand Minimum heap expansion to trigger garbage collection, as a percentage of the total size of the heap ggc-min-heapsize Minimum heap size before we start collecting garbage, in kilobytes max-reload-search-insns The maximum number of instructions to search backward when looking for equivalent reload sink-frequency-threshold Target block's relative execution frequency (as a percentage) required to sink a statement max-sched-region-blocks The maximum number of blocks in a region to be considered for interblock scheduling max-sched-region-insns The maximum number of insns in a region to be considered for interblock scheduling max-pipeline-region-blocks The maximum number of blocks in a region to be considered for interblock scheduling max-pipeline-region-insns The maximum number of insns in a region to be considered for interblock scheduling min-spec-prob The minimum probability of reaching a source block for interblock speculative scheduling max-sched-extend-regions-iters The maximum number of iterations through CFG to extend regions max-sched-insn-conflict-delay The maximum conflict delay for an insn to be considered for speculative motion sched-spec-prob-cutoff The minimal probability of speculation success (in percents), so that speculative insn will be scheduled. selsched-max-lookahead The maximum size of the lookahead window of selective scheduling selsched-max-sched-times Maximum number of times that an insn could be scheduled selsched-insns-to-rename Maximum number of instructions in the ready list that are considered eligible for renaming sched-mem-true-dep-cost Minimal distance between possibly conflicting store and load max-last-value-rtl The maximum number of RTL nodes that can be recorded as combiner's last value integer-share-limit The upper bound for sharing integer constants min-virtual-mappings Minimum number of virtual mappings to consider switching to full virtual renames virtual-mappings-ratio Ratio between virtual mappings and virtual symbols to do full virtual renames ssp-buffer-size The lower bound for a buffer to be considered for stack smashing protection max-jump-thread-duplication-stmts Maximum number of statements allowed in a block that needs to be duplicated when threading jumps max-fields-for-field-sensitive Maximum number of fields in a structure before pointer analysis treats the structure as a single variable max-sched-ready-insns The maximum number of instructions ready to be issued to be considered by the scheduler during the first scheduling pass max-dse-active-local-stores Maximum number of active local stores in RTL dead store elimination prefetch-latency The number of insns executed before prefetch is completed simultaneous-prefetches The number of prefetches that can run at the same time l1-cache-size The size of L1 cache l1-cache-line-size The size of L1 cache line l2-cache-size The size of L2 cache use-canonical-types Whether to use canonical types max-partial-antic-length Maximum length of partial antic set when performing tree pre optimization sccvn-max-scc-size Maximum size of a SCC before SCCVN stops processing a function ira-max-loops-num Max loops number for regional RA ira-max-conflict-table-size Max size of conflict table in MB ira-loop-reserved-regs The number of registers in each class kept unused by loop invariant motion switch-conversion-max-branch-ratio The maximum ratio between array size and switch branches for a switch conversion to take place loop-block-tile-size size of tiles for loop blocking graphite-max-nb-scop-params maximum number of parameters in a SCoP graphite-max-bbs-per-function maximum number of basic blocks per function to be analyzed by Graphite loop-max-datarefs-for-datadeps Maximum number of datarefs in loop for building loop data dependencies loop-invariant-max-bbs-in-loop Max basic blocks number in loop for loop invariant motion slp-max-insns-in-bb Maximum number of instructions in basic block to be considered for SLP vectorization min-insn-to-prefetch-ratio Min. ratio of insns to prefetches to enable prefetching for a loop with an unknown trip count prefetch-min-insn-to-mem-ratio Min. ratio of insns to mem ops to enable prefetching in a loop max-vartrack-size Max. size of var tracking hash tables max-vartrack-expr-depth Max. recursion depth for expanding var tracking expressions min-nondebug-insn-uid The minimum UID to be used for a nondebug insn ipa-sra-ptr-growth-factor Maximum allowed growth of size of new parameters ipa-sra replaces a pointer to an aggregate with tm-max-aggregate-size Size in bytes after which thread-local aggregates should be instrumented with the logging functions instead of save/restore pairs ipa-cp-value-list-size Maximum size of a list of values associated with each parameter for interprocedural constant propagation ipa-cp-eval-threshold Threshold ipa-cp opportunity evaluation that is still considered beneficial to clone. lto-partitions Number of partitions the program should be split to lto-min-partition Minimal size of a partition for LTO (in estimated instructions) cxx-max-namespaces-for-diagnostic-help Maximum number of namespaces to search for alternatives when name lookup fails max-stores-to-sink Maximum number of conditional store pairs that can be sunk case-values-threshold The smallest number of different values for which it is best to use a jump-table instead of a tree of conditional branches, if 0, use the default for the machine allow-load-data-races Allow new data races on loads to be introduced allow-store-data-races Allow new data races on stores to be introduced allow-packed-load-data-races Allow new data races on packed data loads to be introduced allow-packed-store-data-races Allow new data races on packed data stores to be introduced tree-reassoc-width Set the maximum number of instructions executed in parallel in reassociated tree. If 0, use the target dependent heuristic. max-tail-merge-comparisons Maximum amount of similar bbs to compare a bb with max-tail-merge-iterations Maximum amount of iterations of the pass over a function max-tracked-strlens Maximum number of strings for which strlen optimization pass will track string lengths The following options control compiler warning messages: -W -Waggregate-return [disabled] -Warray-bounds [disabled] -Wattributes [enabled] -Wcast-align [disabled] -Wcoverage-mismatch [enabled] -Wcpp [enabled] -Wdeprecated-declarations [enabled] -Wdisabled-optimization [disabled] -Wextra [disabled] -Wfree-nonheap-object [enabled] -Winline [disabled] -Winvalid-memory-model [enabled] -Wlarger-than=<number> -Wmaybe-uninitialized [disabled] -Wmissing-noreturn [disabled] -Woverflow [enabled] -Wpacked [disabled] -Wpadded [disabled] -Wshadow [disabled] -Wstack-protector [disabled] -Wstack-usage= 0xffffffff -Wstrict-aliasing -Wstrict-aliasing= 0xffffffff -Wstrict-overflow -Wstrict-overflow= 0xffffffff -Wsuggest-attribute=const [disabled] -Wsuggest-attribute=noreturn [disabled] -Wsuggest-attribute=pure [disabled] -Wswitch [disabled] -Wswitch-default [disabled] -Wswitch-enum [disabled] -Wtrampolines [disabled] -Wtype-limits [enabled] -Wuninitialized [enabled] -Wunsafe-loop-optimizations [disabled] -Wunused-but-set-parameter [enabled] -Wunused-but-set-variable [enabled] -Wunused-function [enabled] -Wunused-parameter [enabled] -Wunused-value [enabled] -Wunused-variable [enabled] -Wvector-operation-performance [disabled] The following options control optimizations: -O<number> -Ofast -Os -falign-functions [disabled] -falign-jumps [disabled] -falign-labels [disabled] -falign-loops [disabled] -fasynchronous-unwind-tables [enabled] -fbranch-count-reg [enabled] -fbranch-probabilities [disabled] -fbranch-target-load-optimize [disabled] -fbranch-target-load-optimize2 [disabled] -fbtr-bb-exclusive [disabled] -fcaller-saves [disabled] -fcombine-stack-adjustments [disabled] -fcommon [enabled] -fcompare-elim [disabled] -fconserve-stack [disabled] -fcprop-registers [disabled] -fcrossjumping [disabled] -fcse-follow-jumps [disabled] -fcx-fortran-rules [disabled] -fcx-limited-range [disabled] -fdata-sections [disabled] -fdce [enabled] -fdefer-pop [disabled] -fdelayed-branch [disabled] -fdelete-null-pointer-checks [enabled] -fdevirtualize [disabled] -fdse [enabled] -fearly-inlining [enabled] -fexceptions [disabled] -fexpensive-optimizations [disabled] -ffinite-math-only [disabled] -ffloat-store [disabled] -fforward-propagate [disabled] -fgcse [disabled] -fgcse-after-reload [disabled] -fgcse-las [disabled] -fgcse-lm [enabled] -fgcse-sm [disabled] -fgraphite-identity [disabled] -fguess-branch-probability [disabled] -fif-conversion [disabled] -fif-conversion2 [disabled] -finline-atomics [enabled] -finline-functions-called-once [disabled] -finline-small-functions [disabled] -fipa-cp [disabled] -fipa-cp-clone [disabled] -fipa-matrix-reorg [disabled] -fipa-profile [disabled] -fipa-pta [disabled] -fipa-pure-const [disabled] -fipa-reference [disabled] -fipa-sra [disabled] -fivopts [enabled] -fjump-tables [enabled] -floop-block [disabled] -floop-flatten [disabled] -floop-interchange [disabled] -floop-parallelize-all [disabled] -floop-strip-mine [disabled] -fmath-errno [enabled] -fmerge-all-constants [disabled] -fmerge-constants [disabled] -fmodulo-sched [disabled] -fmove-loop-invariants [enabled] -fnon-call-exceptions [disabled] -fomit-frame-pointer [disabled] -foptimize-register-move [disabled] -foptimize-sibling-calls [disabled] -foptimize-strlen [disabled] -fpack-struct [disabled] -fpack-struct=<number> -fpeel-loops [disabled] -fpeephole [enabled] -fpeephole2 [disabled] -fpredictive-commoning [disabled] -fprefetch-loop-arrays [enabled] -freg-struct-return [disabled] -fregmove [disabled] -frename-registers [enabled] -freorder-blocks [disabled] -freorder-blocks-and-partition [disabled] -freorder-functions [disabled] -frerun-cse-after-loop [disabled] -freschedule-modulo-scheduled-loops [disabled] -frounding-math [disabled] -fsched-critical-path-heuristic [enabled] -fsched-dep-count-heuristic [enabled] -fsched-group-heuristic [enabled] -fsched-interblock [enabled] -fsched-last-insn-heuristic [enabled] -fsched-pressure [disabled] -fsched-rank-heuristic [enabled] -fsched-spec [enabled] -fsched-spec-insn-heuristic [enabled] -fsched-spec-load [disabled] -fsched-spec-load-dangerous [disabled] -fsched-stalled-insns [disabled] -fsched-stalled-insns-dep [enabled] -fsched2-use-superblocks [disabled] -fschedule-insns [disabled] -fschedule-insns2 [disabled] -fsection-anchors [disabled] -fsel-sched-pipelining [disabled] -fsel-sched-pipelining-outer-loops [disabled] -fsel-sched-reschedule-pipelined [disabled] -fselective-scheduling [disabled] -fselective-scheduling2 [disabled] -fset-stack-executable [enabled] -fshrink-wrap [disabled] -fsignaling-nans [disabled] -fsigned-zeros [enabled] -fsingle-precision-constant [disabled] -fsplit-ivs-in-unroller [enabled] -fsplit-wide-types [disabled] -fstrict-aliasing [disabled] -fthread-jumps [disabled] -ftoplevel-reorder [enabled] -ftrapping-math [enabled] -ftrapv [disabled] -ftree-bit-ccp [disabled] -ftree-builtin-call-dce [disabled] -ftree-ccp [disabled] -ftree-ch [disabled] -ftree-copy-prop [disabled] -ftree-copyrename [disabled] -ftree-cselim [enabled] -ftree-dce [disabled] -ftree-dominator-opts [disabled] -ftree-dse [disabled] -ftree-forwprop [enabled] -ftree-fre [disabled] -ftree-loop-distribute-patterns [disabled] -ftree-loop-distribution [disabled] -ftree-loop-if-convert [enabled] -ftree-loop-if-convert-stores [disabled] -ftree-loop-im [enabled] -ftree-loop-ivcanon [enabled] -ftree-loop-optimize [enabled] -ftree-lrs [disabled] -ftree-phiprop [enabled] -ftree-pre [disabled] -ftree-pta [enabled] -ftree-reassoc [enabled] -ftree-scev-cprop [enabled] -ftree-sink [disabled] -ftree-slp-vectorize [enabled] -ftree-sra [disabled] -ftree-switch-conversion [disabled] -ftree-tail-merge [disabled] -ftree-ter [disabled] -ftree-vect-loop-version [enabled] -ftree-vectorize [disabled] -ftree-vrp [disabled] -funit-at-a-time [enabled] -funroll-all-loops [disabled] -funroll-loops [disabled] -funsafe-loop-optimizations [disabled] -funsafe-math-optimizations [disabled] -funswitch-loops [disabled] -funwind-tables [disabled] -fvar-tracking [enabled] -fvar-tracking-assignments [enabled] -fvar-tracking-assignments-toggle [disabled] -fvar-tracking-uninit [disabled] -fvariable-expansion-in-unroller [disabled] -fvect-cost-model [enabled] -fvpt [disabled] -fweb [enabled] -fwhole-program [disabled] -fwrapv [disabled] The following options are target specific: -m128bit-long-double [disabled] -m32 [enabled] -m3dnow [disabled] -m64 [disabled] -m80387 [enabled] -m8bit-idiv [disabled] -m96bit-long-double [enabled] -mabi= sysv -mabm [disabled] -maccumulate-outgoing-args [disabled] -maes [disabled] -malign-double [enabled] -malign-functions= 0 -malign-jumps= 0 -malign-loops= 0 -malign-stringops [enabled] -march= -masm= att -mavx [disabled] -mavx2 [disabled] -mavx256-split-unaligned-load [disabled] -mavx256-split-unaligned-store [disabled] -mbmi [disabled] -mbmi2 [disabled] -mbranch-cost= 0 -mcld [disabled] -mcmodel= 32 -mconsole [disabled] -mcrc32 [disabled] -mcx16 [disabled] -mdispatch-scheduler [disabled] -mdll [disabled] -mf16c [disabled] -mfancy-math-387 [enabled] -mfentry [enabled] -mfma [disabled] -mfma4 [disabled] -mforce-drap [disabled] -mfp-ret-in-387 [enabled] -mfpmath= 387 -mfsgsbase [disabled] -mhard-float [enabled] -mieee-fp [enabled] -mincoming-stack-boundary= 0 -minline-all-stringops [disabled] -minline-stringops-dynamically [disabled] -mlarge-data-threshold= 0x10000 -mlwp [disabled] -mlzcnt [disabled] -mmmx [disabled] -mmovbe [disabled] -mms-bitfields [disabled] -mno-sse4 [enabled] -mnop-fun-dllimport [disabled] -momit-leaf-frame-pointer [disabled] -mpc32 [disabled] -mpc64 [disabled] -mpc80 [disabled] -mpclmul [disabled] -mpe-aligned-commons [enabled] -mpopcnt [disabled] -mprefer-avx128 [disabled] -mpreferred-stack-boundary= 0 -mpush-args [enabled] -mrdrnd [disabled] -mrecip [disabled] -mrecip= -mred-zone [enabled] -mregparm= 0 -mrtd [disabled] -msahf [disabled] -msoft-float [disabled] -msse [disabled] -msse2 [disabled] -msse2avx [disabled] -msse3 [disabled] -msse4 [disabled] -msse4.1 [disabled] -msse4.2 [disabled] -msse4a [disabled] -msseregparm [disabled] -mssse3 [disabled] -mstack-arg-probe [enabled] -mstackrealign [enabled] -mstringop-strategy= [default] -mtbm [disabled] -mthreads [disabled] -mtls-dialect= gnu -mtls-direct-seg-refs [disabled] -mtune= -muse-libstdc-wrappers [disabled] -mveclibabi= [default] -mvect8-ret-in-mem [disabled] -mvzeroupper [disabled] -mwin32 [disabled] -mwindows [disabled] -mx32 [disabled] -mxop [disabled] Known assembler dialects (for use with the -masm-dialect= option): att intel Known ABIs (for use with the -mabi= option): ms sysv Known code models (for use with the -mcmodel= option): 32 kernel large medium small Valid arguments to -mfpmath=: 387 387+sse 387,sse both sse sse+387 sse,387 Known vectorization library ABIs (for use with the -mveclibabi= option): acml svml Valid arguments to -mstringop-strategy=: byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop Known TLS dialects (for use with the -mtls-dialect= option): gnu gnu2 The following options are language-independent: --help [enabled] --help=<class> --param <param>=<value> --target-help -Werror= -Wfatal-errors [disabled] -Wframe-larger-than=<number> -Wunreachable-code -aux-info <file> [enabled] -dumpbase <file> [enabled] -dumpdir <dir> [enabled] -fPIC [disabled] -fPIE [disabled] -fargument-alias -fargument-noalias -fargument-noalias-anything -fargument-noalias-global -fassociative-math [disabled] -fauto-inc-dec [enabled] -fbounds-check [disabled] -fcall-saved-<register> -fcall-used-<register> -fcheck-data-deps [disabled] -fcompare-debug-second [disabled] -fcompare-debug[=<opts>] -fcse-skip-blocks -fdbg-cnt-list -fdbg-cnt=<counter>:<limit>[,<counter>:<limit>,...] -fdebug-prefix-map= -fdebug-types-section [enabled] -fdiagnostics-show-location=[once|every-line] -fdiagnostics-show-option [enabled] -fdisable- -fdump-<type> -fdump-final-insns=filename -fdump-go-spec=filename -fdump-noaddr [disabled] -fdump-passes [disabled] -fdump-unnumbered [disabled] -fdump-unnumbered-links [disabled] -fdwarf2-cfi-asm [enabled] -feliminate-dwarf2-dups [disabled] -feliminate-unused-debug-symbols [disabled] -feliminate-unused-debug-types [enabled] -femit-class-debug-always [disabled] -fenable- -fexcess-precision=[fast|standard] [default] -ffat-lto-objects [enabled] -ffixed-<register> -fforce-addr -ffp-contract= fast -ffunction-cse [enabled] -ffunction-sections [disabled] -fgnu-tm [disabled] -fgraphite [disabled] -fident [enabled] -findirect-inlining [disabled] -finhibit-size-directive [disabled] -finline [enabled] -finline-limit=<number> -finstrument-functions [disabled] -finstrument-functions-exclude-file-list= -finstrument-functions-exclude-function-list= -fipa-struct-reorg -fira-algorithm= CB -fira-loop-pressure [disabled] -fira-region= [default] -fira-share-save-slots [enabled] -fira-share-spill-slots [enabled] -fira-verbose=<number> 0x5 -fkeep-inline-functions [disabled] -fkeep-static-consts [enabled] -fleading-underscore [enabled] -floop-optimize -flto -flto-compression-level=<number> 0xffffffff -flto-partition=1to1 [disabled] -flto-partition=balanced [disabled] -flto-partition=none [disabled] -flto-report [disabled] -flto= -fmax-errors=<number> 0 -fmem-report [disabled] -fmerge-debug-strings [enabled] -fmessage-length=<number> -fmodulo-sched-allow-regmoves [disabled] -fpartial-inlining [disabled] -fpcc-struct-return [disabled] -fpic [disabled] -fpie [disabled] -fplugin-arg-<name>-<key>[=<value>] -fplugin= -fpost-ipa-mem-report [disabled] -fpre-ipa-mem-report [disabled] -fprofile [disabled] -fprofile-arcs [disabled] -fprofile-correction [disabled] -fprofile-dir= -fprofile-generate -fprofile-generate= -fprofile-use [disabled] -fprofile-use= -fprofile-values [disabled] -frandom-seed=<string> -freciprocal-math [disabled] -frecord-gcc-switches [disabled] -free [disabled] -frerun-loop-opt -fsched-stalled-insns-dep=<number> -fsched-stalled-insns=<number> -fsched-verbose=<number> 0 -fsched2-use-traces -fsee -fshow-column [enabled] -fsplit-stack [enabled] -fstack-check -fstack-check=[no|generic|specific] -fstack-limit-register=<register> -fstack-limit-symbol=<name> -fstack-protector [disabled] -fstack-protector-all [disabled] -fstack-usage [disabled] -fstrength-reduce -fstrict-overflow [disabled] -fstrict-volatile-bitfields [enabled] -fsyntax-only [disabled] -ftest-coverage [disabled] -ftime-report [disabled] -ftls-model=[global-dynamic|local-dynamic|initial-exec|local-exec] global- dynamic -ftracer [disabled] -ftree-loop-linear -ftree-parallelize-loops= 0x1 -ftree-salias -ftree-store-ccp -ftree-store-copy-prop -ftree-vectorizer-verbose=<number> -fverbose-asm [disabled] -fvisibility=[default|internal|hidden|protected] default -fzee -fzero-initialized-in-bss [enabled] -g -gcoff -gdwarf- 0x2 -ggdb -gno-record-gcc-switches [enabled] -gno-strict-dwarf [disabled] -grecord-gcc-switches [disabled] -gstabs -gstabs+ -gstrict-dwarf [disabled] -gtoggle [disabled] -gvms -gxcoff -gxcoff+ -imultiarch <dir> -iplugindir=<dir> -p [disabled] -quiet [disabled] CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
然后看看此处一些参数的含义:
(1)-quiet:安静模式
(2)-v:此处加的,详细信息
(3)-I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include:两个include路径,还是相同的
(4)-iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/
对应语法是:
-iprefix <path>
然后去看了看对应的路径下有啥:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ ls /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ adainclude/ crtend.o include/ libgcc_eh.a libgfortran.a libgomp.spec libssp_nonshared.a adalib/ crtfastmath.o include-fixed/ libgcc_s.dll.a* libgfortran.dll.a* libobjc.a libstdc++.a cc1.exe* cyglto_plugin.dll* install-tools/ libgcj.dll.a* libgfortran.spec libobjc.dll.a* libstdc++.dll.a* cc1obj.exe* ecj1.exe* jc1.exe* libgcj.spec libgfortranbegin.a libquadmath.a libstdc++.dll.a-gdb.py* cc1plus.exe* f951.exe* jvgenmain.exe* libgcj-noncore.dll.a* libgij.dll.a* libquadmath.dll.a* libsupc++.a collect2.exe* finclude/ libcaf_single.a libgcj-tools.dll.a* libgomp.a libssp.a lto1.exe* crtbegin.o gnat1.exe* libgcc.a libgcov.a libgomp.dll.a* libssp.dll.a* lto-wrapper.exe*
(5)-D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix
一堆的define变量
(6)-idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api
两个重复的:
-idirafter /usr/lib/../include/w32api
对应语法:
-idirafter <dir>
也去看看对应路径下有啥:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ ls /usr/lib/../include/w32api _bsd_types.h d3d8types.h glui.h msasn1.h propkey.h uastrfnc.h _cygwin.h d3d9.h gluix.h msber.h propkeydef.h udpmib.h _dbdao.h d3d9caps.h gpedit.h mscat.h propsys.h uiautomation.h _mingw.h d3d9types.h gpmgmt.h mschapp.h propvarutil.h uiautomationclient.h _mingw_dxhelper.h d3dcaps.h guiddef.h msclus.h prsht.h uiautomationcore.h _mingw_mac.h d3dcommon.h h323priv.h mscoree.h psapi.h uiautomationcoreapi.h _mingw_print_pop.h d3dcommon.idl hidpi.h msctf.h psdk_inc/ umx.h _mingw_print_push.h d3dcompiler.h hidsdi.h msctfmonitorapi.h pshpack1.h unknown.h _mingw_secapi.h d3dhal.h hidusage.h msdadc.h pshpack2.h unknwn.h _mingw_unicode.h d3drm.h hlguids.h msdaguid.h pshpack4.h urlhist.h _timeval.h d3drmdef.h hliface.h msdaipp.h pshpack8.h urlmon.h accctrl.h d3drmobj.h hlink.h msdaipper.h pstore.h usb.h aclapi.h d3dtypes.h hostinfo.h msdaora.h qedit.h usb100.h aclui.h d3dvec.inl hstring.h msdaosp.h qedit.idl usb200.h activation.h d3dx9.h htiface.h msdasc.h qmgr.h usbcamdi.h activeds.h d3dx9anim.h htiframe.h msdasql.h qnetwork.h usbdi.h activscp.h d3dx9core.h htmlguid.h msdatsrc.h qnetwork.idl usbioctl.h adc.h d3dx9effect.h htmlhelp.h msdrm.h qos.h usbiodef.h adhoc.h d3dx9math.h http.h msdrmdefs.h qos2.h usbrpmif.h admex.h d3dx9math.inl httpext.h msdshape.h qosname.h usbuser.h adoctint.h d3dx9mesh.h httpfilt.h msfs.h qospol.h userenv.h adodef.h d3dx9shader.h httprequestid.h mshtmcid.h qossp.h usp10.h adogpool.h d3dx9shape.h i_cryptasn1tls.h mshtmdid.h ras.h uuids.h adoguids.h d3dx9tex.h ia64reg.h mshtmhst.h rasdlg.h uxtheme.h adoid.h d3dx9xof.h iaccess.h mshtml.h raseapif.h vadefs.h adoint.h daogetrw.h iadmext.h mshtmlc.h raserror.h vcr.h adojet.h datapath.h iadmw.h msi.h rassapi.h vdmdbg.h adomd.h davclnt.h iads.h msidefs.h rasshost.h vds.h adptif.h dbdaoerr.h icftypes.h msimcntl.h ratings.h vdslun.h adsdb.h dbdaoid.h icm.h msimcsdk.h rdpencomapi.h verinfo.ver adserr.h dbdaoint.h icmpapi.h msiquery.h reason.h vfw.h adshlp.h dbgautoattach.h icmui.dlg msoav.h recguids.h vfwmsgs.h adsiid.h dbgeng.h icrsint.h msp.h reconcil.h virtdisk.h adsnms.h dbghelp.h identitycommon.h mspab.h regstr.h vmr9.h adsprop.h dbgprop.h identitystore.h mspaddr.h rend.h vmr9.idl adssts.h dbt.h idf.h mspbase.h resapi.h vsadmin.h adtgen.h dciddi.h idispids.h mspcall.h restartmanager.h vsbackup.h advpub.h dciman.h iedial.h mspcoll.h richedit.h vsmgmt.h af_irda.h dcommon.h ieverp.h mspenum.h richole.h vsprov.h afxres.h dde.h ifdef.h msplog.h rkeysvcc.h vss.h agtctl.h dde.rh iiis.h mspst.h rnderr.h vsstyle.h agtctl_i.c ddeml.h iiisext.h mspstrm.h roapi.h vssym32.h agterr.h ddk/ iimgctx.h mspterm.h routprot.h vswriter.h agtsvr.h ddraw.h iiscnfg.h mspthrd.h rpc.h w32api.h agtsvr_i.c ddrawgdi.h iisext_i.c msptrmac.h rpcasync.h wab.h amaudio.h ddrawi.h iisrsta.h msptrmar.h rpcdce.h wabapi.h amstream.h ddstream.h iketypes.h msptrmvc.h rpcdcep.h wabcode.h amstream.idl ddstream.idl ilogobj.hxx msputils.h rpcndr.h wabdefs.h amvideo.h delayimp.h imagehlp.h msrdc.h rpcnsi.h wabiab.h amvideo.idl devguid.h ime.h msremote.h rpcnsip.h wabmem.h apdevpkey.h devicetopology.h imessage.h mssip.h rpcnterr.h wabnot.h apiset.h devioctl.h imm.h msstkppg.h rpcproxy.h wabtags.h apisetcconv.h devpkey.h in6addr.h mstask.h rpcsal.h wabutil.h appmgmt.h devpropdef.h inaddr.h mstcpip.h rpcssl.h wbemads.h aqadmtyp.h dhcpcsdk.h indexsrv.h msterr.h rrascfg.h wbemcli.h asptlb.h dhcpsapi.h inetreg.h mswsock.h rtcapi.h wbemdisp.h atacct.h dhcpssdk.h inetsdk.h msxml.h rtccore.h wbemidl.h atalkwsh.h dhcpv6csdk.h initguid.h msxml2.h rtcerr.h wbemprov.h atsmedia.h dhtmldid.h initoid.h msxml2did.h rtinfo.h wbemtran.h audevcod.h dhtmled.h inputscope.h msxmldid.h rtm.h wcmconfig.h audioapotypes.h dhtmliid.h inspectable.h mtsadmin.h rtmv2.h wcsplugin.h audioclient.h digitalv.h intrin.h mtsadmin_i.c rtutils.h wct.h audioengineendpoint.h dimm.h intshcut.h mtsevents.h sal.h wdsbp.h audiopolicy.h dinput.h invkprxy.h mtsgrp.h sbe.h wdsclientapi.h audiosessiontypes.h diskguid.h ioevent.h mtx.h scarddat.h wdspxe.h austream.h dispatch.h ipexport.h mtxadmin.h scarderr.h wdstci.h austream.idl dispdib.h iphlpapi.h mtxadmin_i.c scardmgr.h wdstpdi.h authif.h dispex.h ipifcons.h mtxattr.h scardsrv.h wdstptmgmt.h authz.h dlcapi.h ipinfoid.h mtxdm.h scardssp.h werapi.h avifmt.h dlgs.h ipmib.h muiload.h scardssp_i.c wfext.h avrfsdk.h dls1.h ipmsp.h multimon.h scardssp_p.c wia.h avrt.h dls2.h iprtrmib.h multinfo.h scesvc.h wiadef.h azroles.h dmdls.h ipsectypes.h mxdc.h schannel.h wiadevd.h basetsd.h dmerror.h iptypes.h napenforcementclient.h schedule.h wiavideo.h basetyps.h dmksctrl.h ipxconst.h naperror.h schemadef.h winable.h batclass.h dmo.h ipxrip.h napmicrosoftvendorids.h schnlsp.h winapifamily.h bcrypt.h dmodshow.h ipxrtdef.h napprotocol.h scode.h winbase.h bdaiface.h dmodshow.idl ipxsap.h naptypes.h scrnsave.h winber.h bdamedia.h dmoreg.h ipxtfflt.h naputil.h scrptids.h wincodec.h bdatypes.h dmort.h iscsidsc.h nb30.h sddl.h wincon.h bh.h dmplugin.h isguids.h ncrypt.h sdkddkver.h wincred.h bidispl.h dmusbuff.h issper16.h ndattrib.h sdks/ wincrypt.h bits.h dmusicc.h issperr.h ndfapi.h sdoias.h winddi.h bits1_5.h dmusicf.h isysmon.h ndhelper.h sdpblb.h winddiui.h bits2_0.h dmusici.h iwamreg.h ndr64types.h sdperr.h windef.h bitscfg.h dmusics.h kcom.h ndrtypes.h sec_api/ windns.h bitsmsg.h docobj.h knownfolders.h netcon.h secext.h windot11.h blberr.h domdid.h ks.h neterr.h security.h windows.h bluetoothapis.h downloadmgr.h ksdebug.h netevent.h sens.h windowsx.h bthdef.h dpaddr.h ksguid.h netioapi.h sensapi.h windowsx.h16 bthsdpdef.h dpfilter.h ksmedia.h netlistmgr.h sensevts.h winefs.h bugcodes.h dplay.h ksproxy.h netmon.h sensors.h winerror.h callobj.h dplay8.h ksuuids.h netprov.h sensorsapi.h winevt.h cardmod.h dplobby.h ktmtypes.h nettypes.h servprov.h wingdi.h casetup.h dplobby8.h ktmw32.h newapis.h setupapi.h winhttp.h cchannel.h dpnathlp.h kxia64.h newdev.h sfc.h wininet.h cderr.h driverspecs.h lm.h nldef.h shappmgr.h winineti.h cdoex.h dsadmin.h lmaccess.h nmsupp.h shdeprecated.h winioctl.h cdoex_i.c dsclient.h lmalert.h npapi.h shdispid.h winldap.h cdoexerr.h dsconf.h lmapibuf.h nsemail.h shellapi.h winnetwk.h cdoexm.h dsdriver.h lmat.h nspapi.h shfolder.h winnls.h cdoexm_i.c dsgetdc.h lmaudit.h ntdd1394.h shldisp.h winnls32.h cdoexstr.h dshow.h lmconfig.h ntdd8042.h shlguid.h winnt.h cdonts.h dskquota.h lmcons.h ntddbeep.h shlobj.h winnt.rh cdosys.h dsound.h lmdfs.h ntddcdrm.h shlwapi.h winperf.h cdosys_i.c dsquery.h lmerr.h ntddcdvd.h shobjidl.h winreg.h cdosyserr.h dsrole.h lmerrlog.h ntddchgr.h shtypes.h winresrc.h cdosysstr.h dssec.h lmjoin.h ntdddisk.h simpdata.h winsafer.h celib.h dtchelp.h lmmsg.h ntddft.h simpdc.h winsatcominterfacei.h certadm.h dvbsiparser.h lmon.h ntddkbd.h sipbase.h winscard.h certbase.h dvdevcod.h lmremutl.h ntddmmc.h sisbkup.h winsmcrd.h certbcli.h dvdmedia.h lmrepl.h ntddmodm.h slerror.h winsnmp.h certcli.h dvobj.h lmserver.h ntddmou.h slpublic.h winsock.h certenc.h dwmapi.h lmshare.h ntddndis.h smpab.h winsock2.h certenroll.h dwrite.h lmsname.h ntddpar.h smpms.h winsplp.h certexit.h dxdiag.h lmstats.h ntddpsch.h smpxp.h winspool.h certif.h dxerr8.h lmsvc.h ntddscsi.h smtpguid.h winstring.h certmod.h dxerr9.h lmuse.h ntddser.h smx.h winsvc.h certpol.h dxfile.h lmuseflg.h ntddstor.h snmp.h winsxs.h certreqd.h dxgi.h lmwksta.h ntddtape.h softpub.h winsync.h certsrv.h dxgi.idl loadperf.h ntddtdi.h specstrings.h winternl.h certview.h dxgiformat.h locationapi.h ntddvdeo.h sporder.h wintrust.h cfg.h dxgitype.h lpmapi.h ntddvol.h sql.h winusb.h cfgmgr32.h dxtmpl.h lzexpand.h ntdef.h sql_1.h winusbio.h cguid.h dxva.h madcapcl.h ntdsapi.h sqlext.h winuser.h chanmgr.h dxva2api.h mailmsgprops.h ntdsbcli.h sqloledb.h winuser.rh cierror.h dxvahd.h manipulations.h ntdsbmsg.h sqltypes.h winver.h clfs.h eapauthenticatoractiondefine.h mapi.h ntgdi.h sqlucode.h winwlx.h clfsmgmt.h eapauthenticatortypes.h mapicode.h ntiologc.h srrestoreptapi.h wlanapi.h clfsmgmtw32.h eaphosterror.h mapidbg.h ntldap.h srv.h wlantypes.h clfsw32.h eaphostpeerconfigapis.h mapidefs.h ntmsapi.h sspguid.h wmcodecdsp.h cluadmex.h eaphostpeertypes.h mapiform.h ntmsmli.h sspi.h wmcontainer.h clusapi.h eapmethodauthenticatorapis.h mapiguid.h ntquery.h sspserr.h wmiatlprov.h cluscfgguids.h eapmethodpeerapis.h mapihook.h ntsdexts.h sspsidl.h wmistr.h cluscfgserver.h eapmethodtypes.h mapinls.h ntsecapi.h sti.h wmiutils.h cluscfgwizard.h eappapis.h mapioid.h ntsecpkg.h stierr.h wnnc.h cmdtree.h eaptypes.h mapispi.h ntstatus.h stireg.h wownt16.h cmnquery.h edevdefs.h mapitags.h ntverp.h stllock.h wownt32.h codecapi.h ehstorapi.h mapiutil.h oaidl.h stm.h wpapi.h color.dlg elscore.h mapival.h objbase.h storage.h wpapimsg.h colordlg.h emostore.h mapiwin.h objectarray.h storduid.h wpcapi.h comadmin.h emostore_i.c mapiwz.h objerror.h storprop.h wpcevent.h combaseapi.h emptyvc.h mapix.h objidl.h stralign.h wpcrsmsg.h comcat.h endpointvolume.h mciavi.h objsafe.h strmif.h wpftpmsg.h comdef.h error.h mcx.h objsel.h strsafe.h wppstmsg.h comdefsp.h errorrep.h mdbrole.hxx ocidl.h structuredquerycondition.h wpspihlp.h comip.h errors.h mdcommsg.h ocmm.h subauth.h wptypes.h commctrl.h esent.h mddefw.h odbcinst.h subsmgr.h wpwizmsg.h commctrl.rh evcode.h mdhcp.h odbcss.h svcguid.h ws2atm.h commdlg.h evcoll.h mdmsg.h ole.h svrapi.h ws2bth.h common.ver eventsys.h mediaerr.h ole2.h t2embapi.h ws2def.h commoncontrols.h evntcons.h mediaobj.h ole2ver.h tabflicks.h ws2dnet.h compobj.h evntprov.h mediaobj.idl oleacc.h tapi.h ws2ipdef.h compstui.h evntrace.h medparam.h oleauto.h tapi3.h ws2spi.h comsvcs.h evr.h medparam.idl olectl.h tapi3cc.h ws2tcpip.h comutil.h evr9.h mergemod.h olectlid.h tapi3ds.h wsdapi.h confpriv.h exchform.h mfapi.h oledb.h tapi3err.h wsdattachment.h control.h excpt.h mferror.h oledbdep.h tapi3if.h wsdbase.h corerror.h exdisp.h mfidl.h oledberr.h taskschd.h wsdclient.h correg.h exdispid.h mfmp2dlna.h oledbguid.h tbs.h wsddisco.h cpl.h fci.h mfobjects.h oledlg.dlg tcerror.h wsdhost.h cplext.h fdi.h mfplay.h oledlg.h tcguid.h wsdtypes.h credssp.h fileextd.h mfreadwrite.h oleidl.h tcpestats.h wsdutil.h crtdefs.h filehc.h mftransform.h oletx2xa.h tcpmib.h wsdxml.h cryptuiapi.h fileopen.dlg mgm.h opmapi.h tdh.h wsdxmldom.h cryptxml.h filter.h mgmtapi.h optary.h tdi.h wshisotp.h cscapi.h filterr.h midles.h p2p.h tdiinfo.h wsipv6ok.h cscobj.h findtext.dlg mimedisp.h parser.h termmgr.h wsipx.h ctfutb.h fltdefs.h mimeinfo.h patchapi.h textserv.h wsnetbs.h ctxtcall.h fltuser.h minmax.h patchwiz.h textstor.h wsnwlink.h custcntl.h fltuserstructures.h mlang.h pbt.h timeprov.h wspiapi.h d2d1.h fltwinerror.h mmc.h pchannel.h tlhelp32.h wsrm.h d2d1_1.h font.dlg mmcobj.h pcrt32.h tlogstg.h wsvns.h d2d1_1helper.h fsrm.h mmdeviceapi.h pdh.h tmschema.h wtsapi32.h d2d1effectauthor.h fsrmenums.h mmreg.h pdhmsg.h tnef.h wtypes.h d2d1effecthelpers.h fsrmpipeline.h mmstream.h penwin.h tom.h xa.h d2d1helper.h fsrmquota.h mmstream.idl perflib.h tpcshrd.h xcmc.h d2dbasetypes.h fsrmreports.h mmsystem.h perhist.h traffic.h xcmcext.h d2derr.h fsrmscreen.h mobsync.h persist.h transact.h xcmcmsx2.h d3d.h ftsiface.h moniker.h pgobootrun.h triedcid.h xcmcmsxt.h d3d10.h functiondiscoveryapi.h mpeg2bits.h pla.h triediid.h xenroll.h d3d10.idl functiondiscoverycategories.h mpeg2data.h poclass.h triedit.h xinput.h d3d10_1.h functiondiscoveryconstraints.h mpeg2psiparser.h polarity.h tspi.h xmldomdid.h d3d10_1.idl functiondiscoverykeys.h mpeg2structs.h poppack.h tssbx.h xmldsodid.h d3d10_1shader.h functiondiscoverynotification.h mprapi.h portabledeviceconnectapi.h tsuserex.h xmllite.h d3d10effect.h fusion.h mprerror.h portabledevicetypes.h tsuserex_i.c xmltrnsf.h d3d10misc.h fwpmtypes.h mq.h powrprof.h tuner.h xolehlp.h d3d10shader.h fwpmu.h mqmail.h prnasnot.h tvout.h zmouse.h d3d11.h fwptypes.h mqoai.h prnsetup.dlg txcoord.h d3d11.idl gb18030.h msacm.h prntfont.h txctx.h d3d11shader.h gdiplus/ msacmdlg.dlg profile.h txdtc.h d3d8.h gdiplus.h msacmdlg.h profinfo.h txfw32.h d3d8caps.h GL/ msado15.h propidl.h typeinfo.h CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
很明显是一堆头文件。
(7)conftest.c
要编译的文件。
(8)-quiet
又重复了一次quiet参数
(9)-dumpbase conftest.c
语法是:
-dumpbase <file> [enabled]
(10)-mtune=generic -march=i686
常见的配置
(11)-auxbase或-auxbase conftest
结果是:cc1中,没找到此参数
貌似此处不支持此参数
貌似就是此参数,导致出错的?待后续验证。
(12)-O2
普通的优化参数
(13)-version
对应的语法:
-version [disabled]
难道是此处disabled,所以出错的?待后续验证。
(14)-o /tmp/ccldAXzD.s
目标输出文件,也很正常。
7.综合分析下来,最有可能出错的是:
(11)-auxbase或-auxbase conftest
或:
(13)-version
而去搜
cc1 auxbase
也没找到有效的参考资料。
所以,先不去深究,先去试试,上述的命令:
/bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -quiet -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s
手动执行时,是否也是同样错误:
不过先要去构造一个conftest.c
还是把之前:
中的拿过来用,放到当前文件夹下。
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\conftest.c
内容为:
#include <stdio.h> int main () { ; return 0; }
然后去试试手动输入命令,是否会出错:
结果是可以正常运行的,且可以生成对应的.s文件:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ /bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -quiet -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s GNU C (GCC) version 4.7.3 (i686-pc-cygwin) compiled by GNU C version 4.7.3, GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 1.0.1 warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/bin/../lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include" ignoring nonexistent directory "/usr/local/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/include" ignoring nonexistent directory "../../include/w32api" ignoring duplicate directory "/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" #include "..." search starts here: #include <...> search starts here: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include /bin/../lib/gcc/i686-pc-cygwin/4.7.3/include /bin/../lib/gcc/i686-pc-cygwin/4.7.3/include-fixed /usr/include /usr/lib/../include/w32api End of search list. GNU C (GCC) version 4.7.3 (i686-pc-cygwin) compiled by GNU C version 4.7.3, GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 1.0.1 warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: da7649da3bc960a98e1e54fd1c08b870 CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ ls conftest* -lha -rwxr-xr-x 1 Administrators Domänen-Benutzer 52 Sep 6 14:54 conftest.c* CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ ls /tmp/cc ccANTJob.le ccglr9mi.o cciCD0dV.ld ccjnXRj9.o ccldAXzD.s ccNtnmQZ.c CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ ls /tmp/ccldAXzD.s -lha -rw-r--r-- 1 CLi Domänen-Benutzer 396 Sep 9 15:38 /tmp/ccldAXzD.s CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
但是注意到,此处有个警告:
warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2.
不知道会不会影响之前的编译。
8.然后再去把命令中的-quiet去掉:
/bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s
看看详细结果:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ /bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s GNU C (GCC) version 4.7.3 (i686-pc-cygwin) compiled by GNU C version 4.7.3, GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 1.0.1 warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/bin/../lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include" ignoring nonexistent directory "/usr/local/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/include" ignoring nonexistent directory "../../include/w32api" ignoring duplicate directory "/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" #include "..." search starts here: #include <...> search starts here: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include /bin/../lib/gcc/i686-pc-cygwin/4.7.3/include /bin/../lib/gcc/i686-pc-cygwin/4.7.3/include-fixed /usr/include /usr/lib/../include/w32api End of search list. GNU C (GCC) version 4.7.3 (i686-pc-cygwin) compiled by GNU C version 4.7.3, GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 1.0.1 warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 options passed: -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -mtune=generic -march=i686 -O2 options enabled: -falign-labels -fasynchronous-unwind-tables -fauto-inc-dec -fbranch-count-reg -fcaller-saves -fcombine-stack-adjustments -fcommon -fcompare-elim -fcprop-registers -fcrossjumping -fcse-follow-jumps -fdebug-types-section -fdefer-pop -fdelete-null-pointer-checks -fdevirtualize -fdwarf2-cfi-asm -fearly-inlining -feliminate-unused-debug-types -fexpensive-optimizations -fforward-propagate -ffunction-cse -fgcse -fgcse-lm -fgnu-runtime -fguess-branch-probability -fident -fif-conversion -fif-conversion2 -findirect-inlining -finline -finline-atomics -finline-functions-called-once -finline-small-functions -fipa-cp -fipa-profile -fipa-pure-const -fipa-reference -fipa-sra -fira-share-save-slots -fira-share-spill-slots -fivopts -fkeep-inline-dllexport -fkeep-static-consts -fleading-underscore -fmath-errno -fmerge-constants -fmerge-debug-strings -fmove-loop-invariants -fomit-frame-pointer -foptimize-register-move -foptimize-sibling-calls -foptimize-strlen -fpartial-inlining -fpeephole -fpeephole2 -fprefetch-loop-arrays -free -freg-struct-return -fregmove -freorder-blocks -freorder-functions -frerun-cse-after-loop -fsched-critical-path-heuristic -fsched-dep-count-heuristic -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic -fsched-stalled-insns-dep -fschedule-insns2 -fset-stack-executable -fshow-column -fshrink-wrap -fsigned-zeros -fsplit-ivs-in-unroller -fsplit-wide-types -fstrict-aliasing -fstrict-overflow -fstrict-volatile-bitfields -fthread-jumps -ftoplevel-reorder -ftrapping-math -ftree-bit-ccp -ftree-builtin-call-dce -ftree-ccp -ftree-ch -ftree-copy-prop -ftree-copyrename -ftree-cselim -ftree-dce -ftree-dominator-opts -ftree-dse -ftree-forwprop -ftree-fre -ftree-loop-if-convert -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops= -ftree-phiprop -ftree-pre -ftree-pta -ftree-reassoc -ftree-scev-cprop -ftree-sink -ftree-slp-vectorize -ftree-sra -ftree-switch-conversion -ftree-tail-merge -ftree-ter -ftree-vect-loop-version -ftree-vrp -funit-at-a-time -funwind-tables -fvar-tracking -fvar-tracking-assignments -fvect-cost-model -fzero-initialized-in-bss -m32 -m80387 -m96bit-long-double -maccumulate-outgoing-args -malign-double -malign-stringops -mfancy-math-387 -mfp-ret-in-387 -mieee-fp -mno-red-zone -mno-sse4 -mpush-args -msahf -mstack-arg-probe Compiler executable checksum: da7649da3bc960a98e1e54fd1c08b870 bswap_16 bswap_32 bswap_64 gnu_dev_major gnu_dev_minor gnu_dev_makedev __sgetc_r main Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> <visibility> <early_local_cleanups> <emutls> <whole-program> <profile_estimate> <cp> <inline> <pure-const> <static-var>Assembling functions: main Execution times (seconds) phase setup : 0.00 ( 0%) usr 0.01 (48%) sys 0.01 (15%) wall 513 kB (49%) ggc phase parsing : 0.03 (100%) usr 0.02 (52%) sys 0.04 (73%) wall 495 kB (47%) ggc preprocessing : 0.01 (48%) usr 0.02 (52%) sys 0.03 (47%) wall 155 kB (15%) ggc lexical analysis : 0.02 (52%) usr 0.00 ( 0%) sys 0.01 (11%) wall 0 kB ( 0%) ggc parser (global) : 0.00 ( 0%) usr 0.00 ( 0%) sys 0.01 (11%) wall 295 kB (28%) ggc TOTAL : 0.03 0.03 0.06 1047 kB CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
还是看不出什么端倪。
9.突然想到,不给定对应的conftest.c,试试什么效果。会不会出现和之前的错误同样的信息。
删除:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\conftest.c
然后运行之前的:
/bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -quiet -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s
看看结果:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ /bin/../lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe -quiet -v -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -iprefix /bin/../lib/gcc/i686-pc-cygwin/4.7.3/ -D__CYGWIN32__ -D__CYGWIN__ -Dunix -D__unix__ -D__unix -idirafter /usr/lib/../include/w32api -idirafter ../../include/w32api conftest.c -quiet -dumpbase conftest.c -mtune=generic -march=i686 -auxbase conftest -O2 -version -o /tmp/ccldAXzD.s GNU C (GCC) version 4.7.3 (i686-pc-cygwin) compiled by GNU C version 4.7.3, GMP version 4.3.2, MPFR version 3.0.1-p4, MPC version 1.0.1 warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/bin/../lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include" ignoring nonexistent directory "/usr/local/include" ignoring duplicate directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/include-fixed" ignoring nonexistent directory "/usr/lib/gcc/i686-pc-cygwin/4.7.3/../../../../i686-pc-cygwin/include" ignoring nonexistent directory "../../include/w32api" ignoring duplicate directory "/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" #include "..." search starts here: #include <...> search starts here: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include /bin/../lib/gcc/i686-pc-cygwin/4.7.3/include /bin/../lib/gcc/i686-pc-cygwin/4.7.3/include-fixed /usr/include /usr/lib/../include/w32api End of search list. cc1: fatal error: conftest.c: No such file or directory compilation terminated.
这个是正常的,可以说清楚,是.c没找到。
10.然后再去搜:
warning: MPFR header version 3.0.1-p4 differs from library version 3.1.2
结果也没有效资料。
11.现在还是之前的问题:
手动自行那些命令,都是可以的。
但是make时内部的./configure时,就出错了。
看看能否想办法,通过./configure时,就去掉之前传递给cc1的-quite,让其输出当时的cc1的详细执行过程。看看是否有何异常。
但是却发现
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\config.log
中的
-quiet
这个参数,没有设置的地方。好像是执行cc1的时候,自己加上去的。。。
12.再试试,实现建立好了
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\conftest.c
然后再去执行之前的命令,带-v的:
PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no
看看效果:
结果错误依旧:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:" CFLAGS="-v -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop ## -------------------------- ## ## Configuring libtool 2.2.10 ## ## -------------------------- ## checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether subdir libobjs are useable... yes checking for gcc... /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc checking whether the C compiler works... no configure: error: in `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10': configure: error: C compiler cannot create executables See `config.log' for more details. CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
然后,参考:
gcc4.7.2 cc1 error while loading shared libraries
现在在实在找不到根本原因的情况下:
只能尝试去,重新安装cygwin,去将gcc从当前的4.7.3,降级到4.5.3:
【记录】将win7 x64下的cygwin的gcc从当前的4.7.3降级到4.5.3
然后再看看,能否解决问题。
13.然后,接着再去重新make clean:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $ make clean rm -rf /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot /home/CLi/develop/buildroot/buildroot-2013.05/output/target /home/CLi/develop/buildroot/buildroot-2013.05/output/images /home/CLi/develop/buildroot/buildroot-2013.05/output/host \ /home/CLi/develop/buildroot/buildroot-2013.05/output/stamps /home/CLi/develop/buildroot/buildroot-2013.05/output/build /home/CLi/develop/buildroot/buildroot-2013.05/output/toolchain /home/CLi/develop/buildroot/buildroot-2013.05/output/staging \ /home/CLi/develop/buildroot/buildroot-2013.05/output/legal-info
再重新make:
结果是,用4.5.3的gcc,也是错误依旧
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\config.log
相关内容为:
configure:3496: checking for C compiler version configure:3505: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc --version >&5 gcc (GCC) 4.5.3 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3516: $? = 0 configure:3505: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -v >&5 Using built-in specs. COLLECT_GCC=/bin/gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-cygwin/4.5.3/lto-wrapper.exe Target: i686-pc-cygwin Configured with: /gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3/configure --srcdir=/gnu/gcc/releases/respins/4.5.3-3/gcc4-4.5.3-3/src/gcc-4.5.3 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var --sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc4 -C --datadir=/usr/share --infodir=/usr/share/info --mandir=/usr/share/man -v --with-gmp=/usr --with-mpfr=/usr --enable-bootstrap --enable-version-specific-runtime-libs --libexecdir=/usr/lib --enable-static --enable-shared --enable-shared-libgcc --disable-__cxa_atexit --with-gnu-ld --with-gnu-as --with-dwarf2 --disable-sjlj-exceptions --enable-languages=ada,c,c++,fortran,java,lto,objc,obj-c++ --enable-graphite --enable-lto --enable-java-awt=gtk --disable-symvers --enable-libjava --program-suffix=-4 --enable-libgomp --enable-libssp --enable-libada --enable-threads=posix --with-arch=i686 --with-tune=generic --enable-libgcj-sublibs CC=gcc-4 CXX=g++-4 CC_FOR_TARGET=gcc-4 CXX_FOR_TARGET=g++-4 GNATMAKE_FOR_TARGET=gnatmake GNATBIND_FOR_TARGET=gnatbind --with-ecj-jar=/usr/share/java/ecj.jar Thread model: posix gcc version 4.5.3 (GCC) configure:3516: $? = 0 configure:3505: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -V >&5 gcc: '-V' option must have argument configure:3516: $? = 1 configure:3505: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -qversion >&5 gcc: unrecognized option '-qversion' gcc: no input files configure:3516: $? = 1 configure:3536: checking whether the C compiler works configure:3558: /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc -O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib conftest.c >&5 /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory configure:3562: $? = 1 configure:3600: result: no
14.参考了很多帖子,比如:
[Bug bootstrap/43619] Bootstrap failure: "/lib/cpp" fails sanity check
都是缺少某个cc1所依赖的库,
但是,我此处cygcheck出来的,都是正常的:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $ cygcheck /usr/lib/gcc/i686-pc-cygwin/4.5.3/cc1.exe D:\tmp\tmp_dev_root\cgwin\lib\gcc\i686-pc-cygwin\4.5.3\cc1.exe D:\tmp\tmp_dev_root\cgwin\bin\cygcloog-0.dll D:\tmp\tmp_dev_root\cgwin\bin\cygwin1.dll C:\Windows\system32\KERNEL32.dll C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll C:\Windows\system32\ntdll.dll C:\Windows\system32\KERNELBASE.dll C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll D:\tmp\tmp_dev_root\cgwin\bin\cyggmp-10.dll D:\tmp\tmp_dev_root\cgwin\bin\cygppl_c-4.dll D:\tmp\tmp_dev_root\cgwin\bin\cygppl-9.dll D:\tmp\tmp_dev_root\cgwin\bin\cyggcc_s-1.dll D:\tmp\tmp_dev_root\cgwin\bin\cygstdc++-6.dll D:\tmp\tmp_dev_root\cgwin\bin\cyggmpxx-4.dll D:\tmp\tmp_dev_root\cgwin\bin\cygpwl-5.dll D:\tmp\tmp_dev_root\cgwin\bin\cyggmp-3.dll D:\tmp\tmp_dev_root\cgwin\bin\cygiconv-2.dll D:\tmp\tmp_dev_root\cgwin\bin\cygintl-8.dll D:\tmp\tmp_dev_root\cgwin\bin\cygmpc-1.dll D:\tmp\tmp_dev_root\cgwin\bin\cygmpfr-1.dll D:\tmp\tmp_dev_root\cgwin\bin\cygmpfr-4.dll D:\tmp\tmp_dev_root\cgwin\bin\cygppl_c-2.dll D:\tmp\tmp_dev_root\cgwin\bin\cygppl-7.dll D:\tmp\tmp_dev_root\cgwin\bin\cygz.dll CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $
然后想到,会不会是由于./configure时,传递进去的LD_LIBRARY_PATH有问题。
此处,再次验证,手动输入命令,也是会出错的:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $ cd /home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10/ CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ rm -rf config.cache CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop ## -------------------------- ## ## Configuring libtool 2.2.10 ## ## -------------------------- ## checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether subdir libobjs are useable... yes checking for gcc... /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc checking whether the C compiler works... no configure: error: in `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10': configure: error: C compiler cannot create executables See `config.log' for more details. CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
那就把对应的,之前的LD_LIBRARY_PATH的值:
/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:
的最后多余的冒号去掉:
/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib
再把,cygcheck出来的那些路径,都加到之前的LD_LIBRARY_PATH中的值中。
15.参考:
【记录】Cygwin下把Windows的路径转换为Linux路径
然后从:
D:\tmp\tmp_dev_root\cgwin\bin C:\Windows\system32 |
得到Cygwin的路径:
/usr/bin |
然后去把LD_LIBRARY_PATH改为:
LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:/usr/bin: |
然后再去编译试试:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:/usr/bin:/cygdrive/c/Windows/system32" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop ## -------------------------- ## ## Configuring libtool 2.2.10 ## ## -------------------------- ## checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether subdir libobjs are useable... yes checking for gcc... /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc checking whether the C compiler works... no configure: error: in `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10': configure: error: C compiler cannot create executables See `config.log' for more details. CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
很明显,还是错误依旧。
然后去看:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\config.log
但是结果里面,根本没有把对应的LD_LIBRARY_PATH传递进去。
里面根本就没有LD_LIBRARY_PATH的路径,所以对应的cc1执行的时候,也没有此路径。
16.此处手动把:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10
删除掉,然后再make试试:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $ rm output/build/host-libtool-2.2.10/ -rf CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05 $ make
还是错误依旧。
17.再去,手动把路径都加到LDFLAGS和LD_LIBRARY_PATH,改为:
PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -L/usr/bin -L/cygdrive/c/Windows/system32 -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:/usr/bin:/cygdrive/c/Windows/system32" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -L/usr/bin -L/cygdrive/c/Windows/system32 -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no
去试试:
结果还是错误依旧:
CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $ PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/bin:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin:/bin:/home/CLi/develop/crosstool-ng/x-tools/arm-xscale-linux-gnueabi/bin:/opt/crosstool-ng/bin:/home/CLi/develop/crosstool-ng/x-tools/armxscalecurl/bin:/usr/local/bin:/usr/bin:/cygdrive/d/tmp/dev_install_root/Python27_x64:/cygdrive/d/tmp/dev_install_root/Python27_x64/Lib/site-packages/PyQt4:/cygdrive/d/tmp/dev_install_root/Perl64/site/bin:/cygdrive/d/tmp/dev_install_root/Perl64/bin:/cygdrive/c/Program Files/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Program Files (x86)/Common Files/Microsoft Shared/Windows Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files (x86)/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/Tools/Binn:/cygdrive/c/Program Files/Microsoft SQL Server/100/DTS/Binn:/cygdrive/d/tmp/WordPress/mysql/mysql-5.5.18/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/MySQL/MySQL Server 5.5/bin:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64:/cygdrive/d/tmp/WordPress/DevRoot/php-5.3.6-Win32-VC9-x64/ext:/cygdrive/d/tmp/WordPress/DevRoot/Python27:/cygdrive/c/Program Files (x86)/Common Files/Acronis/SnapAPI:/cygdrive/c/Program Files (x86)/Windows Live/Shared:/cygdrive/c/Program Files/Java/jdk1.7.0_11/bin:/home/CLi/develop/docbook/tools/fop/lib:/home/CLi/develop/docbook/tools/fop:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.1.2/TOK/BIN:/cygdrive/d/DevInstallRoot/FF/DD_IDE_1.2.0/TOK/BIN:/cygdrive/d/DevRoot/EmbeddedDevelop/trunk/Research/CLI/FF/FBK/develop/tools/develop-tools:/cygdrive/d/tmp/WordPress/DevRoot/Python27/Scripts:/cygdrive/d/tmp/dev_install_root/PostgreSQL/8.3/bin:/cygdrive/d/tmp/dev_install_root/ant/apache-ant-1.8.4/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft/Web Platform Installer:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/d/DevRoot/IndustrialMobileAutomation/HandheldDataSetter/ANTLR/batchFile:/cygdrive/c/Program Files (x86)/QuickTime/QTSystem:/cygdrive/d/tmp/tmp_dev_root/android/adt-bundle-windows/sdk/platform-tools:/cygdrive/d/tmp/dev_install_root/Tesseract-OCR:/cygdrive/d/tmp/dev_install_root/jython2.5.3/bin:/cygdrive/d/devinstallroot/gnuarm/bin:/cygdrive/d/tmp/dev_install_root/HTML Help Workshop:/cygdrive/c/Users/CLi/AppData/Roaming/npm:/usr/lib/lapack:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include:/opt/gcc-4.0.4-glibc-2.3.6-kernel-2.6.17/sysroot-arm-xscale-linux-gnu/usr/include/linux" AR="/bin/ar" AS="/bin/as" LD="/bin/ld" NM="/bin/nm" CC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" GCC="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc" CXX="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/g++" CPP="/bin/cpp" CPPFLAGS="-I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" CXXFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -L/usr/bin -L/cygdrive/c/Windows/system32 -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_LIBDIR="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/pkgconfig:/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/share/pkgconfig" PERLLIB="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib/perl" LD_LIBRARY_PATH="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib:/usr/bin:/cygdrive/c/Windows/system32" CFLAGS="-O2 -I/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/include" LDFLAGS="-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -L/usr/bin -L/cygdrive/c/Windows/system32 -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib" ./configure --prefix="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr" --sysconfdir="/home/CLi/develop/buildroot/buildroot-2013.05/output/host/etc" --enable-shared --disable-static --disable-gtk-doc --disable-doc --disable-docs --disable-documentation --with-xmlto=no --with-fop=no configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop ## -------------------------- ## ## Configuring libtool 2.2.10 ## ## -------------------------- ## checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether subdir libobjs are useable... yes checking for gcc... /home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/bin/ccache /bin/gcc checking whether the C compiler works... no configure: error: in `/home/CLi/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10': configure: error: C compiler cannot create executables See `config.log' for more details. CLi@PC-CLI-1 ~/develop/buildroot/buildroot-2013.05/output/build/host-libtool-2.2.10 $
此时,可以看到:
D:\tmp\tmp_dev_root\cgwin\home\CLi\develop\buildroot\buildroot-2013.05\output\build\host-libtool-2.2.10\config.log
中已经是加了上面的路径了:
ac_cv_env_LDFLAGS_value='-L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/lib -L/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib -L/usr/bin -L/cygdrive/c/Windows/system32 -Wl,-rpath,/home/CLi/develop/buildroot/buildroot-2013.05/output/host/usr/lib'
但是还是没解决问题。
后记:
转载请注明:在路上 » 【已解决】再次研究:Cygwin下编译Buildroot时在编译libtool-2.2.10时出错:/usr/lib/gcc/i686-pc-cygwin/4.7.3/cc1.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory