From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8867 invoked by alias); 12 Apr 2012 12:05:48 -0000 Received: (qmail 8856 invoked by uid 22791); 12 Apr 2012 12:05:46 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_XG X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Apr 2012 12:05:33 +0000 From: "rainer@emrich-ebersheim.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/52947] New: [4.7 Regression] bootstrap fails due to wrong include search path composition Date: Thu, 12 Apr 2012 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rainer@emrich-ebersheim.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg00838.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52947 Bug #: 52947 Summary: [4.7 Regression] bootstrap fails due to wrong include search path composition Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: rainer@emrich-ebersheim.de native x86_64-w64-mingw32 bootstrap using --with-sysroot This used to work for the 4.6 series. ../../src/gcc-4.7.0/configure --prefix=3D/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime= -trunk-svn/gcc-4.7.0 --with-gnu-as --with-as=3D/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtim= e-trunk-svn/gcc-4.7.0/bin/as --with-gnu-ld --with-ld=3D/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtim= e-trunk-svn/gcc-4.7.0/bin/ld --build=3Dx86_64-w64-mingw32 --enable-languages=3Dc,ada,c++,fortran,java,lto,objc,obj-c++ --with-gmp-include=3D/SCRATCH/tmp.pzGXGetUXT/install/include --with-gmp-lib=3D/SCRATCH/tmp.pzGXGetUXT/install/lib64 --with-mpfr-include=3D/SCRATCH/tmp.pzGXGetUXT/install/include --with-mpfr-lib=3D/SCRATCH/tmp.pzGXGetUXT/install/lib64 --with-mpc-include=3D/SCRATCH/tmp.pzGXGetUXT/install/include --with-mpc-lib=3D/SCRATCH/tmp.pzGXGetUXT/install/lib64 --with-ppl-include=3D/SCRATCH/tmp.pzGXGetUXT/install/include --with-ppl-lib=3D/SCRATCH/tmp.pzGXGetUXT/install/lib64 --with-cloog-include=3D/SCRATCH/tmp.pzGXGetUXT/install/include --with-cloog-lib=3D/SCRATCH/tmp.pzGXGetUXT/install/lib64 --with-local-prefix=3D/opt/devel/tec/devel/MINGW_NT/x86_64-w64-mingw32/ming= w-w64-runtime-trunk-svn/gcc-4.7.0 --enable-libgomp --enable-fully-dynamic-string --disable-multilib --enable-checking=3Drelease --disable-werror --with-sysroot=3D/x86_64-w64-t= runk --with-host-libstdcxx=3D'-Wl,-Bstatic,-lstdc++,-Bdynamic' gcc 4.7.0 bootstrap fails during configuration in libgcc: checking how to run the C preprocessor... /lib/cpp configure: error: in `/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/x86_64-w64-mingw32/libgcc': configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. gmake[2]: *** [configure-stage1-target-libgcc] Error 1 gmake[2]: Leaving directory `/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0' gmake[1]: *** [stage1-bubble] Error 2 gmake[1]: Leaving directory `/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0' gmake: *** [all] Error 2=20 config.log in libgcc shows: configure:3893: checking how to run the C preprocessor configure:3924: /SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/./gcc/xgcc -B/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/./gcc/ -L/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-sv= n/gcc-4.7.0/x86_64-w64-mingw32/lib -L/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-sv= n/gcc-4.7.0/mingw/lib -isystem /opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/= gcc-4.7.0/x86_64-w64-mingw32/include -isystem /opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/= gcc-4.7.0/mingw/include -B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-sv= n/gcc-4.7.0/x86_64-w64-mingw32/bin/ -B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-sv= n/gcc-4.7.0/x86_64-w64-mingw32/lib/ -isystem /opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/= gcc-4.7.0/x86_64-w64-mingw32/include -isystem /opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/= gcc-4.7.0/x86_64-w64-mingw32/sys-include -E conftest.c In file included from D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/gcc/include-fixed/syslim= its.h:7:0, from D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/gcc/include-fixed/limits= .h:34, from conftest.c:10: D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/gcc/include-fixed/limits= .h:169:61: error: no include path in which to search for limits.h configure:3924: $? =3D 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | #ifdef __STDC__ | # include | #else | # include | #endif | Syntax error=20 further analysis shows that the include search path composition is wrong. For gcc-4.6.3 stage1 xgcc the search path is as follows: nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runt= ime-trunk-svn/gcc-4.6.3/x86_64-w64-mingw32/include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runt= ime-trunk-svn/gcc-4.6.3/mingw/include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runt= ime-trunk-svn/gcc-4.6.3/x86_64-w64-mingw32/include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runt= ime-trunk-svn/gcc-4.6.3/x86_64-w64-mingw32/sys-include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:\msys\scratch\tmp.pzgxgetuxt\gcc-4.6.3\gcc-4.6.3\gcc\../lib/g= cc/x86_64-w64-mingw32/4.6.3/include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:\msys\scratch\tmp.pzgxgetuxt\gcc-4.6.3\gcc-4.6.3\gcc\../lib/g= cc/x86_64-w64-mingw32/4.6.3/include-fixed=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:\msys\scratch\tmp.pzgxgetuxt\gcc-4.6.3\gcc-4.6.3\gcc\../lib/g= cc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/include=C3=82=C2= =AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/msys/scratch/tmp.pzgxgetuxt/gcc-4.6.3/gcc-4.6.3/lib/gcc/x86_= 64-w64-mingw32/4.6.3/include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBD:/x86_64-w64-trunkd:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-min= gw32/mingw-w64-runtime-trunk-svn/gcc-4.6.3/lib/gcc/x86_64-w64-mingw32/4.6.3= /../../../../include=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/msys/scratch/tmp.pzgxgetuxt/gcc-4.6.3/gcc-4.6.3/lib/gcc/x86_= 64-w64-mingw32/4.6.3/include-fixed=C3=82=C2=AB wird ignoriert nicht vorhandenes Verzeichnis =C3=82=C2=BBd:/msys/scratch/tmp.pzgxgetuxt/gcc-4.6.3/gcc-4.6.3/x86_64-w64-m= ingw32/include=C3=82=C2=AB wird ignoriert #include "..." - Suche beginnt hier: #include <...> - Suche beginnt hier: D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.6.3/gcc-4.6.3/gcc/include D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.6.3/gcc-4.6.3/gcc/include-fixed D:/x86_64-w64-trunk/mingw/include Ende der Suchliste. As you see here the important search path component D:/x86_64-w64-trunk/mingw/include is ok. For gcc-4.7.0 in contrast I get: ignoring nonexistent directory "d:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-s= vn/gcc-4.7.0/x86_64-w64-mingw32/include" ignoring nonexistent directory "d:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-s= vn/gcc-4.7.0/mingw/include" ignoring nonexistent directory "d:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-s= vn/gcc-4.7.0/x86_64-w64-mingw32/include" ignoring nonexistent directory "d:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-s= vn/gcc-4.7.0/x86_64-w64-mingw32/sys-include" ignoring nonexistent directory "d:\msys\scratch\tmp.pzgxgetuxt\gcc-4.7.0\gcc-4.7.0\gcc\../lib/gcc/x86_64-w= 64-mingw32/4.7.0/include" ignoring nonexistent directory "d:\msys\scratch\tmp.pzgxgetuxt\gcc-4.7.0\gcc-4.7.0\gcc\../lib/gcc/x86_64-w= 64-mingw32/4.7.0/include-fixed" ignoring nonexistent directory "d:\msys\scratch\tmp.pzgxgetuxt\gcc-4.7.0\gcc-4.7.0\gcc\../lib/gcc/x86_64-w= 64-mingw32/4.7.0/../../../../x86_64-w64-mingw32/include" ignoring nonexistent directory "d:/msys/scratch/tmp.pzgxgetuxt/gcc-4.7.0/gcc-4.7.0/lib/gcc/x86_64-w64-ming= w32/4.7.0/include" ignoring nonexistent directory "D:/x86_64-w64-trunkd:/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-= w64-runtime-trunk-svn/gcc-4.7.0/lib/gcc/x86_64-w64-mingw32/4.7.0/../../../.= ./include" ignoring nonexistent directory "d:/msys/scratch/tmp.pzgxgetuxt/gcc-4.7.0/gcc-4.7.0/lib/gcc/x86_64-w64-ming= w32/4.7.0/include-fixed" ignoring nonexistent directory "d:/msys/scratch/tmp.pzgxgetuxt/gcc-4.7.0/gcc-4.7.0/x86_64-w64-mingw32/incl= ude" ignoring nonexistent directory "D:/x86_64-w64-trunkD:/msys/mingw/include" #include "..." search starts here: #include <...> search starts here: D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/gcc/include D:/msys/SCRATCH/tmp.pzGXGetUXT/gcc-4.7.0/gcc-4.7.0/gcc/include-fixed Here the composition for the include search path gets wrong: ignoring nonexistent directory "D:/x86_64-w64-trunkD:/msys/mingw/include" The component /mingw/include is converted to an absolut windows path before it's appended to the sysroot. That's palin wrong. The library search path is ok. Any idea how to solve this?