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

Feature to support Ubuntu 22 image base instead of Ubuntu 20 #1534

Open
1 of 2 tasks
garygan89 opened this issue Aug 5, 2024 · 2 comments
Open
1 of 2 tasks

Feature to support Ubuntu 22 image base instead of Ubuntu 20 #1534

garygan89 opened this issue Aug 5, 2024 · 2 comments

Comments

@garygan89
Copy link

Checklist

Describe your request

Currently the main tag is using Ubuntu 20 instead of Ubuntu 22. Since Ubuntu 20 is going to EOL on April 2025, is there any plan or any existing tag that include the toolchain but based on Ubuntu 22? Perhaps I missed it as it is not mentioned anywhere in the doc.

Thanks.

Describe why this would be a good inclusion for cross

This will be good to build any library that is meant to run on target host running Ubuntu 22.04. Currently I had to build all the libraries used in 22.04 but on the cross main image which is based on Ubuntu 20.

@Emilgardis
Copy link
Member

See #973 which by now is a bit out of date, but its practically all that is needed

@Emilgardis
Copy link
Member

Emilgardis commented Aug 5, 2024

There is a way to do this yourself also if you need a minimal environment (basically only gcc/g++ for that architecture). Possible to add other things to but it can be tricky

# Cross.toml
[target.TARGET]
image = "ubuntu:22.04"
prebuild = ["apt-get update && apt-get install <gcc>"]

For aarch64 you'd install g++-aarch64-linux-gnu libc6-dev-arm64-cross

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants