std::string::_Rep::_S_max_size

Roland Persson roland.persson@blaze.com
Wed Jun 14 12:00:00 GMT 2006


Hi,

I'm trying to run the gcc testsuite for my gcc backend, almost everything
works but I get a lot of the following:

/usr/local/gonative/lib/libstdc++.a(locale-inst.o): In function
`std::istreambuf_iterator<char, std::char_traits<char> > std::num_get<char,
std::istreambuf_iterator<char, std::char_traits<char> >
>::_M_extract_int<unsigned long long>(std::istreambuf_iterator<char,
std::char_traits<char> >, std::istreambuf_iterator<char,
std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, unsigned long
long&) const':
/home/roland/projects/tools/gonative/gcc-build/pip/libstdc++-v3/include/stre
ambuf:730: undefined reference to `std::string::_Rep::_S_max_size'
/home/roland/projects/tools/gonative/gcc-build/pip/libstdc++-v3/include/stre
ambuf:730: undefined reference to `std::string::_Rep::_S_max_size'
/home/roland/projects/tools/gonative/gcc-build/pip/libstdc++-v3/include/stre
ambuf:730: undefined reference to `std::string::_Rep::_S_max_size'
/home/roland/projects/tools/gonative/gcc-build/pip/libstdc++-v3/include/stre
ambuf:730: undefined reference to `std::string::_Rep::_S_max_size'
/usr/local/gonative/lib/libstdc++.a(locale-inst.o): In function
`std::istreambuf_iterator<char, std::char_traits<char> > std::num_get<char,
std::istreambuf_iterator<char, std::char_traits<char> >
>::_M_extract_int<long long>(std::istreambuf_iterator<char,
std::char_traits<char> >, std::istreambuf_iterator<char,
std::char_traits<char> >, std::ios_base&, std::_Ios_Iostate&, long long&)
const':
/home/roland/projects/tools/gonative/gcc-build/pip/libstdc++-v3/include/stre
ambuf:723: undefined reference to `std::string::_Rep::_S_max_size'
/usr/local/gonative/lib/libstdc++.a(locale-inst.o):/home/roland/projects/too
ls/gonative/gcc-build/pip/libstdc++-v3/include/streambuf:723: more undefined
references to `std::string::_Rep::_S_max_size' follow

I'm using gcc 3.4.6 and binutils 2.16. I've searched around a bit and have
seen some mentions of this being related to weak symbols. Since I can modify
both my gcc and my binutils I'd like to solve the problem that way but I'm
not really sure what the problem is or where to get started.

Is the problem that my gcc doesn't produce the required symbol or that my
binutils cannot find it when linking. 

I'm building libstdc++-v3 without precompiled headers as make install fails
otherwise, could this be a problem?

Any pointers would be appreciated.

/Roland





More information about the Libstdc++ mailing list