Selecting which glibc to use

144 views
Skip to first unread message

Mark A. Yoder

unread,
Oct 23, 2020, 2:15:15 PM10/23/20
to BeagleBoard
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

jonnymo

unread,
Oct 23, 2020, 3:59:04 PM10/23/20
to Beagle Board
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 deb...@192.168.7.2:/lib sysroot 


Cheers,

Jon

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/7d30c709-1b4b-48ec-a8dc-79b1809cce2dn%40googlegroups.com.

din...@gmail.com

unread,
Oct 23, 2020, 4:02:18 PM10/23/20
to BeagleBoard
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

jonnymo

unread,
Oct 23, 2020, 4:42:26 PM10/23/20
to Beagle Board
You could download the 2.28 version of glibc and build using that.
See this link for an example:


Cheers,

Jon

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages