I've built GCC-4.1.1, configured with:

 ../configure --prefix=/opt/gcc-4.1.1 --enable-threads=posix --with-dwarf2
--enable-languages=c,c++ --with-as=/opt/binutils-2.17/bin/as
--with-ld=/opt/binutils-2.17/bin/ld --enable-shared --disable-checking
--with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions

using GCC-3.4.6. Now some programs compiled using the new compiler fail on
linking:

/usr/lib/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'

The compiler is looking for libstdc++ in /usr/lib, however its libstdc++ is
placed in an appropriate subdirectory of /opt/gcc-4.1.1. The function
[EMAIL PROTECTED] is also a mystery, as it should be a part of
GCC-4.2.

Previously options were 

 ../configure --prefix=/opt/gcc-4.1.1 --enable-threads=posix --with-dwarf2
--enable-languages=c,c++

but it makes no difference.


-- 
           Summary: Wrong libstdc++ selected
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wyderski at ii dot uni dot wroc dot pl
 GCC build triplet: Linux RedHat, IA-32, GCC-3.4.6
  GCC host triplet: Linux RedHat, IA-32, GCC-4.1.1


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

Reply via email to