Christoph Straehle
2008-Feb-02 17:58 UTC
[LLVMdev] another llvm-gcc-4.2 compilation problem
hi, i also have problems compiling llvm-gcc (current svn version). llvm is current llvm svn. i tried to use every gcc version from 4.0 to 4.3 to compile llvm-gcc. i configured llvm-gcc like this (and tried every other combination of disable-shared, disable-multilib and bootstrap) : ../llvm-gcc/configure --prefix=/usr --enable-llvm=/usr --enable-languages=c,c++ --disable-shared --disable-multilib --disable-bootstrap this error occurs during link time : libbackend.a(llvm-backend.o):(.rodata._ZTC11oFILEstream0_So[vtable for oFILEstream]+0xc): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()' libbackend.a(llvm-backend.o):(.rodata._ZTC11oFILEstream0_So[vtable for oFILEstream]+0x10): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()' libbackend.a(llvm-backend.o):(.rodata._ZTC11oFILEstream0_So[vtable for oFILEstream]+0x20): undefined reference to `virtual thunk to std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()' libbackend.a(llvm-backend.o):(.rodata._ZTC11oFILEstream0_So[vtable for oFILEstream]+0x24): undefined reference to `virtual thunk to std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()' libbackend.a(llvm-backend.o):(.rodata._ZTVN9__gnu_cxx13stdio_filebufIcSt11char_traitsIcEEE[vtable for __gnu_cxx::stdio_filebuf<char, std::char_traits<char> >]+0x30): undefined reference to `std::basic_streambuf<char, std::char_traits<char>>::uflow()'libbackend.a(llvm-convert.o): In function `TreeToLLVM::CreateTemporary(llvm::Type const*)': llvm-convert.cpp:(.text+0x427): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string()'llvm-convert.cpp:(.text+0x491): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string()'llvm-convert.cpp:(.text+0x532): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string()'llvm-convert.cpp:(.text+0x548): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char>>::~basic_string()'libbackend.a(llvm-convert.o): In function `TreeToLLVM::getIndirectGotoBlock()': .............. is the current llvm-gcc broken on linux or am i missing something here ? greetings -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080202/03ba3288/attachment.html>