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.

  1. 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.

  1. 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:

  1. Open sources.list

nano /etc/apt/sources.list

  1. Add the following line:

deb http://ftp.debian.org/debian sid main

  1. Update and install

sudo apt-get update sudo apt-get -t sid install libc6 libc6-dev libc6-dbg

  1. Remove the line added in sources.list
  2. Check installed version with:

ldd --version

References:

https://debihiga.wordpress.com/beaglebone-black-troubleshooting/