----- Original Message -----
From: "Daniel Jacobowitz" <firstname.lastname@example.org>
To: "Bradley D. LaRonde" <email@example.com>
Sent: Wednesday, August 08, 2001 7:45 PM
Subject: Re: gcc 3.0 / glibc 2.2.3 cross-toolchain
> On Wed, Aug 08, 2001 at 07:42:17PM -0400, Bradley D. LaRonde wrote:
> > I have spent quite a bit of time trying to get a gcc 3.0 / glibc 2.2.3
> > cross-toolchain working. I am not a Toolchain Builder, but I really
> > to try this combo and I don't see any way around building it myself.
> > I've had some success. Everything seems to build fine. However, when I
> > to run a simple "hello world" dynamically linked with glibc, I get this:
> > <myprogram>: error while loading shared libraries: failed to map
> > segment from shared object: cannot load shared object file: Invalid
> > argument
> > I think it is trying to load libc.so.6, which is in my root in /lib/,
> > symlinked to libc-2.2.3.so, and so is ld.so.1, symlinked to ld-2.2.3.so.
> > I feel like I am pretty close, but I am starting to get discouraged and
> > could really use some help. I really am clueless about what
> > should/shouldn't work. I'm trying to do this based on bits and pieces
> > information that I've collected from countless sources. I have heard
> > gcc 3.0 isn't really "working", but I still want to try.
> > Here is what I've used:
> > * binutils-188.8.131.52.25.tar.gz (extracted from H. J. Lu's
> > srpm on oss.sgi.com; I've tried others also)
> > * gcc-3.0.tar.gz (released version - no patches)
> > * glibc-linuxthreads-2.2.3.tar.gz (released version - no
> > patches; glibc didn't want to configure without this)
> > * glibc-2.2.3.tar.gz (released version)
> You're missing the patch to change MAP_BASE_ADDR. You need that.
> Something as simple as changing it to 0 will work for you, since you're
> building everything yourself.
I tried applying the patch that H. J. Lu posted on linux-mips that contains
that fix, but then glibc would compile. I'll try it again - maybe I messed
something up. If that doesn't work, I'll try the simple fix. Thanks.