awslabs / aws-lambda-rust-runtime

A Rust runtime for AWS Lambda
Apache License 2.0
3.36k stars 343 forks source link

/usr/lib64/libc.so.6: version `GLIBC_2.38' not found (required by /var/task/bootstrap) #932

Closed simbleau closed 1 month ago

simbleau commented 1 month ago

I'm using AL2023, lambda_http=0.13 and cargo lambda to compile with --compiler cargo.

It seems that AL2023 goes up to GLIBC 2.34, so it doesn't have 2.38.

This just started happening and my deployments are broken as a result. Any clue why I'm suddenly starting to link against 2.38?

simbleau commented 1 month ago

Found the issue.

My GitHub CI was building my lambda, which was:

jobs:
  deploy:
    runs-on: ubuntu-latest
    ...

It appears ubuntu-latest will link against newer versions of glibc than are available in Amazon Linux 2023.

To fix this, I switched it to ubuntu-22.04.

github-actions[bot] commented 1 month ago

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.