I cross-compiled some code on my PC using
/usr/bin/arm-linux-gnueabi-gcc-4.6
Upon running the program, I got the following error message:
./realfft: /lib/libm.so.6: version `GLIBC_2.15' not found (required by
./realfft)
I've gotten this same error message from utilities installed from the
repository. Google says that there's great confusion about this.
The solution is simple. The correct math library is located in
/usr/arm-linux-gnueabi/lib/libm.so.6
on my Ubuntu machine. So all it took to fix the problem was an scp:
scp jgd@neonjohn:/usr/arm-linux-gnueabi/lib/libm.so.6 root@maggie:/lib
neonjohn is the name of my Ubuntu machine and maggie is the name of my
beaglebone.
re-compile the code I was working on and everything is fine.
If you don't have the above library then install the proper Ubuntu package:
sudo apt-get install gcc-4.6-arm-linux-gnueabi
and if you want C++:
sudo apt-get install g++-4.6-arm-linux-gnueabi
Enjoy
John