-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
base: develop
Are you sure you want to change the base?
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 68c24f8; 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 |
I've put the linbox patches on #39985 |
Another test in a virtual machine failed with contourpy. In the former installation, it is ok for contourpy. |
somewhere the sin of passing CFLAGS to a C++ compiler is committed |
It seems that for some packages
is needed and for others it is just |
Fedora 42 comes with gcc-15 by default, so it should be allowed, as asked on sage-release
📝 Checklist
⌛ Dependencies