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

GLIBC_2.28' not found #24

Closed
libsgh opened this issue Mar 19, 2021 · 4 comments
Closed

GLIBC_2.28' not found #24

libsgh opened this issue Mar 19, 2021 · 4 comments

Comments

@libsgh
Copy link

libsgh commented Mar 19, 2021

How can I specify the GCC version?

@crazy-max
Copy link
Owner

@libsgh glibc on the machine you are trying to run the binary is too old. You'll either need to update glibc on your machine or use a custom docker image with a recent one.

@drakkan
Copy link

drakkan commented Apr 6, 2021

Hi,

I have the same issue with sftpgo on arm64 (and likely on ppc64le too). I use the xgo GitHub Action to cross build for arm64 and ppc64 and then I build deb/rpm using nfpm:

  • sftpgo 2.0.2 works on ubuntu 18.04 (glibc 2.27) and later:
./sftpgo -v
SFTPGo 2.0.2-cebd069-2021-02-17T07:13:20Z +metrics +awskms +gcpkms +vaultkms +azblob +gcs +s3 +bolt +mysql +pgsql +sqlite +portable
  • sftpgo 2.0.3 requires glibc 2.28 (buster version) and so it don't work anymore on ubuntu 18.04
./sftpgo -v
./sftpgo: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./sftpgo)

The only relevant difference in my build workflow is that 2.0.2 was cross built using Go 1.16.0 while 2.0.3 with Go 1.16.2.

Ubuntu 18.04 is still supported. Is it possible to produce binaries compatible with this old glibc version again? Thank you

@crazy-max crazy-max reopened this Apr 11, 2021
@libsgh
Copy link
Author

libsgh commented Apr 12, 2021

Hi,

I have the same issue with sftpgo on arm64 (and likely on ppc64le too). I use the xgo GitHub Action to cross build for arm64 and ppc64 and then I build deb/rpm using nfpm:

  • sftpgo 2.0.2 works on ubuntu 18.04 (glibc 2.27) and later:
./sftpgo -v
SFTPGo 2.0.2-cebd069-2021-02-17T07:13:20Z +metrics +awskms +gcpkms +vaultkms +azblob +gcs +s3 +bolt +mysql +pgsql +sqlite +portable
  • sftpgo 2.0.3 requires glibc 2.28 (buster version) and so it don't work anymore on ubuntu 18.04
./sftpgo -v
./sftpgo: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./sftpgo)

The only relevant difference in my build workflow is that 2.0.2 was cross built using Go 1.16.0 while 2.0.3 with Go 1.16.2.

Ubuntu 18.04 is still supported. Is it possible to produce binaries compatible with this old glibc version again? Thank you

Try to use other XGO docker images
techknowlogick/xgo

@drakkan
Copy link

drakkan commented Apr 12, 2021

Hi,
I have the same issue with sftpgo on arm64 (and likely on ppc64le too). I use the xgo GitHub Action to cross build for arm64 and ppc64 and then I build deb/rpm using nfpm:

  • sftpgo 2.0.2 works on ubuntu 18.04 (glibc 2.27) and later:
./sftpgo -v
SFTPGo 2.0.2-cebd069-2021-02-17T07:13:20Z +metrics +awskms +gcpkms +vaultkms +azblob +gcs +s3 +bolt +mysql +pgsql +sqlite +portable
  • sftpgo 2.0.3 requires glibc 2.28 (buster version) and so it don't work anymore on ubuntu 18.04
./sftpgo -v
./sftpgo: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by ./sftpgo)

The only relevant difference in my build workflow is that 2.0.2 was cross built using Go 1.16.0 while 2.0.3 with Go 1.16.2.
Ubuntu 18.04 is still supported. Is it possible to produce binaries compatible with this old glibc version again? Thank you

Try to use other XGO docker images
techknowlogick/xgo

Thank you but I switched to QEMU. It is a bit slower to build but the produced binaries are ok, it is enough for my use case

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

No branches or pull requests

3 participants