public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/19962] New: local dependencies permeated throughout other libraries instead of for $prefix/lib
@ 2005-02-15  6:44 quanah at stanford dot edu
  2005-02-15  8:06 ` [Bug libstdc++/19962] " pinskia at gcc dot gnu dot org
  2005-02-15 12:33 ` quanah at stanford dot edu
  0 siblings, 2 replies; 3+ messages in thread
From: quanah at stanford dot edu @ 2005-02-15  6:44 UTC (permalink / raw)
  To: gcc-bugs

The dependency tracker inherited by a variety of libraries, like libstdc++.la
keeps local dependencies.  Since it is never installed via libtool, its
dependencies are never fixed based on the installation prefix defined at
configure.  Because of this, the installed .la files point to invalid locations
for their dependencies.

An example of our build is configured as:


cd ../gcc-build/sun4x_58 && CFLAGS=-O CC=gcc sh ../../gcc-3.4.3/configure \
    --datadir='${prefix}/lib' --libexecdir='${prefix}/lib' \
    --sharedstatedir='${prefix}/lib' --prefix=/usr/pubsw \
    --enable-threads \
    --disable-multilib \
    --with-gnu-as \
    --with-as=/usr/pubsw/bin/as \
    --with-gnu-ld \
    --with-ld=/usr/pubsw/bin/ld \
    --with-included-gettext \
    --with-libintl-prefix=/usr/pubsw \
    --with-libiconv-prefix=/usr/pubsw

It is then installed as:

cd ../gcc-build/sun4x_58 && make install
DESTDIR=/afs/.ir/pubsw/Languages/gcc-3.4.3/sun4x_58


Note that correct dependencies via .la files should look in /usr/pubsw/lib. 
This however, does not appear to happen with any of the .la files that would use
it, and all the incorrect ones

grep dependency_libs libsupc++.la
dependency_libs='
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libstdc++-v3/src
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libstdc++-v3/src/.libs
-lm -L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/gcc
-L/usr/pubsw/bin -L/usr/pubsw/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib
-lgcc_s -lgcc_s'

grep dependency_libs libstdc++.la
dependency_libs='
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libstdc++-v3/src
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libstdc++-v3/src/.libs
-lm -lm -lm -L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/gcc
-L/usr/pubsw/bin -L/usr/pubsw/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib
-lgcc_s -lgcc_s -lm -lgcc_s -lgcc_s'


grep dependency_libs libgcj.la
dependency_libs='
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libstdc++-v3/src
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libstdc++-v3/src/.libs
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/sparc-sun-solaris2.8/libjava
-lpthread -lrt -ldl
-L/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/sun4x_58/gcc
-L/usr/pubsw/bin -L/usr/pubsw/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/lib
-lgcc_s -lgcc_s'


etc.  This is totally broken.

--Quanah

-- 
           Summary: local dependencies permeated throughout other libraries
                    instead of for $prefix/lib
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: quanah at stanford dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: all platforms
  GCC host triplet: all platforms
GCC target triplet: all platforms


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


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

* [Bug libstdc++/19962] local dependencies permeated throughout other libraries instead of for $prefix/lib
  2005-02-15  6:44 [Bug libstdc++/19962] New: local dependencies permeated throughout other libraries instead of for $prefix/lib quanah at stanford dot edu
@ 2005-02-15  8:06 ` pinskia at gcc dot gnu dot org
  2005-02-15 12:33 ` quanah at stanford dot edu
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-15  8:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-15 00:36 -------
This seems like a libtool bug.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug libstdc++/19962] local dependencies permeated throughout other libraries instead of for $prefix/lib
  2005-02-15  6:44 [Bug libstdc++/19962] New: local dependencies permeated throughout other libraries instead of for $prefix/lib quanah at stanford dot edu
  2005-02-15  8:06 ` [Bug libstdc++/19962] " pinskia at gcc dot gnu dot org
@ 2005-02-15 12:33 ` quanah at stanford dot edu
  1 sibling, 0 replies; 3+ messages in thread
From: quanah at stanford dot edu @ 2005-02-15 12:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From quanah at stanford dot edu  2005-02-15 01:00 -------
To note, I'm using libtool 1.5.8

-- 


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


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

end of thread, other threads:[~2005-02-15  1:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-15  6:44 [Bug libstdc++/19962] New: local dependencies permeated throughout other libraries instead of for $prefix/lib quanah at stanford dot edu
2005-02-15  8:06 ` [Bug libstdc++/19962] " pinskia at gcc dot gnu dot org
2005-02-15 12:33 ` quanah at stanford dot edu

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