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/ 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?


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.
rsync -avz debian@ sysroot



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.


В 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: