https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65725
Fredrik Nyström <fredrik at lysator dot liu.se> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fredrik at lysator dot liu.se --- Comment #3 from Fredrik Nyström <fredrik at lysator dot liu.se> --- (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}" Also "--disable-shared --with-pic" is still broken (since 4.7.?), see PR libstdc++/58638 for suggested patch. > 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