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

Support for GCC14 & GCC15 in the cpp images #1280

Open
gldraphael opened this issue Jan 8, 2025 · 5 comments
Open

Support for GCC14 & GCC15 in the cpp images #1280

gldraphael opened this issue Jan 8, 2025 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@gldraphael
Copy link

It would be very nice if we could specify a GCC version for the existing images similar to how we can currently specify a CMAKE version. But just having access to only the latest GCC would be nice too, since many of the newer C++ features (like println from the print header) are not supported in GCC13.

@bamurtaugh
Copy link
Member

Thank you for the feedback! I wonder if @sinemakinci1 has any thoughts on this? :)

@sinemakinci1
Copy link

@gldraphael @bamurtaugh Thanks for forwarding, I think this is a very valid request if feasible, as there are some C++ features that require min GCC 14 or 15 to be able to compile (see: https://en.cppreference.com/w/cpp/compiler_support/23)!

@bamurtaugh
Copy link
Member

Thanks so much for the feedback!

cc @gauravsaini04 @Kaniska244

@Kaniska244
Copy link
Contributor

Hi @gldraphael ,

As you would be knowing, the c++ devcontainer image is currently available with two different OS flavors, ubuntu & debian.

For ubuntu noble (24.04) the default available gcc version is 13.3.0. However gcc-14 package is indeed available for installation.

For debian bookworm (12) the default available gcc version is 12.2.0. Also gcc-13 onwards aren't natively available in debian 12 for installation.

Please note gcc-15 doesn’t appear to be supported in either ubuntu noble or debian bookworm for the moment.

I will check further on making gcc-14 available as part of ubuntu noble flavor of c++ devcontainer image & also check the possibility of allowing the user to choose gcc version in this image. I will keep you posted further on the progress. Please let me know in case of any further concern/ clarification on this topic.

With Regards,
Kaniska

@Kaniska244 Kaniska244 added the enhancement New feature or request label Jan 31, 2025
@gldraphael
Copy link
Author

gldraphael commented Jan 31, 2025

I understand that the GCC versions available are currently tightly coupled to the chosen OS's standard PPA repositories. However, the latest compiler could always be made available via other means such as installing by source.

Consider the .NET devcontainer for example, it's very convenient to be able to specify the .NET version I need to develop .NET apps. This is also true for other container that I have used so far eg. python, TypeScript, etc.

When I tried this devcontainer, I was more interested in experimenting with the latest C++ features supported by the latest g++ compiler. While it's easy to install a specific version of CMAKE using a script included in the template, there's currently no way to specify the version of GCC I'd like to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants