Selecting which glibc to use

I’ve cross compiled busybox and when I run it on the bone I get:
./busybox.dynamic: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29’ not found (required by ./busybox.dynamic)

So, two questions:
When cross compiling, how do I get it to compile against glic 2.28?

How do I install glic 2.29 on my Bone?

–Mark

What process did you use to cross compile?

What I do when cross compiling is to rsync the /sbin, /lib, /usr/lib and /usr/include from the BB to the build host in a sysroot folder. Then direct the build to this location for the libs and includes.
Ex:
rsync -avz debian@192.168.7.2:/lib sysroot

Cheers,

Jon

Glibc should already be part of your beaglebone debian distro. Glibc version is something your distro and your cross toolchain must agree on.

Easiest solution is to build busybox statically.

If you insist on a dynamically linked executable, you can try building with another cross toolchain.

Regards,
Dimitar

В 21:15:15 UTC+3на петък, 23 октомври 2020 г. Mark A. Yoder написа:

You could download the 2.28 version of glibc and build using that.
See this link for an example:
https://wiki.beyondlogic.org/index.php?title=Cross_Compiling_BusyBox_for_ARM

Cheers,

Jon