Update GLIBC - GruszekG/nanny GitHub Wiki
Error message
"version 'GLIBC_2.27' not found"
Problem
A cross-compiling problem caused by different versions of glibc between the platform where you compiled and the BBB where you copied the executable and tried to run.
Check if this is your case in each platform with:
ldd --version
Solution 1
Downgrade the tool chain version.
- Beaglebone GLIBC version:
debian@beaglebone:~$ ldd --version ldd (Debian GLIBC 2.28-10) 2.28 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
- Set tool chain version at Ubuntu 20.04:
arm-linux-gnueabihf-g++ -> arm-linux-gnueabihf-g++-8
Solution 2 (failed with the new BBB image)
To upgrade glibc I followed one of this solutions:
- Open sources.list
nano /etc/apt/sources.list
- Add the following line:
deb http://ftp.debian.org/debian sid main
- Update and install
sudo apt-get updatesudo apt-get -t sid install libc6 libc6-dev libc6-dbg
- Remove the line added in sources.list
- Check installed version with:
ldd --version
References:
https://debihiga.wordpress.com/beaglebone-black-troubleshooting/