All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Conroy <Chris.Conroy@hillcrestlabs.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: gcc-cross-sdk (GCC 4.2.3) limits.h woes
Date: Tue, 18 Aug 2009 12:27:59 -0400	[thread overview]
Message-ID: <1250612879.6785.12.camel@conroy-linux> (raw)
In-Reply-To: <20090813155909.GC8906@gmail.com>

I was finally able to determine the cause of the problem. Even though I
had wiped my TMPDIR, I had a broken GCC 4.3 sitting in my DEPLOYDIR
which was contaminating the installation. Once removed, I was able to
get the GCC 4.2.3 installation to work.

However, I've run in to a different problem. It seems that Debian
Renaming does not play nicely with the external toolchain. Digging into
the code, it seems that Debian renaming relies on the package being in
the workdir to do its magic, which for any prebuilt SDK packages will
not hold true. Any thoughts on the proper route to fix this aside from
just turning of Debian Renaming?

On Thu, 2009-08-13 at 08:59 -0700, Khem Raj wrote:
> On (13/08/09 11:19), Chris Conroy wrote:
> > I've spent a pretty good chunk of time this past week trying to get a
> > working external toolchain, but I've hit a bit of a wall and can't
> > figure out how to fix this last problem.
> > 
> > I'm trying to build a gcc-cross-sdk with GCC 4.2.3, and for a while I
> > faced a chicken-and-egg problem of finding limits.h where the creation
> > of the cross-sdk would succeed only if the eventual install location
> > (in /usr/local/path/to/toolchain/ existed). By pulling in the
> > sdk-libstdc++-includes.patch from poky, I was able to remove this issue
> > during the creation of gcc-cross-sdk.
> > 
> > Now, chicken and egg fixed (properly?) using the external toolchain
> > results in cross packages failing to find limits.h (specifically, the
> > #include_next<limits.h> in ${prefix}/usr/include/limits.h. It's unclear
> > to me which (if any) limits.h should be installed (and where).
> 
> limits.h should come from glibc. which should include the one provided
> by gcc in include-fixed gcc-cross-sdk should have done that.
> Deleting include_next is not the correct thing to do.
> > 
> > I've run through the gcc-cross-sdk work directory and was unable to find
> > any obvious choices (all of the copies there also asked for an
> > include_next).
> > 
> > If I make the assumption that this is just an erroneous include_next, I
> > can successfully compile and run some packages. However, I cannot build
> > the kernel because it fails on the assembly inside asm_offsets.c. This
> > leads me to believe that removing that include_next was not a valid fix
> > (no surprise there), and perhaps fixing this limits.h issue properly
> > will be the last step in creating a working external toolchain. I don't
> > see any obvious choices within gcc, but perhaps I need to pull from
> > glibc, glibc-initial, or perhaps a particular host file?
> > 
> > Note that this is NOT GCC 4.3.x which moved the fixincludes directory
> > and made some issues with finding limits.h. Most of the references I've
> > found to this bug indicate that people had this working before upgrading
> > to 4.3.x, and therefore I'm a bit surprised to be running into a similar
> > issue with 4.2.x
> > 
> > (For reference, this is with glibc 2.7 and binutils 2.19 for a
> > mipsel-linux target building on an x86_64 host)
> > 
> > --Chris Conroy
> > 
> > 
> > 
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



  reply	other threads:[~2009-08-18 16:45 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-13 15:19 gcc-cross-sdk (GCC 4.2.3) limits.h woes Chris Conroy
2009-08-13 15:52 ` Holger Hans Peter Freyther
2009-08-13 15:59 ` Khem Raj
2009-08-18 16:27   ` Chris Conroy [this message]
2009-08-18 17:41     ` Denys Dmytriyenko
2009-08-18 18:30       ` Chris Conroy
2009-08-18 19:50         ` Tom Rini
2009-08-18 20:10           ` Chris Conroy
2009-08-18 21:21             ` Phil Blundell
2009-08-18 21:25             ` Khem Raj
2009-08-18 21:32               ` Phil Blundell
2009-08-18 22:42                 ` External Toolchains " Denys Dmytriyenko
2009-08-19  3:17         ` Holger Hans Peter Freyther
2009-08-19 14:26           ` Chris Conroy
2009-08-19 15:11             ` Holger Hans Peter Freyther
2009-08-18 21:39       ` Is there an easy way to get a minimalist image without I18n libraries? Lars Holowko
2009-08-19 12:24         ` Is there an easy way to get a minimalist image without I18nLibraries? marcin
2009-08-19 20:32           ` Lars Holowko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1250612879.6785.12.camel@conroy-linux \
    --to=chris.conroy@hillcrestlabs.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.