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

Buildpack fails when packaged with go 1.20 #133

Closed
3 tasks done
amhuber opened this issue Apr 11, 2023 · 2 comments
Closed
3 tasks done

Buildpack fails when packaged with go 1.20 #133

amhuber opened this issue Apr 11, 2023 · 2 comments

Comments

@amhuber
Copy link

amhuber commented Apr 11, 2023

What version of the buildpack you are using?
v1.1.3

If you were attempting to accomplish a task, what was it you were attempting to do?

  1. Package the offline buildpack on a system using go 1.20.3
  2. Upload the new buildpack to CF
  3. Push the binary test app from cf-acceptance-tests

What did you expect to happen?
Staging should succeed

What was the actual behavior?
The buildpack threw the following errors:

[STG/0] ERR /tmp/buildpacks/7d3e828e705dfe804f399b84000a6813/bin/supply: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/buildpacks/7d3e828e705dfe804f399b84000a6813/bin/supply)
[STG/0] ERR /tmp/buildpacks/7d3e828e705dfe804f399b84000a6813/bin/supply: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /tmp/buildpacks/7d3e828e705dfe804f399b84000a6813/bin/supply)

This appears to be related to a change in go 1.20 with linking to system libraries, see cloudfoundry/smb-volume-release@bf037f3.

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction
@elovin
Copy link

elovin commented Apr 9, 2024

I suppose you used the old cflinuxfs3 stack, cflinuxfs4 has a newer glibc version since it is based on ubuntu 22.04

@amhuber
Copy link
Author

amhuber commented Apr 9, 2024

This issue is stale, it didn't have anything to do with the cflinuxfs version but was due to a change in Go. It was fixed in 76b85ae so I'll close this.

@amhuber amhuber closed this as completed Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants