> -----Original Message-----
> From: [email protected] [mailto:ptxdist-
> [email protected]] On Behalf Of Michael Olbrich
> Sent: Sunday, March 13, 2011 12:43 PM
> To: [email protected]
> Subject: Re: [ptxdist] Build problem with OSELAS.Toolchain-2011.02.0
> 
> On Sun, Mar 13, 2011 at 10:54:55AM -0400, David Lightstone wrote:
> >
> >
> > > -----Original Message-----
> > > From: [email protected] [mailto:ptxdist-
> > > [email protected]] On Behalf Of Michael Olbrich
> > > Sent: Sunday, March 13, 2011 10:20 AM
> > > To: [email protected]
> > > Subject: Re: [ptxdist] Build problem with OSELAS.Toolchain-2011.02.0
> > >
> > > Hi,
> > >
> > > On Wed, Mar 09, 2011 at 12:54:12PM +0100, Juergen Beisert wrote:
> > > > David Lightstone wrote:
> > > > > (2) I observe zlib-1.2.5 to be present in directory build-host.
> > > > > Quite possibly it is intended as the non-hack solution. (if so,
> > > > > should it be in the include path?). It certainly contains zlib.h.
> > > > > Should it be in the include file path somewhere?
> > > >
> > > > Hmm, as the toolchain should run later on on your host, using the
> > > > local zlib might not be a good idea. But currently I also do not
> > > > know, why the zlib is required.
> > >
> > > The situation is a bit complicated. In theory the gcc sources come
> > > with a
> > zlib that
> > > can be used. Unfortunately for gcc-4.5 using it breaks building with
> > > some configure options. It's not easy to fix and upstream is in no
hurry.
> > > To work around this issue I added the host-zlib package and
> > "--with-system-zlib".
> > > The zlib is built statically, so no problems using the toolchain on
> > > the
> > host system.
> > >
> > > I guess detecting this zlib is broken. Can someone send me the
> > > relevant
> > sections
> > > from the logfile?
> >
> >
> > Tell me what you need, I can re-create the phenomena (made many builds
> > since observing the phenomena) What do you mean by breaks building
> > with some configure options?
> >
> > The starting point for the inquiry was a failure to compile
> > lto-compress.c
> 
> During cross-gcc-first.compile, right?


The  cross compiler was being  built at the time. 
I surmise the first stage of the bootstrap

So highly likely cross-gcc-first.compile

I will have do a rebuild from scratch to properly confirm
This I will try to do this evening

> 
> > I did not have the development files for zlib installed on the HOST
> > computer Initially I just hacked into the configuration for the gcc
> > make, and removed the "--with-system-zlib".
> > The initial suggestion was to install the zlib development files on
> > the host, so I did, and the compile proceeded successfully.
> 
> The zlib development are supposed to be in sysroot-host/. Unfortunately
> installing host-zlib is broken...
> 
> > I subsequently wondered whether about which library would be used at
> > link time. The one from the host, targeted to the host, or the one
> > from the target
> >
> > (1) To me this meant that the bootstrap compiler had to be used (with
> > the bootstrap configured to build zlib using the GCC version of zilb)
> > (2) The bootstrap would have to be used to build the preferred target
> > version of zlib
> 
> We already need gcc in the host system. So we can use it to built
host-zlib too.

I think there is a chicken and egg question here.

The library files for zlib appear to be needed to build the cross compiler.
Those have to be constructed using something which targets to the target

> 
> > (3) The target version of zlib and the bootstrap would have to be used
> > to build the final GCC
> 
> We only need zlib for the host here. Right now there are multiple issues:
> 1. zilb is not installed correctly (as I said) 2. cross-gcc-first and
cross-binutils are
> not looking in the right places for it.
> 
> As a result it fails or uses the (shared) zlib from the host system. Check
e.g. the
> <prefix>-ld with ldd.
> I'm working on a fix and it should work with the next toolchain release.
> 
> Michael
> 
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 
> --
> ptxdist mailing list
> [email protected]


-- 
ptxdist mailing list
[email protected]

Reply via email to