https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65725

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |ro at gcc dot gnu.org

--- Comment #6 from Rainer Orth <ro at gcc dot gnu.org> ---
(In reply to Fredrik Nyström from comment #3)
> (In reply to Daniel Richard G. from comment #0)
> > 1. Missing libgcc-unwind.map file
> 
> 1. Is caused by LINK_LIBGCC_MAPFILE_SPEC being set in gcc/config/sol2.h even
> if configured with --disable-shared. This has been around since PR
> target/59788.
> 
> I've had success on solaris 10, both sparc and x86 with following fix.
> 
> --- gcc/config/sol2.h.orig      2014-05-28 13:37:50.000000000 +0200
> +++ gcc/config/sol2.h   2015-09-03 14:23:19.950566000 +0200
> @@ -174,7 +174,7 @@
>  #define RDYNAMIC_SPEC "--export-dynamic"
>  #endif
>  
> -#ifndef USE_GLD
> +#if !defined(USE_GLD) && defined(ENABLE_SHARED_LIBGCC)
>  /* With Sun ld, use mapfile to enforce direct binding to libgcc_s unwinder.
> */
>  #define LINK_LIBGCC_MAPFILE_SPEC \
>    "%{shared|shared-libgcc:-M %slibgcc-unwind.map}"

Thanks for the patch. It makes perfect send and I've now installed it on
mainline.

> > 2. stage2 vs. stage3 diffs
> 
> Are you sure you want /usr/ccs/bin/as on solaris x86?
> Have you tried with gnu as?
> --with-gnu-as
> --with-as=/usr/sfw/bin/gas

There's something to be said for using gas, but the Solaris 10 gas is ancient
by today' standards.  That said, I regularly bootstrap gcc on Solaris 10 with
both as and gas, and both work for me.

When trying a mainline bootstrap, I've run into quite a number of issues
(libcc1 and ada not building), but once I've worked around those, I could
bootstrap on amd64-pc-solaris2.11 (admittedly) with as/ld without comparison
failures.  This was without --with-pic, which I'll try next.

Reply via email to