Oprofile

Graham Woodward graham_woodwarduk at yahoo.co.uk
Thu Jan 26 10:43:12 UTC 2012


OK I realised my mistake, I was using gcc and not g++. Sorry folks.



________________________________
 From: Graham Woodward <graham_woodwarduk at yahoo.co.uk>
To: "uclibc at uclibc.org" <uclibc at uclibc.org> 
Sent: Thursday, 26 January 2012, 10:33
Subject: Oprofile
 
Hi,

I've been given a mips cross compiler built to use uclibc

[usr/bin/mips24k-linux-gcc -v
Using built-in specs.
Target: mips-linux-uclibc
Configured with: /mnt/disk16/zyf/sxl/buildroot-8-5/toolchain_build_mips_nofpu/gcc-4.2.3/configure --prefix=/usr --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=mips-linux-uclibc --program-transform-name=s,^,mips24k-linux-, --enable-languages=c,c++ --with-sysroot=/opt/cross-mips-sx --with-build-time-tools=/opt/cross-mips-sx/usr/mips-linux-uclibc/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --enable-shared --with-gmp=/mnt/disk16/zyf/sxl/buildroot-8-5/toolchain_build_mips_nofpu/gmp --with-mpfr=/mnt/disk16/zyf/sxl/buildroot-8-5/toolchain_build_mips_nofpu/mpfr --disable-nls --enable-threads --disable-multilib --with-float=soft --with-abi=32 --with-arch=mips32r2 --with-tune=mips32r2 --enable-sjlj-exceptions --with-versuffix=trident gcc 20110524
Thread model: posix
gcc version 4.2.3]

and I'm trying to cross compile oprofile for mips. All goes well until link stage where I seem to get a load of undefined references to. Most notably std::basic_ostream and std::basic_string

[In function `__static_initialization_and_destruction_0':
cross-mips-sx/usr/bin/../lib/gcc/mips-linux-uclibc/4.2.3/../../../../mips-linux-uclibc/include/c++/4.2.3/iostream:77: undefined reference to `std::ios_base::Init::Init()'
opimport.o: In function `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_M_refdata()':]
Can anyone help with this?

Thanks,
Graham
_______________________________________________
uClibc mailing list
uClibc at uclibc.org
http://lists.busybox.net/mailman/listinfo/uclibc


More information about the uClibc mailing list