public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/19176] New: static gcc cannot be build (libgcc_eh.a required for static gcc)
@ 2004-12-28 14:34 hideishi at graduate dot chiba-u dot jp
  2004-12-28 14:38 ` [Bug bootstrap/19176] " hideishi at graduate dot chiba-u dot jp
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hideishi at graduate dot chiba-u dot jp @ 2004-12-28 14:34 UTC (permalink / raw)
  To: gcc-bugs

gcc 4.0.0 cannot be bootstrap-ed if ./configure was run with --enable-static
--disable-shared.

This is due to the bug in "gcc/config/darwin.h".

     317 /* -dynamiclib implies -shared-libgcc just like -shared would on linux.  */
     318 #define REAL_LIBGCC_SPEC \
     319    "%{static|static-libgcc:-lgcc}\
     320     %{!static:%{!static-libgcc:\
     321       %{!Zdynamiclib:%{!shared-libgcc:-lgcc}\
     322       %{shared-libgcc:-lgcc_s -lgcc}} %{Zdynamiclib:-lgcc_s -lgcc}}}"

The REAL_LIBGCC_SPEC states that libgcc.a AND libgcc_eh.a are required for
static gcc.
(Probably copied from linux or i386 or any other spec files.)

However, in powerpc-apple-darwin7.7.0 (and possibly any of powerpc*-*-darwin*)
this "libgcc_eh.a" is not build during the bootstrap procedure (and also not
required).
So, after the first xgcc is build, bootstarp fails at stage1 by the following error:

/usr/lib/ld: can't locate file for: -lgcc_eh

To fix, simply sed -e 's/ -lgcc_eh//' the gcc/config/darwin.h file.

-- 
           Summary: static gcc cannot be build (libgcc_eh.a required for
                    static gcc)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hideishi at graduate dot chiba-u dot jp
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.7.0
  GCC host triplet: powerpc-apple-darwin7.7.0
GCC target triplet: powerpc*-*-*


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19176


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-06-27 14:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20041228143407.19176.hideishi@magisystem.net>
2005-06-27 14:24 ` [Bug bootstrap/19176] static gcc cannot be build (libgcc_eh.a required for static gcc) pinskia at gcc dot gnu dot org
2004-12-28 14:34 [Bug bootstrap/19176] New: " hideishi at graduate dot chiba-u dot jp
2004-12-28 14:38 ` [Bug bootstrap/19176] " hideishi at graduate dot chiba-u dot jp
2004-12-28 14:39 ` pinskia at gcc dot gnu dot org
2004-12-28 15:04 ` hideishi at graduate dot chiba-u dot jp
2004-12-28 15:16 ` pinskia at gcc dot gnu dot org

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).