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

Error: /lib64/libc.so.6: version `GLIBC_2.28' not found #878

Closed
baolongt opened this issue May 18, 2024 · 4 comments
Closed

Error: /lib64/libc.so.6: version `GLIBC_2.28' not found #878

baolongt opened this issue May 18, 2024 · 4 comments

Comments

@baolongt
Copy link

I'm facing this error when I try to use this command

cargo lambda build --release --target x86_64-unknown-linux-gnu

my template.yml

Globals:
  Function:
    MemorySize: 128
    Architectures: ["x86_64"]
    Handler: bootstrap
    Runtime: provided.al2
    Timeout: 30
    Tracing: Active
    Environment:
      Variables:
        RUST_LOG: info

It work with x86_64-unknown-linux-musl. But from this issue it said I should use gnu instead of musl

@calavera
Copy link
Contributor

Use provided.al2023 as the runtime. Your function depends on a GLIBC version that AL2 doesn't include.

Duplicated of #874

Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.

@rimutaka
Copy link
Contributor

@calavera , the ReadMe calls for AL2 + GNU which will probably always fail if built on a recent tool chain.

Having the following info in ReadMe or somewhere else handy would save me a coupe hours figuring it out on my own:

  1. which image to use
  2. how to build and deply manually without cargo lambda

Would you consider a PR to update the ReadMe with the above?

@calavera
Copy link
Contributor

Would you consider a PR to update the ReadMe with the above?

absolutely. I'll take every improvement to the readme that we can get, you don't even have to ask 😄

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