Danny Backx wrote:

> P.S. As I already said (see below) the offending code is in
>      src/gcc-4.4.0/libgcc/configure. 
>      This is what it looks like :
> 
> if test -z "$CPP"; then
>   if test "${ac_cv_prog_CPP+set}" = set; then
>   echo $ECHO_N "(cached) $ECHO_C" >&6
> else
>       # Double quotes because CPP needs to be expanded
>     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
>     do
>       ac_preproc_ok=false
> ...

  There's nothing wrong with this code as such; the real question is why
didn't "$CC -E" work like it's supposed to, and why did it end up falling back
on the last resort "/lib/cpp"?

  The answer is at least partially in
gcc-bootstrap/i386-mingw32ce/libgcc/config.log:

configure:3041: checking how to run the C preprocessor
configure:3076:
/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/./gcc/xgcc
-B/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/./gcc/
-L/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/i386-mingw32ce/winsup/mingw
-L/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/i386-mingw32ce/winsup/w32api/lib
-isystem /tmp/cegcc/cegcc/trunk/cegcc/src/gcc-4.4.0/winsup/mingw/include
-isystem /tmp/cegcc/cegcc/trunk/cegcc/src/gcc-4.4.0/winsup/w32api/include
-B/opt/x86mingw32ce/i386-mingw32ce/bin/
-B/opt/x86mingw32ce/i386-mingw32ce/lib/ -isystem
/opt/x86mingw32ce/i386-mingw32ce/include -isystem
/opt/x86mingw32ce/i386-mingw32ce/sys-include -E  conftest.c
In file included from
/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/./gcc/include-fixed/syslimits.h:7,
                 from
/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/./gcc/include-fixed/limits.h:11,
                 from conftest.c:10:
/tmp/cegcc/cegcc/trunk/cegcc/build-i386/gcc-bootstrap/./gcc/include-fixed/limits.h:122:61:
error: no include path in which to search for limits.h
configure:3082: $? = 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 ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error

... so, there was some kind of error from the half-built compiler and
configure figured that means it can't use "$CC -E" to preprocess.  Which begs
the question "Why", because when I re-run the failing command manually, it
passes fine.  Odd.

    cheers,
      DaveK



------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to