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

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

Closed
misogihagi opened this issue Mar 27, 2022 · 2 comments

Comments

@misogihagi
Copy link

sorry if my misunderstanding.

pulling my code,

git clone https://github.com/misogihagi/lambda-test.git
cd lambda-test

building,

sudo docker run --rm \
    -v ${PWD}:/code \
    -v ${HOME}/.cargo/registry:/root/.cargo/registry \
    -v ${HOME}/.cargo/git:/root/.cargo/git \
    rustserverless/lambda-rust

and running

sudo unzip -o \
    target/lambda/release/{your-binary-name}.zip \
    -d /tmp/lambda && \
sudo  docker run \
    -i -e DOCKER_LAMBDA_USE_STDIN=1 \
    --rm \
    -v /tmp/lambda:/var/task \
    lambci/lambda:provided

then type test and Ctrl+D responded

/var/task/bootstrap: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /var/task/bootstrap)
/var/task/bootstrap: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /var/task/bootstrap)

How can I treat this?

@nmoutschen
Copy link
Contributor

nmoutschen commented Mar 27, 2022

Hey @misogihagi !

I see that you're referring to a container image meant to mimic the provided runtime, which uses Amazon Linux 1. There are two options to solve this issue:

  1. Use an image mimicking the provided-al2 runtime (such as amazon/aws-lambda-provided:al2); or
  2. Compile for GLIBC 2.17.

You can find more instructions about this in the Section 1.2. of the README file about how to build Lambda functions.

@calavera calavera closed this as completed Apr 3, 2022
@calavera
Copy link
Contributor

calavera commented Apr 3, 2022

Closing because Nicolas already explained how to solve that problem

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