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

ubuntu-latest is missing libc dependencies for cross compiling #6647

Closed
2 of 11 tasks
chrichts opened this issue Nov 28, 2022 · 4 comments
Closed
2 of 11 tasks

ubuntu-latest is missing libc dependencies for cross compiling #6647

chrichts opened this issue Nov 28, 2022 · 4 comments
Assignees
Labels
Area: Go bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu

Comments

@chrichts
Copy link

Description

We are using a GitHub action to build our lambda go functions. Our Go functions require C libraries CGO_ENABLED=1 however the libraries are missing in Ubuntu 22.04.1 runner. This was working with the Ubuntu 20.04.05 runner.

Specific errors we are getting are:

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

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 10.15
  • macOS 11
  • macOS 12
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Current runner version: '2.299.1'
Operating System
Ubuntu
22.04.1
LTS
Runner Image
Image: ubuntu-22.04
Version: 20221119.2
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20221119.2/images/linux/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20221119.2
Runner Image Provisioner
2.0.91.1

Is it regression?

https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20221027.1

Expected behavior

Expect aws go lambdas to be built with the required libc libraries.

Actual behavior

Aws go lambdas are missing the required libc libraries.

Repro steps

We're using AWS CDK so don't have simple to-reproduce steps. Let me know if you need them

@chrichts
Copy link
Author

Happy to provide more info if needed or do some further troubleshooting

@ddobranic
Copy link
Contributor

Hello @chrichts, could you please provide minimal repro steps? Thank you!

@ddobranic ddobranic added Area: Go OS: Ubuntu investigate Collect additional information, like space on disk, other tool incompatibilities etc. and removed needs triage labels Nov 29, 2022
@ddobranic
Copy link
Contributor

@chrichts also found this workaround, maybe it can be of some help.

@ddobranic ddobranic self-assigned this Nov 29, 2022
@mikhailkoliada
Copy link
Contributor

@chrichts It looks like version of your build requires glibc version older than ubuntu-22.04 is actually providing. In 22.04 the version is 2.35 (and we do not provide any alternative toolchain installed), so the easiest solution here is to explicitly specify ubuntu-20.04 I think. In anyway, there is nothing we can do on our side.

If you have questions left feel free to reach us out again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Go bug report investigate Collect additional information, like space on disk, other tool incompatibilities etc. OS: Ubuntu
Projects
None yet
Development

No branches or pull requests

3 participants