-
-
Notifications
You must be signed in to change notification settings - Fork 619
allow gcc-15 from the system #39977
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
allow gcc-15 from the system #39977
Conversation
@tobiasdiez - CI still does useless Fedora 30, I don't know why. Can we replace it with Fedora 42 - this would test this PR, too |
The packages gap, singular and planarity have problems which can be solved using system package. I attarch the log for ecl. |
does Fedora have a usable ecl package? I'll report this to upstream ecl, perhaps they already have a fix |
Not now. I have used a former src.rpm and I could produce a package using gcc-14. Then maxima produces also an error, I am trying to make a package maxima-runtime-ecl (again with gcc-14) which has been disabled in Fedora. |
With ecl and maxima system packages I get errors in sagelib, By the way, patch system package (2.8.1) is not accepted, no clue why in config.log |
Note that gcc-15 has default c23 C standard. This is a bump from c17. Adding That is, --- a/build/pkgs/ecl/spkg-install.in
+++ b/build/pkgs/ecl/spkg-install.in
@@ -1,6 +1,6 @@
cd src
-export CFLAGS
+export CFLAGS="-std=c17 $CFLAGS"
export CXXFLAGS
export LDFLAGS (and maxima gets its flags from ecl). |
|
Documentation preview for this PR (built with commit 64e347f; changes) is ready! 🎉 |
No luck with sagelib with or without system-packages. On the other side, patch is no longer a package using #39943 |
|
ECL problem reported here: |
please post errors. Are they again due to c23 used for C, or there are also C++ issues? |
Thanks. I am not sure how to proceed. First I modified |
Sure, just edit
|
@enriqueartal : in regard of ecl, can you replace c17 in CFLAGS with gnu17 i.e. in the patch above it should be
|
One step achieved. Now |
How about doing this on top of your recent PR updating CI? (I meant #39942) |
I see issues with linbox (more patches needed) With ecl, running plane C (gcc) while building
@tobiasdiez - what to do here in |
I think |
Do you use system's givaro? Or a built one? Anyway, please try #39936 (for givaro - but it's important, as linbox depends on givaro) |
I use system's givaro (4.2.1). I can try with spkg. |
It's fine, should make no difference. For linbox, I think, 2 more patches are needed (incidentally they are needed for the new Apple's clang 17), as I added here: https://github.com/Macaulay2/homebrew-tap/blob/main/Formula/linbox.rb Specifically, add to |
Ok for |
I gather linbox needs --- a/linbox/blackbox/block-hankel.h
+++ b/linbox/blackbox/block-hankel.h
@@ -345,8 +345,8 @@ namespace LinBox
template<class Vector1, class Vector2>
Vector1& apply(Vector1 &x, const Vector2 &y) const
{
- linbox_check(this->_coldim == y.size());
- linbox_check(this->_rowdim == x.size());
+ linbox_check(this->coldim() == y.size());
+ linbox_check(this->rowdim() == x.size());
BlasMatrixDomain<Field> BMD(field());
#ifdef BHANKEL_TIMER
_chrono.clear(); as well |
and probably more, from linbox PRs 320, 322 |
Thanks! I saved as 43.patch and now it works. If my memory is OK gap and singular had also issues with gcc-15; for gap, even outside sage. |
Last thing for today: gap spkg is OK, not for singular. Thanks. |
I used nothing from these PRs |
gap_packages might need gcc-15 fixes. please post errors here, or on a new issue |
we can place
(check the precise syntax in similar places) |
Adding this line to spkg-install.m4 file of sagelib and |
the tests pass, please review |
Is there any test machine running gcc 15? |
I cannot find anymore the message below. Did you got it? For me, maxima worked using the spkg-install.in file for ecl in this PR. I used planarity system package. Forcing spkg gave an error but it goes away adding
|
Does the latest Semigroups build for you stand-alone? https://semigroups.github.io/Semigroups/ |
Unfortunately, not:
I think it is the same error. |
In the rpm of fedora there is this patch |
Let us do optional packages on another PR, depending on this one. Can we get this one positively reviewed and move on? |
Agree with gap_packages. There are a couple of things:
|
#40033 is not a dependency here |
I tried a build on restarting with
got me a little further, but ultimately things crashed in linbox (which I wasn't able to install via system packages due to some version conflict) which complained with "cc1plus: warning: command-line option '-std=gnu17' is valid for C/ObjC but not for C++" and then produced:
|
this one is needed for mere allowing the use of gcc-15. It's not promising you that everything works with it as well. can we please do things incrementally. |
Please open a separate issue for planarity, put logs there, and link it to this PR. Do not spam this PR with things which are beyond its scope. |
Planarity built for me adding the line in spk-install.in; this way linbox is built without the gnu17 thing. |
Maybe this is spam in this PR but the CFLAGS line allowed to build ecl; similar lines allow to build gap, planarity, and sagelib. If not, one has to deal with several runs of make with or without gnu17. Is it bad to add these lines to the four packages instead to only ecl? |
sagemathgh-40033: Singular 4.4.1 + Flint 3.3.2 Update flint and singular. This will catch up with Conda and Homebrew, possibly other distros (Homebrew needs Homebrew/homebrew-core#222142 merged) ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies sagemath#39943: - just not to build patch from source (if you have systemwide patch 2.8) sagemath#39977: - patches to allow gcc-15, etc URL: sagemath#40033 Reported by: Dima Pasechnik Reviewer(s):
sagemathgh-39977: allow gcc-15 from the system Fedora 42 comes with gcc-15 by default, so it should be allowed, as asked on [sage-release](https://groups.google.com/g/sage- release/c/iBMmwCCKJuM/m/h4EXk5nUDAAJ) ## 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> - sagemath#39985 : linbox patches - sagemath#39936 : givaro 4.2.1 URL: sagemath#39977 Reported by: Dima Pasechnik Reviewer(s):
sagemathgh-40033: Singular 4.4.1 + Flint 3.3.2 Update flint and singular. This will catch up with Conda and Homebrew, possibly other distros (Homebrew needs Homebrew/homebrew-core#222142 merged) EDIT Homebrew/homebrew-core#222142 has been merged, so now you can install singular from Homebrew and use it! ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies sagemath#39943: - just not to build patch from source (if you have systemwide patch 2.8) sagemath#39977: - patches to allow gcc-15, etc URL: sagemath#40033 Reported by: Dima Pasechnik Reviewer(s):
sagemathgh-39977: allow gcc-15 from the system Fedora 42 comes with gcc-15 by default, so it should be allowed, as asked on [sage-release](https://groups.google.com/g/sage- release/c/iBMmwCCKJuM/m/h4EXk5nUDAAJ) ## 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> - sagemath#39985 : linbox patches - sagemath#39936 : givaro 4.2.1 URL: sagemath#39977 Reported by: Dima Pasechnik Reviewer(s):
sagemathgh-40033: Singular 4.4.1 + Flint 3.3.2 Update flint and singular. This will catch up with Conda and Homebrew, possibly other distros (Homebrew needs Homebrew/homebrew-core#222142 merged) EDIT Homebrew/homebrew-core#222142 has been merged, so now you can install singular from Homebrew and use it! ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies sagemath#39943: - just not to build patch from source (if you have systemwide patch 2.8) sagemath#39977: - patches to allow gcc-15, etc URL: sagemath#40033 Reported by: Dima Pasechnik Reviewer(s):
sagemathgh-40033: Singular 4.4.1 + Flint 3.3.2 Update flint and singular. This will catch up with Conda and Homebrew, possibly other distros (Homebrew needs Homebrew/homebrew-core#222142 merged) EDIT Homebrew/homebrew-core#222142 has been merged, so now you can install singular from Homebrew and use it! ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> - [x] The title is concise and informative. - [x] The description explains in detail what this PR is about. - [x] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation and checked the documentation preview. ### ⌛ Dependencies sagemath#39943: - just not to build patch from source (if you have systemwide patch 2.8) sagemath#39977: - patches to allow gcc-15, etc URL: sagemath#40033 Reported by: Dima Pasechnik Reviewer(s):
Fedora 42 comes with gcc-15 by default, so it should be allowed, as asked on sage-release
📝 Checklist
⌛ Dependencies