question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

libscalene.so included in scalene v1.1.1 requires more recent glibc when running on CentOS 7.8

See original GitHub issue

When trying scalene v1.1.1 (installed from source with pip install ., but I don’t think that matters since libscalene.so is included in the source tarball), I’m getting this:

python3: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /.../lib/python3.6/site-packages/scalene/libscalene.so)

The issue here boils down to libscalene.so being compiled on an Linux OS that has a more recent glibc than is used in CentOS 7.8 (which is glibc 2.17).

Is there a specific reason why libscalene.so is packaged into the source tarball, as opposed to compiling it from source when scalene is being installed from source?

I’m happy to try and compile libscalene.so from source myself, but there doesn’t seem to be any documentation available on that. I found heaplayers-make.mk which suggests that clang++ is needed (is that a strict requirement, or would a sufficiently recent g++ also work?), and that some source code from https://github.com/emeryberger/Heap-Layers is required as well.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
emerybergercommented, Nov 4, 2020

Right now, the only way that seems like it should work is building on Ubuntu 16.04. I just pushed a new version (1.10) with such a build: works on Ubuntu 16 & 20, plus WSL2. Hopefully this finally gets the job done.

1reaction
zacqedcommented, Nov 5, 2020

This is resolved, the profiling is working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GLIBC version problem - Red Hat Customer Portal
The problem with this is that in RHEL 7.x, the libc RPM package is glibc-2.17-.el7.x86_64.rpm, and it includes both /lib64/libc.so.
Read more >
bug: rover is built on centos 7 but... can't run on ... - GitHub
npx -p @apollo/rover rover supergraph compose This operating system needs glibc >= 2.18, but only has 2.17 installed. Downloading musl binary that does...
Read more >
Multiple glibc libraries on a single host - linux - Stack Overflow
Is it possible to have multiple glibcs installed on the same host? This is the error I get when I run my program...
Read more >
safely upgrade glibc on CentOS 7 - Server Fault
Check it is actually needed. Firstly check the python application as it could be out of date and is probably misreading the glibc...
Read more >
Using newer libc on old Linux distributions - Jertype
We were running an older version of Linux (CentOS/RHEL 6.x) and using a C library that only supported glibc 2.14 or higher.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found