This is the mail archive of the gcc-bugs@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]

Re: [c++] wchar_t instantiations missing now



......only it's not just wchar_t instantiations, it's narrow (char)
instantiations as well. It looks like member templates are not being
instantiated, even with explicit instantiations, as per the original mail.

from today's alpha build:

/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/../../gcc/g++
-B/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/../../gcc/
-ggdb3 -DDEBUG_ASSERT -ffunction-sections -fdata-sections -nostdinc++
-I/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/include
-I../../../src.gcc/libstdc++-v3/include/std
-I../../../src.gcc/libstdc++-v3/include/c
-I../../../src.gcc/libstdc++-v3/include
-I../../../src.gcc/libstdc++-v3/libsupc++
-I../../../src.gcc/libstdc++-v3/libio
-I../../../src.gcc/libstdc++-v3/testsuite
../../../src.gcc/libstdc++-v3/testsuite/17_intro/header_ciso646.cc -o
/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/testsuite/header_ciso646.sh-exe
-nodefaultlibs
/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/src/../libsupc++/.libs/libsupc++.a
-lm
/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so
-lm -lm -lm -lm -lc -lgcc -lc -Wl,--rpath
-Wl,/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/src/.libs
-Wl,--rpath -Wl,/fidel/ity/bkoz/H-alpha-gcc-3/lib
/fidel/ity/bkoz/bld-alpha-gcc-3/alphaev6-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so:
undefined reference to
`_ZNSsC1ISt17__normal_iteratorIPcSsEEET_S3_RKSaIcE' collect2: ld
returned 1 exit status


% c++filt --format=gnu-new-abi -n "_ZNSsC1ISt17__normal_iteratorIPcSsEEET_S3_RKSaIcE"

std::string::string<std::__normal_iterator<char*,
std::string>>(std::__normal_iterator<char*, std::string>,
std::__normal_iterator<char*, std::string>, std::allocator<char>
const&)

% nm string-inst.o |grep _ZNSsC1ISt17__normal_iteratorIPcSsEEET_S3_

                 U _ZNSsC1ISt17__normal_iteratorIPcSsEEET_S3_RKSaIcE


If you look at src/string-inst.o on x86/linux, you'll see that this
symbol is missing there as well. It should be there, and marked weak.

-benjamin

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