LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-10-2012, 07:33 AM   #1
sakishrist
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Rep: Reputation: Disabled
libm.so.6 and libstdc++.so.6 not found but they exist


Hello everyone,

I am facing a strange problem, trying to build buildroot on Arch: warnings about libm.so.6 and libstdc++.so.6 not being found.

Actually here is the whole error:
Code:
/usr/bin/gcc  -O2 -I/home/sakishrist/Desktop/buildroot-2012.02/output/host/include -I/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/lib -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -Wl,-rpath,/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \
  dummy-checksum.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lppl_c -lppl -lgmpxx -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libm.so.6, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::invalid_argument@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::length_error::length_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::istream@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_allocate_exception@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::istream& std::istream::_M_extract<unsigned long>(unsigned long&)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream::put(char)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::assign(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::compare(unsigned long, unsigned long, char const*) const@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream& std::ostream::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_throw@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::locale::locale()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_guard_release@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fetestexcept@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::logic_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::~basic_ios()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::runtime_error::runtime_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::runtime_error::~runtime_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::length_error::~length_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::istream::putback(char)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::_M_mutate(unsigned long, unsigned long, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `operator new(unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::locale::~locale()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_guard_acquire@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_logic_error(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream& std::istream::_M_extract<unsigned short>(unsigned short&)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for int@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_end_catch@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_rethrow@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::ios_base()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::basic_streambuf<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_Rep::_S_empty_rep_storage@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::reserve(unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::invalid_argument::~invalid_argument()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::length_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `feclearexcept@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream::flush()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::cout@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::domain_error::~domain_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `rint@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `__cxa_call_unexpected@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_bad_cast()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >::~basic_istream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::swap(std::__detail::_List_node_base&, std::__detail::_List_node_base&)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::logic_error::~logic_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::Init::Init()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `sqrt@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::domain_error::domain_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream::get(char&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::setbuf(char*, long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned long, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::istream& std::istream::_M_extract<unsigned int>(unsigned int&)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::Init::~Init()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fegetround@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_free_exception@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::overflow_error::~overflow_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::bad_alloc@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_out_of_range(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::logic_error::logic_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::ostream::write(char const*, long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_guard_abort@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::showmanyc()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::overflow_error::overflow_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::exception@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream::unget()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::numpunct<char> const& std::use_facet<std::numpunct<char> >(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::runtime_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fesetround@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::imbue(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `__dynamic_cast@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::append(char const*, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream::operator>>(int&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::compare(char const*) const@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::ostream@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_M_leak_hard()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream::operator<<(int)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_begin_catch@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::~ios_base()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ostream& std::ostream::_M_insert<double>(double)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `operator new[](unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::string::assign(char const*, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_bad_alloc()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::cerr@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::invalid_argument::invalid_argument(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::operator>><char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::locale::locale(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::append(unsigned long, char)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::ctype<char> const& std::use_facet<std::ctype<char> >(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::overflow_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::domain_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::terminate()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fmod@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)@GLIBCXX_3.4'
collect2: error: ld returned 1 exit status
make[2]: *** [cc1-dummy] Error 1
make[2]: Leaving directory `/home/sakishrist/Desktop/buildroot-2012.02/output/toolchain/gcc-4.5.3-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/sakishrist/Desktop/buildroot-2012.02/output/toolchain/gcc-4.5.3-initial'
make: *** [/home/sakishrist/Desktop/buildroot-2012.02/output/toolchain/gcc-4.5.3-initial/.compiled] Error 2
Am I right to believe the warnings are the cause of these errors? If so, could you give any hints as to why this would be happening.

I tried the build process on a chrooted debian and it actually got through that stage without any problems.

Thanks in advance!
 
Old 04-11-2012, 01:59 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
yes, it looks like you do not have libstdc++.so.6 and libm.so.6

You may need to look around in /usr/lib, how was libstdc++.so installed.
maybe this will help you: http://dev.modmancer.com/index.php/2...-ubuntu-10-10/
 
Old 04-11-2012, 05:48 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 37
Quote:
Originally Posted by sakishrist View Post
Hello everyone,

I am facing a strange problem, trying to build buildroot on Arch: warnings about libm.so.6 and libstdc++.so.6 not being found.

Actually here is the whole error:
Code:
/usr/bin/gcc  -O2 -I/home/sakishrist/Desktop/buildroot-2012.02/output/host/include -I/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/include -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat   -DHAVE_CONFIG_H -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/lib -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -Wl,-rpath,/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o c-pch.o c-parser.o i386-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o c-omp.o \
  dummy-checksum.o main.o  libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lppl_c -lppl -lgmpxx -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -L/home/sakishrist/Desktop/buildroot-2012.02/output/host/usr/lib -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz 
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../x86_64-unknown-linux-gnu/bin/ld: warning: libm.so.6, needed by /usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so, not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::invalid_argument@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_streambuf<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::length_error::length_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::istream@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_allocate_exception@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::init(std::basic_streambuf<char, std::char_traits<char> >*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::istream& std::istream::_M_extract<unsigned long>(unsigned long&)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >::~basic_ostream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream::put(char)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::assign(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_Rep::_M_destroy(std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::_M_unhook()@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::compare(unsigned long, unsigned long, char const*) const@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream& std::ostream::_M_insert<bool>(bool)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_throw@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `operator delete(void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::locale::locale()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_guard_release@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fetestexcept@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::logic_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::~basic_ios()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::runtime_error::runtime_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::runtime_error::~runtime_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::length_error::~length_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::istream::putback(char)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::_M_mutate(unsigned long, unsigned long, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `operator new(unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::locale::~locale()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_guard_acquire@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_logic_error(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream& std::istream::_M_extract<unsigned short>(unsigned short&)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for int@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_decrement(std::_Rb_tree_node_base const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for __cxxabiv1::__class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_end_catch@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_rethrow@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::ios_base()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::basic_ostringstream(std::_Ios_Openmode)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::basic_streambuf<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_Rep::_S_empty_rep_storage@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::reserve(unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::invalid_argument::~invalid_argument()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_increment(std::_Rb_tree_node_base const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_ios<char, std::char_traits<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::length_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::str() const@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `feclearexcept@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream::flush()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `VTT for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ctype<char>::_M_widen_init() const@GLIBCXX_3.4.11'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::cout@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::domain_error::~domain_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `rint@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `__cxa_call_unexpected@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_bad_cast()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >::~basic_istream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::swap(std::__detail::_List_node_base&, std::__detail::_List_node_base&)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::logic_error::~logic_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::Init::Init()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `sqrt@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::domain_error::domain_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__gxx_personality_v0@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream::get(char&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::setbuf(char*, long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&, unsigned long, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::istream& std::istream::_M_extract<unsigned int>(unsigned int&)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::Init::~Init()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fegetround@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_free_exception@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::overflow_error::~overflow_error()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `operator delete[](void*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::bad_alloc@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_out_of_range(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::logic_error::logic_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::ostream::write(char const*, long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_guard_abort@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::showmanyc()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::overflow_error::overflow_error(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::exception@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream::unget()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::numpunct<char> const& std::use_facet<std::numpunct<char> >(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::runtime_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fesetround@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::imbue(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_streambuf<char, std::char_traits<char> >::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `__dynamic_cast@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::append(char const*, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::istream::operator>>(int&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::compare(char const*) const@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `vtable for std::ostream@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_length_error(char const*)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::string::_M_leak_hard()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::ostream::operator<<(int)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_begin_catch@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ios_base::~ios_base()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::ostream& std::ostream::_M_insert<double>(double)@GLIBCXX_3.4.9'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `operator new[](unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `__cxa_pure_virtual@CXXABI_1.3'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::string::assign(char const*, unsigned long)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__throw_bad_alloc()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::cerr@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::invalid_argument::invalid_argument(std::string const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::basic_istream<char, std::char_traits<char> >& std::operator>><char, std::char_traits<char>, std::allocator<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::__detail::_List_node_base::_M_transfer(std::__detail::_List_node_base*, std::__detail::_List_node_base*)@GLIBCXX_3.4.15'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::locale::locale(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::string::append(unsigned long, char)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libgmpxx.so: undefined reference to `std::ctype<char> const& std::use_facet<std::ctype<char> >(std::locale const&)@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::overflow_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `typeinfo for std::domain_error@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `std::terminate()@GLIBCXX_3.4'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl_c.so: undefined reference to `fmod@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../lib/libppl.so: undefined reference to `std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)@GLIBCXX_3.4'
collect2: error: ld returned 1 exit status
make[2]: *** [cc1-dummy] Error 1
make[2]: Leaving directory `/home/sakishrist/Desktop/buildroot-2012.02/output/toolchain/gcc-4.5.3-initial/gcc'
make[1]: *** [all-gcc] Error 2
make[1]: Leaving directory `/home/sakishrist/Desktop/buildroot-2012.02/output/toolchain/gcc-4.5.3-initial'
make: *** [/home/sakishrist/Desktop/buildroot-2012.02/output/toolchain/gcc-4.5.3-initial/.compiled] Error 2
Am I right to believe the warnings are the cause of these errors? If so, could you give any hints as to why this would be happening.

I tried the build process on a chrooted debian and it actually got through that stage without any problems.

Thanks in advance!
You will need to install below rpms so that the error wont come.
Code:
ppl-devel-32bit-0.11.2-6.1.5.x86_64.rpm
You can get this details from

http://rpmfind.net/linux/rpm2html/search.php?query=libppl_c.so&submit=Search+...&system=&arch=

Last edited by pinga123; 04-11-2012 at 06:00 AM.
 
Old 04-11-2012, 08:58 AM   #4
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
run the ldconfig command first in case you do have them and they arnt linked.
 
Old 04-18-2012, 02:15 AM   #5
sakishrist
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Hello again,

Sorry for the delay and thanks for the attention!

@Frustin
I did that and I still get the same error.

@Pinga123
I did that as well but it didn't help. The output is the same.

@Pan64
ldconfig -p gives this:
Code:
$ sudo ldconfig -p | grep "libm.so.6"
	libm.so.6 (libc6,x86-64, OS ABI: Linux 2.6.32) => /lib/libm.so.6
	libm.so.6 (libc6, OS ABI: Linux 2.6.32) => /usr/lib32/libm.so.6
Code:
$ sudo ldconfig -p | grep "libstdc++.so.6"
	libstdc++.so.6 (libc6,x86-64) => /usr/lib/libstdc++.so.6
	libstdc++.so.6 (libc6) => /usr/lib32/libstdc++.so.6
 
Old 04-18-2012, 02:36 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
that is ok, but can you find those libs in /usr/lib and /lib?
 
Old 04-18-2012, 02:42 AM   #7
sakishrist
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
I can find libm.so.6 in /lib, not in /usr/lib. libstdc++.so.6 can be found in /usr/lib but not in /lib.
 
Old 04-18-2012, 03:26 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
maybe this helps: http://gcc.gnu.org/faq.html#rpath
 
Old 04-27-2012, 06:42 AM   #9
sakishrist
LQ Newbie
 
Registered: Aug 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Ld_library_path

It seems I had to set LD_LIBRARY_PATH which was not set when I begun the build. Shouldn't that be already (automatically) set to something?

Thanks in advance!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] libstdc++-libc6.2-2.so.3 => not found dotilaso Red Hat 4 07-30-2010 01:42 AM
libstdc++-libc6.2.2.so.3 not found dennisparrott Linux - Software 3 01-24-2005 06:10 AM
libstdc++ can't be found darrenjhopkins Linux - Newbie 5 12-07-2004 08:24 AM
libstdc++-libc6.2-2.so.3 doesn't exist BradDaBug Debian 2 11-10-2004 04:43 PM
libstdc++ not found, though installed GTBlackwell Linux - Software 4 07-10-2004 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration