gcc build fails due to newlib circularity

Stephen Smith ischis2@home.com
Tue Jan 23 11:03:00 GMT 2001


Has anyone posted a patch on this

> I am trying to build gcc as a cross-compiler host=cygwin
> target=powerpc-eabi.
>
> I copied the newlib include files from the latest cygwin release to
> the /usr/local/include directory and started the compile.  The
> following is the error log.
>
> Can someone help me get this fixed.
>
> Stephen
>
> make[1]: Entering directory `/work/build-gcc/libiberty'
> make[2]: Entering directory `/work/build-gcc/libiberty/testsuite'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/work/build-gcc/libiberty/testsuite'
> make[1]: Leaving directory `/work/build-gcc/libiberty'
> make[1]: Entering directory `/work/build-gcc/texinfo'
> make all-recursive
> make[2]: Entering directory `/work/build-gcc/texinfo'
> Making all in intl
> make[3]: Entering directory `/work/build-gcc/texinfo/intl'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/work/build-gcc/texinfo/intl'
> Making all in lib
> make[3]: Entering directory `/work/build-gcc/texinfo/lib'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/work/build-gcc/texinfo/lib'
> Making all in makeinfo
> make[3]: Entering directory `/work/build-gcc/texinfo/makeinfo'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/work/build-gcc/texinfo/makeinfo'
> make[2]: Leaving directory `/work/build-gcc/texinfo'
> make[1]: Leaving directory `/work/build-gcc/texinfo'
> make[1]: Entering directory `/work/build-gcc/etc'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/work/build-gcc/etc'
> make[1]: Entering directory `/work/build-gcc/gcc'
> (cd intl && make all)
> make[2]: Entering directory `/work/build-gcc/gcc/intl'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/work/build-gcc/gcc/intl'
> gcc -c -DCROSS_COMPILE -DIN_GCC -DHAIFA    -g -O2  -DHAVE_CONFIG_H
> -I. -I../../gcc-2.95.2/gcc -I../../gcc-2.95.2/gcc/config
> -I../../gcc-2.95.2/gcc/../include \
> -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/powerpc-eabi/2.95.2/include\"
> \
> -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/powerpc-eabi/2.95.2/../../../..`echo
> /usr/local | sed -e 's|^/usr/local||' -e
> 's|/[^/]*|/..|g'`/include/g++-3\" \
> -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/powerpc-eabi/2.95.2/../../../../powerpc-eabi/sys-include\"
> \
> -DTOOL_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/powerpc-eabi/2.95.2/../../../../powerpc-eabi/include\"
> \
>   -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
>   -DSTD_PROTO_DIR=\"/usr/local/lib/gcc-lib/powerpc-eabi/2.95.2\" \
>   ../../gcc-2.95.2/gcc/protoize.c
> In file included from /usr/local/include/sys/dirent.h:12,
>                  from /usr/include/dirent.h:4,
>                  from /usr/local/include/sys/dirent.h:12,
>                  from /usr/include/dirent.h:4,
>                  from /usr/local/include/sys/dirent.h:12,

                    ...

>                  from /usr/local/include/sys/dirent.h:12,
>                  from /usr/local/include/dirent.h:4,
>                  from ../../gcc-2.95.2/gcc/protoize.c:66:
> /usr/include/dirent.h:4: macro or `#include' recursion too deep
> /usr/include/dirent.h:6: macro or `#include' recursion too deep
> /usr/include/dirent.h:6: Invalid token in expression
> /usr/include/dirent.h:6: unterminated `#if' conditional
> ../../gcc-2.95.2/gcc/protoize.c:65: unterminated `#if' conditional
> make[1]: *** [protoize.o] Error 1
> make[1]: Leaving directory `/work/build-gcc/gcc'
> make: *** [all-gcc] Error 2
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list