This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Bootstrapping cross-toolchain for ia64
On Fri, 4 Nov 2016, Dan Horák wrote:
> On Fri, 4 Nov 2016 13:06:05 +0000
> Joseph Myers <joseph@codesourcery.com> wrote:
>
> > On Fri, 4 Nov 2016, Adhemerval Zanella wrote:
> >
> > > I faced the same issue and the solution I found was to configure
> > > gcc with '--disable-shared'. It is not an optimal approach for a
> > > complete toolchain, but it is at least suffice to correctly build
> > > glibc.
> >
> > The first GCC (whose build fails) *is* configured with
> > --disable-shared (and --without-headers --with-newlib to get
> > inhibit_libc defined). It still tries to build unwind code that
> > includes libc headers unconditionally.
>
> we used to have the following patch in the Fedora cross-gcc
> http://pkgs.fedoraproject.org/cgit/rpms/cross-gcc.git/log/cross-gcc-with-libgcc.patch
Thanks. I see that stdlib.h include was removed by
r231697 | edlinger | 2015-12-16 15:24:52 +0000 (Wed, 16 Dec 2015) | 5 lines
2015-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
* unwind-generic.h (_Unwind_GetTextRelBase): Call __builtin_abort
instead of abort to avoid dependency on stdlib.h.
so I'll see if the problem goes away with newer GCC (I'm initially trying
to clean up results with GCC 5 branch before going on to GCC 6 and
mainline).
--
Joseph S. Myers
joseph@codesourcery.com