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

Reply via email to