Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prebuilt binaries require very recent glibc (2.29 released 2019-01) #508

Closed
haampie opened this issue May 10, 2022 · 6 comments · Fixed by #512
Closed

Prebuilt binaries require very recent glibc (2.29 released 2019-01) #508

haampie opened this issue May 10, 2022 · 6 comments · Fixed by #512

Comments

@haampie
Copy link

haampie commented May 10, 2022

Starting from hyperfine 1.13.0, there's suddenly a dependency on:

w statx@GLIBC_2.28
w posix_spawn_file_actions_addchdir_np@GLIBC_2.29

which is a very recent glibc version from 2019.

Can you relax that requirement? Or possibly statically link musl libc? I missed that the musl libc version is statically linked.

Version 1.12.0 used to only require glibc 2.18 (released 2013-08)

@sharkdp
Copy link
Owner

sharkdp commented May 16, 2022

Thank you for reporting this.

That could be due to the Ubuntu 18.04 => 20.04 change in our CI runners. I had a similar problem in another project of mine which we actually solved by "cross"-compiling using https://github.com/cross-rs/cross, because their Docker images use quite old versions of libc (maybe on purpose?): 2.15 for x86_64-unknown-linux-gnu (https://github.com/cross-rs/cross#supported-targets)

sharkdp added a commit that referenced this issue May 16, 2022
We do this in order to link against older versions of glibc.

closes #508
sharkdp added a commit that referenced this issue May 16, 2022
We do this in order to link against older versions of glibc.

closes #508
@sharkdp
Copy link
Owner

sharkdp commented May 17, 2022

Should be fixed in the new release.

@plutonium-239
Copy link

Hey @sharkdp how can I check what is the last version using <= GLIBC 2.17 (I am on an HPC system running CentOS7 and they are not going to update glibc from 2.17 in CentOS7).
I checked the last 2 versions but was getting the same error.

@sharkdp
Copy link
Owner

sharkdp commented Oct 13, 2022

I'm not sure I understand what you are asking

@plutonium-239
Copy link

I was asking which is the last hyperfine version using GLIBC of version below 2.17, as I cannot update my GLIBC.
I had solved it by installing via conda.

@sharkdp
Copy link
Owner

sharkdp commented Oct 14, 2022

I don't know, sorry. You would have to download all and find out somehow (I think you can use some combination of strings <binary> and grep -i glibc to get an idea.. but it's not a foolproof method, I guess. I don't know a better way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants