From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23053 invoked by alias); 30 Dec 2009 18:25:16 -0000 Received: (qmail 22818 invoked by uid 48); 30 Dec 2009 18:24:58 -0000 Date: Wed, 30 Dec 2009 18:25:00 -0000 Subject: [Bug ada/42554] New: Can't build gnatlink, gnatmake X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "simon at pushface dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg02810.txt.bz2 While building gnatlink & gnatmake for both i386 and x86_64, get ld: duplicate symbol _system__secondary_stack__mark_idIP in ../rts/libgnat.a(s-secsta.o) and s-secsta.o (and, after fixing this, s-exctab.o). I suppose this is because of a change in Snow Leopard where an object can't be both explicitly present on the command line and in a static library? Though there are other objects explicitly mentioned, eg s-stalib.o, which don't have to be removed. Anyway, editing gcc/ada/gcc-interface/Makefile.in to remove s-exctab.o and s-secsta.o from GNATLINK_OBJS and GNATMAKE_OBJS does the trick, see attached patch. -- Summary: Can't build gnatlink, gnatmake Product: gcc Version: 4.4.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: simon at pushface dot org GCC build triplet: *86*-apple-darwin10.2.0 GCC host triplet: *86*-apple-darwin10.2.0 GCC target triplet: *86*-apple-darwin10.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42554