[Buildroot] problem generating c++ compiler for target arch

lists at primefarm.co.uk lists at primefarm.co.uk
Wed Nov 22 20:21:00 UTC 2006


OK,

I managed to get buildroot to complete the build at last. Sadly, the c++
compiler is b0rked.

Looks like it's missing all sorts of libraries and things. Here is some
sample output trying to compile a very simple program (C++ hello world):


david at tulip:~/buildroot/build_arm/staging_dir/bin$ ./arm-linux-gcc foo.cpp
/tmp/ccNH0d2c.o: In function `std::__verify_grouping(char const*, unsigned
int, std::basic_string<char, std::char_traits<char>, std::allocator<char>
> const&)':
foo.cpp:(.text+0x20): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::size() const'
foo.cpp:(.text+0x98): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::operator[](unsigned int)
const'
foo.cpp:(.text+0x100): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::operator[](unsigned int)
const'
foo.cpp:(.text+0x144): undefined reference to `std::basic_string<char,
std::char_traits<char>, std::allocator<char> >::operator[](unsigned int)
const'
/tmp/ccNH0d2c.o: In function `main':
foo.cpp:(.text+0x1ac): 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*)'
foo.cpp:(.text+0x1bc): undefined reference to `std::cout'
/tmp/ccNH0d2c.o: In function
`__static_initialization_and_destruction_0(int, int)':
foo.cpp:(.text+0x200): undefined reference to `std::ios_base::Init::Init()'
foo.cpp:(.text+0x228): undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
david at tulip:~/buildroot/build_arm/staging_dir/bin$ cat foo.cpp
cat: foo.cpp: No such file or directory


All sorts of things missing there - have I inadvertantly broken lots of
buildroot?

David



More information about the buildroot mailing list