-
Notifications
You must be signed in to change notification settings - Fork 18
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
linux.yml: Upgrade from GCC 12 to GCC 13 + add GCC 9 #36
Conversation
Why? Just because we can? We developers tend to work with the shiniest new things ourselves, and forget that there are old systems out there which don't have the newest stuff. We notice errors caused by the new compilers ourselves, but miss problems that occur with old compilers. If we change something, wouldn't it be better to downgrade the compiler? |
Hi @j6t,
no 😃 :
What do you think?
Being the maintainer of https://github.com/libexpat/libexpat myself I believe I am very aware of support for older systems in general, e.g. version requirements of MSVC and Autoconf and CMake cover quite a bit of legacy there and have to. I think I addressed the downgrade aspect above, I'm happy to add older versions of GCC to the mix, as you see fits. Let me know! Have a nice Sunday, best, Sebastian |
I buy the argument that newer compilers are stricter and more likely to notice errors. As to which compilers are relevant, I do not know. It's probably answered by knowing what the oldest distributions are that are relevant. Debian is usually the one stuck with the oldest compiler, I would imagine, but where that is these days, I don't know. Do you? Heh, looks like here on openSUSE 15.4 I am still using gcc 7 if I ask for just |
@j6t excellent!
With what we have for a current base image in the CI —
…according to https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#language-and-runtime. The next older image —
…according to https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2004-Readme.md#language-and-runtime . How about GCC 9.5.0 and GCC 13.1.0 for KDbg CI? |
That sounds great! |
@j6t done, good enough? |
@j6t anything missing here for a merge? |
I would have appreciated if there had been some justification for the changes in each of the commit's messages. Answer the question why we need this change. If the answer is "because we can", then the change is not warranted. Never assume that everybody who sees the change knows automatically why it is a good change. (If you redo the commits, please do not rebase to the tip of master; keep the same branch point.) |
Compilers are getting stricter and stricter and we want to be sure to not introduce changes that would break compilation with GCC 13.
The idea is to cover not only modern but also more ancient compilers, and GCC 9 is the oldest we can economically cover with GitHub Actions CI images.
Hi @j6t,
I have added comments to these two commits now, at least the GCC 13 one was pretty obvious already, but okay.
I would have done the opposite but sure I can follow that rule here, the base commit should be unchanged. @j6t ready to merge? |
Thank you, looking very good! Merged. |
@j6t yes, I have an idea:
It affected me in multiple other places. Let me try offer a pull request here, give me a minute… |
No description provided.