public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/44107]  New: libstdc++ (dylib) is built with an erroneous dependency towards /usr/lib
@ 2010-05-13  6:27 Denis dot Excoffier at airbus dot com
  2010-05-13  8:42 ` [Bug bootstrap/44107] " paolo dot carlini at oracle dot com
  0 siblings, 1 reply; 38+ messages in thread
From: Denis dot Excoffier at airbus dot com @ 2010-05-13  6:27 UTC (permalink / raw)
  To: gcc-bugs

The symptoms are that for some inputs, my C++ program gets stuck after a
`throw' and before the corresponding `catch', with CPU running. With an
appropriate DYLD_LIBRARY_PATH, the problem disappears.

The problem comes IMHO from libgcc/config/t-slibgcc-darwin (lines 29-35) where
libgcc_s.10.5.dylib is _not_ built. Therefore it remains absent from
$(objdir)/gcc. However, in the `specs' located in this directory, it is
referenced from within the `*libgcc:' target (see also lines 400 and 405 of
gcc/config/darwin.h). Consequently, libstdc++.6.dylib contains a dependency
towards /usr/lib/libgcc_s.10.5.dylib (see line 577 of
libstdc++-v3/src/Makefile.in, /usr/lib is a default directory), and this
dependency remains in my C++ executable (dynamically linked). The symptoms
follow (see explanations under the description of the option `-shared-libgcc'
of GCC).

I modified libgcc/config/t-slibgcc-darwin in order to build libgcc_s.10.5.dylib
in all cases and everything is now perfect. Perhaps a better solution would be
to remove the -lgcc_s.10.5 from the build of libstdc++.6.dylib.

Hope this helps. I grabbed the 4.5-20100506 snapshot and found no change in
this area. All the above lines and files are from the 4.5.0 distribution.


-- 
           Summary: libstdc++ (dylib) is built with an erroneous dependency
                    towards /usr/lib
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Denis dot Excoffier at airbus dot com
 GCC build triplet: powerpc-apple-darwin9.8.0
  GCC host triplet: powerpc-apple-darwin9.8.0
GCC target triplet: powerpc-apple-darwin9.8.0


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


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

end of thread, other threads:[~2023-05-16 19:14 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44107-4@http.gcc.gnu.org/bugzilla/>
2011-03-19 11:42 ` [Bug bootstrap/44107] libstdc++ (dylib) is built with an erroneous dependency towards /usr/lib Denis.Excoffier at airbus dot com
2011-03-19 11:42 ` mikestump at comcast dot net
2011-03-19 15:03 ` iains at gcc dot gnu.org
2011-03-19 15:13 ` iains at gcc dot gnu.org
2011-03-19 23:26 ` howarth at nitro dot med.uc.edu
2011-03-20 12:43 ` Denis.Excoffier at airbus dot com
2011-03-20 14:50 ` iains at gcc dot gnu.org
2011-03-20 14:52 ` howarth at nitro dot med.uc.edu
2011-03-20 21:10 ` Denis.Excoffier at airbus dot com
2011-03-20 21:27 ` iains at gcc dot gnu.org
2011-03-20 21:50 ` iains at gcc dot gnu.org
2011-03-21  8:18 ` Denis.Excoffier at airbus dot com
2011-03-21  8:34 ` iains at gcc dot gnu.org
2011-03-21 19:30 ` mikestump at comcast dot net
2011-04-28 16:28 ` rguenth at gcc dot gnu.org
2011-06-26 17:38 ` [Bug target/44107] gcc emits frame (epilogue) info incompatible with the darwin {8,9}-unwinder,10-compacter iains at gcc dot gnu.org
2011-12-11 19:53 ` gcc@Denis-Excoffier.org
2011-12-11 20:04 ` iains at gcc dot gnu.org
2013-07-16 13:02 ` iains at gcc dot gnu.org
2013-07-16 16:16 ` howarth at nitro dot med.uc.edu
2013-09-09 13:56 ` dominiq at lps dot ens.fr
2013-09-09 19:57 ` fang at csl dot cornell.edu
2013-09-09 21:46 ` mrs at gcc dot gnu.org
2013-09-10 13:57 ` howarth at nitro dot med.uc.edu
2013-09-14 11:58 ` iains at gcc dot gnu.org
2013-09-14 12:01 ` iains at gcc dot gnu.org
2014-01-22  7:58 ` gcc@Denis-Excoffier.org
2014-01-22  8:13 ` iains at gcc dot gnu.org
2014-01-22  8:58 ` gcc@Denis-Excoffier.org
2014-01-22 19:49 ` iains at gcc dot gnu.org
2014-11-03 19:44 ` fxcoudert at gcc dot gnu.org
2014-11-03 19:49 ` gcc@Denis-Excoffier.org
2021-02-28 15:36 ` egallager at gcc dot gnu.org
2021-03-01 19:37 ` cvs-commit at gcc dot gnu.org
2021-03-21 23:52 ` cvs-commit at gcc dot gnu.org
2021-05-01 13:08 ` cvs-commit at gcc dot gnu.org
2023-05-16 19:14 ` iains at gcc dot gnu.org
2010-05-13  6:27 [Bug bootstrap/44107] New: libstdc++ (dylib) is built with an erroneous dependency towards /usr/lib Denis dot Excoffier at airbus dot com
2010-05-13  8:42 ` [Bug bootstrap/44107] " paolo dot carlini at oracle dot com

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