This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi Andy The problem seems to be solved by the attached patch , as I had faced the similar problem earlier. Please try it and let me know if it works for you. Regards Partha Acharya --- On Mon, 1/26/09, Andy Johnson <ajohnson@aecno.com> wrote: > From: Andy Johnson <ajohnson@aecno.com> > Subject: ARM with old kernel > To: crossgcc@sourceware.org > Date: Monday, January 26, 2009, 6:49 AM > Everyone, > > I'm having a bit of trouble building a toolchain for a > system with > an old 2.6.9 kernel: > > The script dies in the "Installing C library -> > Building C library" > (after the "Installing static core C compiler" > step) with the error: > no include path in which to search for limits.h the file > $CT_PREFIX_DIR/arm-unknown-linux-gnu/sys-root/usr/include/limits.h. > It's looking (according to the comments) for GCC > limits.h. Is there > a relatively easy way to do this without hacking code (not > that I'm > afraid to, but it's usually a solution of last resort)? > I tried > --with-headers, but that didn't work (configure --help > says that is > for linux headers, but I tried anyway). > > Any ideas? > > Andy Johnson > > > -- > For unsubscribe information see > http://sourceware.org/lists.html#faq
--- configure.orig 2008-01-30 15:40:55.000000000 -0200 +++ configure 2008-01-31 03:24:36.000000000 -0200 @@ -5066,7 +5066,12 @@ echo "$as_me: WARNING: # thing on a system that doesn't need fixincludes. (Not presently a problem.) if test -n "$sysheaders"; then ccheaders=`$CC -print-file-name=include` - SYSINCLUDES="-nostdinc -isystem $ccheaders \ + if test -d "${ccheaders}-fixed"; then + fixedccheaders="-isystem ${ccheaders}-fixed" + else + fixedccheaders= + fi + SYSINCLUDES="-nostdinc -isystem $ccheaders $fixedccheaders \ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" if test -n "$CXX"; then cxxversion=`$CXX -dumpversion 2>&5` && Index: configure.in =================================================================== --- configure.in.orig 2008-01-30 15:40:55.000000000 -0200 +++ configure.in 2008-01-31 03:24:30.000000000 -0200 @@ -915,7 +915,12 @@ test -n "$aux_missing" && AC_MSG_WARN([ # thing on a system that doesn't need fixincludes. (Not presently a problem.) if test -n "$sysheaders"; then ccheaders=`$CC -print-file-name=include` - SYSINCLUDES="-nostdinc -isystem $ccheaders \ + if test -d "${ccheaders}-fixed"; then + fixedccheaders="-isystem ${ccheaders}-fixed" + else + fixedccheaders= + fi + SYSINCLUDES="-nostdinc -isystem $ccheaders $fixedccheaders \ -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`" if test -n "$CXX"; then cxxversion=`$CXX -dumpversion 2>&AS_MESSAGE_LOG_FD` &&
-- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |