This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

C++ libgcc_s linkage problems with today's CVS



What's up with this? 

mgd@coyote[~] $ cat hello.cc
#include <ostream.h>

int
main (int argc, const char **argv)
{
  cout << "Hello World";
}

mgd@coyote[~] $ c++ hello.cc 
/tmp/ccWJlv4i.o: In function `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)':
/tmp/ccWJlv4i.o(.gnu.linkonce.t._ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc+0x199): undefined reference to `_Unwind_Resume'
/tmp/ccWJlv4i.o: In function `std::ostream::write(char const*, int)':
/tmp/ccWJlv4i.o(.gnu.linkonce.t._ZNSo5writeEPKci+0xa8): undefined reference to `_Unwind_Resume'
/tmp/ccWJlv4i.o: In function `std::ostream::flush()':
/tmp/ccWJlv4i.o(.gnu.linkonce.t._ZNSo5flushEv+0xbb): undefined reference to `_Unwind_Resume'
/tmp/ccWJlv4i.o: In function `std::_Format_cache<char>::_S_get(std::ios_base&)':
/tmp/ccWJlv4i.o(.gnu.linkonce.t._ZNSt13_Format_cacheIcE6_S_getERSt8ios_base+0x9e): undefined reference to `_Unwind_Resume'
/tmp/ccWJlv4i.o(.gnu.linkonce.t._ZNSt13_Format_cacheIcE6_S_getERSt8ios_base+0xfe): undefined reference to `_Unwind_Resume'
/tmp/ccWJlv4i.o(.gnu.linkonce.t._ZNSt13_Format_cacheIcE11_S_callbackENSt8ios_base5eventERS1_i+0x133): more undefined references to `_Unwind_Resume' follow
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_Resume@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_SetGR@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_GetLanguageSpecificData@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_GetIP@GCC_3.0'
/disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/../../../../i686-pc-linux-gnu/lib/libstdc++.so: undefined reference to `_Unwind_SetIP@GCC_3.0'
collect2: ld returned 1 exit status

mgd@coyote[/disk1/packages/lib] $ nm libgcc_s.so | grep GetIP
000062f0 T _Unwind_GetIP

mgd@coyote[/disk1/src/gcc/gcc] $ c++ -v
Reading specs from /disk1/packages/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
Configured with: /disk1/src/gcc/configure --prefix=/disk1/packages --srcdir=/disk1/src/gcc --infodir=/opt/src/mgd/common/info --mandir=/opt/src/mgd/common/man --datadir=/opt/src/mgd/common/share
gcc version 3.1 20010331 (experimental)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]