public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26472]  New: Default path for libgcc_s.sl is build directory
@ 2006-02-26  1:39 danglin at gcc dot gnu dot org
  2006-02-26  2:50 ` [Bug target/26472] " pinskia at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 19+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-02-26  1:39 UTC (permalink / raw)
  To: gcc-bugs

This is a libtool installation issue.  The problem is libgcc_s isn't
a libtool library and we don't relink against the installed libgcc_s
when installing libraries such as libstdc++.sl.  As a result, we
have a default path for libgcc_s.sl pointing to the GCC build directory.

529 (hiauly1)dave> chatr libstdc++.sl
libstdc++.sl:
         shared library
         shared library dynamic path search:
             SHLIB_PATH     disabled  second
             embedded path  enabled   first  /opt/gnu/gcc/gcc-4.0.2/lib
         internal name:
             libstdc++.sl.6
         shared library list:
             dynamic   /usr/lib/libM.1
             dynamic   /xxx/gnu/gcc-3.3/objdir/gcc/libgcc_s.sl
             dynamic   /usr/lib/libc.1
         shared vtable support disabled
         static branch prediction disabled
         kernel assisted branch prediction enabled
         lazy swap allocation disabled
         text segment locking disabled
         data segment locking disabled
         third quadrant private data space disabled
         fourth quadrant private data space disabled
         data page size: 4K
         instruction page size: 4K

The important part is the dynamic path to libgcc_s:
/xxx/gnu/gcc-3.3/objdir/gcc/libgcc_s.sl.  This is the
absolete path for libgcc_s.sl in the build directory
rather than the install directory.

The HP dynamic loader has the unfortunate characteristic
of trying the default dynamic path before the embedded 
or SHLIB_PATH. If the build directory contains an incompatible
libgcc_s.sl (e.g., 64-bit build), the installation breaks.

HP-UX 11 ld has a '+nodefaultrpath' option which could fix
this, but it's not available on HP-UX 10.  So, it would be
better if libtool linked against the installed version of
libgcc_s.sl when installing other libraries which depend on
it.

This problem is present in all GCC versions.


-- 
           Summary: Default path for libgcc_s.sl is build directory
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa*-hp-hpux* (32-bit)
  GCC host triplet: hppa*-hp-hpux* (32-bit)
GCC target triplet: hppa*-hp-hpux* (32-bit)


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


^ permalink raw reply	[flat|nested] 19+ messages in thread
[parent not found: <bug-26472-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2014-08-12  1:13 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-26  1:39 [Bug target/26472] New: Default path for libgcc_s.sl is build directory danglin at gcc dot gnu dot org
2006-02-26  2:50 ` [Bug target/26472] " pinskia at gcc dot gnu dot org
2006-02-26  2:58 ` pinskia at gcc dot gnu dot org
2006-02-26  2:58 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-26  9:27 ` Ralf dot Wildenhues at gmx dot de
2006-02-26 16:17 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-26 17:22 ` Ralf dot Wildenhues at gmx dot de
2006-02-26 21:19 ` dave at hiauly1 dot hia dot nrc dot ca
2006-02-28  9:23 ` Ralf dot Wildenhues at gmx dot de
2006-02-28 14:38 ` dave at hiauly1 dot hia dot nrc dot ca
2006-03-01  7:24 ` Ralf dot Wildenhues at gmx dot de
2006-03-01 14:46 ` dave at hiauly1 dot hia dot nrc dot ca
2006-03-01 15:48 ` dave at hiauly1 dot hia dot nrc dot ca
2006-03-01 16:06 ` dave at hiauly1 dot hia dot nrc dot ca
2006-03-10  1:25 ` dave at hiauly1 dot hia dot nrc dot ca
     [not found] <bug-26472-4@http.gcc.gnu.org/bugzilla/>
2012-10-03 22:19 ` anilkris at hotmail dot com
2012-10-03 22:40 ` dave.anglin at bell dot net
2014-08-11 23:26 ` wzis at hotmail dot com
2014-08-12  1:13 ` dave.anglin at bell dot net

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