------- Additional Comments From dkouroun at cc dot uoi dot gr 2005-03-19 22:07 ------- Subject: Re: cannot link program which uses std::(vector. deque) in SuSE AMDx86_64
Quoting pcarlini at suse dot de <[EMAIL PROTECTED]>: > > ------- Additional Comments From pcarlini at suse dot de 2005-03-19 20:52 > ------- > Sorry about the apparently not-so-helpful reply, but really I think something > is > broken with your specific setup: if this were a real bug, then basically no > non-trivial c++ program would work on x86_64, and this is not the case, of > course. Could you possible add --verbose to your command line and attach the > output? It looks like a libstdc++ more recent than the system one is wrongly > linked against. Maybe you have a gcc3.4.x around?!? (the libstdc++ bundled > with > gcc3.4.x does not provide __default_alloc_template) > > P.S. In any case, this kind of report is more suited for the SUSE Bugzilla. > > -- > What |Removed |Added > ---------------------------------------------------------------------------- > Status|UNCONFIRMED |WAITING > Component|c++ |libstdc++ > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20559 > > ------- You are receiving this mail because: ------- > You reported the bug, or are watching the reporter. > the output of verbose: ------------------------ Reading specs from /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib64 --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib64 --with-system-zlib --enable-shared --enable-__cxa_atexit x86_64-suse-linux Thread model: posix gcc version 3.3.4 (pre 3.3.5 20040809) /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=4 -D_GNU_SOURCE testdeque.cc -D__GNUG__=3 -quiet -dumpbase testdeque.cc -auxbase testdeque -version -o /tmp/ccmslJ6h.s GNU C++ version 3.3.4 (pre 3.3.5 20040809) (x86_64-suse-linux) compiled by GNU C version 3.3.4 (pre 3.3.5 20040809). GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 #include "..." search starts here: #include <...> search starts here: /usr/include/g++ /usr/include/g++/x86_64-suse-linux /usr/include/g++/backward /usr/local/include /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/include /usr/x86_64-suse-linux/include /usr/include End of search list. /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/as -V -Qy -o /tmp/cceogBnW.o /tmp/ccmslJ6h.s GNU assembler version 2.15.91.0.2 (x86_64-suse-linux) using BFD version 2.15.91.0.2 20040727 (SuSE Linux) /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/collect2 --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o run /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/crt1.o /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/crti.o /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/crtbegin.o -L/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4 -L/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64 -L/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 /tmp/cceogBnW.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/crtend.o /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/crtn.o /tmp/cceogBnW.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE10deallocateEPim+0x28): In function `std::__simple_alloc<int, std::__default_alloc_template<(bool)1, (int)0> >::deallocate(int*, unsigned long)': : undefined reference to `std::__default_alloc_template<(bool)1, (int)0>::deallocate(void*, unsigned long)' /tmp/cceogBnW.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE8allocateEm+0x28): In function `std::__simple_alloc<int, std::__default_alloc_template<(bool)1, (int)0> >::allocate(unsigned long)': : undefined reference to `std::__default_alloc_template<(bool)1, (int)0>::allocate(unsigned long)' collect2: ld returned 1 exit status ------------- -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20559