public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Joseph Myers <joseph@codesourcery.com>
To: "Dan Horák" <dan@danny.cz>
Cc: <libc-alpha@sourceware.org>
Subject: Re: Bootstrapping cross-toolchain for ia64
Date: Fri, 04 Nov 2016 13:31:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.20.1611041330040.1065@digraph.polyomino.org.uk> (raw)
In-Reply-To: <20161104141647.231bb720b4679f7fe57bd81a@danny.cz>

[-- Attachment #1: Type: text/plain, Size: 1322 bytes --]

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

      reply	other threads:[~2016-11-04 13:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04  0:52 Joseph Myers
2016-11-04 12:10 ` Adhemerval Zanella
2016-11-04 13:06   ` Joseph Myers
2016-11-04 13:17     ` Adhemerval Zanella
2016-11-04 13:17     ` Dan Horák
2016-11-04 13:31       ` Joseph Myers [this message]

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=alpine.DEB.2.20.1611041330040.1065@digraph.polyomino.org.uk \
    --to=joseph@codesourcery.com \
    --cc=dan@danny.cz \
    --cc=libc-alpha@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).