This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/17366] New: Installed libstdc++.la depends on GCC build directory
- From: "bfriesen at simple dot dallas dot tx dot us" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Sep 2004 01:55:33 -0000
- Subject: [Bug libstdc++/17366] New: Installed libstdc++.la depends on GCC build directory
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The installed libstdc++.la file includes:
# Libraries that this one depends upon.
dependency_libs='
-L/scratch/bfriesen/build/gcc-3.4.2/sparc-sun-solaris2.9/libstdc++-v3/src
-L/scratch/bfriesen/build/gcc-3.4
.2/sparc-sun-solaris2.9/libstdc++-v3/src/.libs -lm -lm -lm
-L/scratch/bfriesen/build/gcc-3.4.2/gcc -L/usr/ccs/bin -L/usr/ccs/
lib -L/usr/local/lib/gcc/sparc-sun-solaris2.9/../.. -lgcc_s -lgcc_s -lm -lgcc_s
-lgcc_s'
Notice that there are references to the GCC build directory. This bug has
existed since GCC incorporated libtool in its build.
The result of this is that packages built using libtool fail to link with an
error similar to:
ld: fatal: recording name conflict: file
`/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/libstdc++.so' and file
`/scratch/bfriesen/build/gcc-3.4.2/sparc-sun-solaris2.9/libstdc++-v3/src/.libs/libstdc++.so'
provide identical dependency names: libstdc++.so.6 (possible multiple inclusion
of the same file)
(if you are lucky) unless either libstdc++.la is edited to remove the error, or
the GCC build directory is removed.
--
Summary: Installed libstdc++.la depends on GCC build directory
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bfriesen at simple dot dallas dot tx dot us
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: sparc-sun-solaris2.9
GCC host triplet: sparc-sun-solaris2.9
GCC target triplet: sparc-sun-solaris2.9
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17366