[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mingw-users
Subject:    Re: [Mingw-users] configure: error: C preprocessor "/lib/cpp"	fails	sanity check
From:       Óscar_Fuentes <ofv () wanadoo ! es>
Date:       2013-06-12 18:35:22
Message-ID: 87bo7bdv6a.fsf () wanadoo ! es
[Download RAW message or body]

Eli Zaretskii <eliz@gnu.org> writes:

> > From: Óscar Fuentes <ofv@wanadoo.es>
> > Date: Wed, 12 Jun 2013 19:47:09 +0200
> > 
> > > > See `config.log' for more details.
> > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > Well, did you?  It usually spells out the problems loud and clear.
> > 
> > The `make' output says that it is working on the top directory, but the
> > config.log there contains the output of the initial configure run. I've
> > searched the build directory for the most recent modified config.log,
> > but no error there. So I don't know what config.log file the output is
> > talking about.
> 
> Are you saying that you don't see any config.log that has this string:
> 
> checking how to run the C preprocessor
> 
> in it?
> 
> Anyway, you should be able to see what file is that e.g. by launching
> Process Explorer or a similar tool while that configure script (the
> one which complains about cpp) is running, and looking at the files
> that Bash has open at that time.
> 
> (Is it possible that the log is redirected to /dev/null?  Stupid, I
> know, but we are talking about stupid things anyway.)
> 
> In my experience, guessing what could be the reason of such snafus is
> a waste of time; it is much more important to find the config.log file
> and read its relevant parts.

Okay, found it. The end of the error log was 150 lines up the last line
of the config.log file (which a text search revealed that it was on
$build/i686-pc-mingw32/libgcc directory).

For checking how to run the C preprocessor the script tries to
preprocess several source files, each #including a well-known header
file. They all fail because the include search path does not contain the
place where the MinGW header files are installed. This is because it
uses the directory specified in --prefix configure option, but I
assigned that option to an empty directory instead of c:/MinGW (hoping
to install the new gcc somewhere without overwriting the existing one.)
Now I'm trying again using --prefix=c:/mingw. Let's see how it fares.

configure:3833: checking how to run the C preprocessor
configure:3864: /d/dev/other/gcc/build/./gcc/xgcc -B/d/dev/other/gcc/build/./gcc/ \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/mingw \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/w32api/lib -isystem \
/d/dev/other/gcc/gcc/winsup/mingw/include -isystem \
/d/dev/other/gcc/gcc/winsup/w32api/include -B/c/MinGW/gcc-dev/i686-pc-mingw32/bin/ \
-B/c/MinGW/gcc-dev/i686-pc-mingw32/lib/ -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/include -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/sys-include    -E  conftest.c In file included from \
                d:/dev/other/gcc/build/gcc/include-fixed/syslimits.h:7:0,
                 from d:/dev/other/gcc/build/gcc/include-fixed/limits.h:34,
                 from conftest.c:10:
d:/dev/other/gcc/build/gcc/include-fixed/limits.h:168:61: error: no include path in \
which to search for limits.h  #include_next <limits.h>  /* recurse down to the real \
one */  ^
configure:3864: $? = 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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3864: /d/dev/other/gcc/build/./gcc/xgcc -B/d/dev/other/gcc/build/./gcc/ \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/mingw \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/w32api/lib -isystem \
/d/dev/other/gcc/gcc/winsup/mingw/include -isystem \
/d/dev/other/gcc/gcc/winsup/w32api/include -B/c/MinGW/gcc-dev/i686-pc-mingw32/bin/ \
-B/c/MinGW/gcc-dev/i686-pc-mingw32/lib/ -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/include -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/sys-include    -E  conftest.c In file included from \
                d:/dev/other/gcc/build/gcc/include-fixed/syslimits.h:7:0,
                 from d:/dev/other/gcc/build/gcc/include-fixed/limits.h:34,
                 from conftest.c:10:
d:/dev/other/gcc/build/gcc/include-fixed/limits.h:168:61: error: no include path in \
which to search for limits.h  #include_next <limits.h>  /* recurse down to the real \
one */  ^
configure:3864: $? = 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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3864: /d/dev/other/gcc/build/./gcc/xgcc -B/d/dev/other/gcc/build/./gcc/ \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/mingw \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/w32api/lib -isystem \
/d/dev/other/gcc/gcc/winsup/mingw/include -isystem \
/d/dev/other/gcc/gcc/winsup/w32api/include -B/c/MinGW/gcc-dev/i686-pc-mingw32/bin/ \
-B/c/MinGW/gcc-dev/i686-pc-mingw32/lib/ -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/include -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/sys-include    -E -traditional-cpp  conftest.c \
conftest.c:12:0: fatal error: assert.h: No such file or directory  # include \
<assert.h>  ^
compilation terminated.
configure:3864: $? = 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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3864: /d/dev/other/gcc/build/./gcc/xgcc -B/d/dev/other/gcc/build/./gcc/ \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/mingw \
-L/d/dev/other/gcc/build/i686-pc-mingw32/winsup/w32api/lib -isystem \
/d/dev/other/gcc/gcc/winsup/mingw/include -isystem \
/d/dev/other/gcc/gcc/winsup/w32api/include -B/c/MinGW/gcc-dev/i686-pc-mingw32/bin/ \
-B/c/MinGW/gcc-dev/i686-pc-mingw32/lib/ -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/include -isystem \
/c/MinGW/gcc-dev/i686-pc-mingw32/sys-include    -E -traditional-cpp  conftest.c \
conftest.c:12:0: fatal error: assert.h: No such file or directory  # include \
<assert.h>  ^
compilation terminated.
configure:3864: $? = 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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3864: /lib/cpp  conftest.c
/d/dev/other/gcc/gcc/libgcc/configure: line 1456: /lib/cpp: No such file or directory
configure:3864: $? = 127
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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3864: /lib/cpp  conftest.c
/d/dev/other/gcc/gcc/libgcc/configure: line 1456: /lib/cpp: No such file or directory
configure:3864: $? = 127
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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3903: result: /lib/cpp
configure:3923: /lib/cpp  conftest.c
/d/dev/other/gcc/gcc/libgcc/configure: line 1456: /lib/cpp: No such file or directory
configure:3923: $? = 127
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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3923: /lib/cpp  conftest.c
/d/dev/other/gcc/gcc/libgcc/configure: line 1456: /lib/cpp: No such file or directory
configure:3923: $? = 127
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 <limits.h>
> #else
> # include <assert.h>
> #endif
> 		     Syntax error
configure:3953: error: in `/d/dev/other/gcc/build/i686-pc-mingw32/libgcc':
configure:3956: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.


> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
> 
> This list observes the Etiquette found at 
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same.  Disregard for the list etiquette may \
> cause your account to be moderated. 
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at 
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may \
cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic