Skip to content

Build failure in Fedora 42 with gcc 15 #40047

Open
@erentar

Description

@erentar

Environment

I am opening this issue to consolidate the dialog currently ongoing on various pull requests.
Currently, pull requests relating to this problem are

Steps To Reproduce

git checkout develop
git checkout 7888c42db953cc5852fbdf7e21dc524a219ae5d2 #Updated SageMath version to 10.7.beta2
make configure

Config log

singular will fail with

[spkg-install] libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./include -I./include -I. -DFACTORY_BUILDING_DLL -I/home/user/git/sage/local/var/tmp/sage/build/singular-4.4.0/src -I/home/user/git/sage/local/var/tmp/sage/build/singular-4.4.0/src -I/home/user/git/sage/local/include -DSING_NDEBUG -DOM_NDEBUG -g -O2 -pipe -fno-common -g0 -O3 -Wno-unused-function -Wno-trigraphs -Wno-unused-parameter -Wunknown-pragmas -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-threadsafe-statics -fno-enforce-eh-specs -fconserve-space -funroll-loops -fno-rtti -c threadsupport.cc  -fPIC -DPIC -o .libs/threadsupport.o
[spkg-install] facMul.cc: In function 'void kronSubFp(nmod_poly_struct*, const CanonicalForm&, int)':
[spkg-install] facMul.cc:1258:3: error: 'flint_mpn_zero' was not declared in this scope
[spkg-install]  1258 |   flint_mpn_zero (result->coeffs, d*(degAy+1));
[spkg-install]       |   ^~~~~~~~~~~~~~
[spkg-install] facMul.cc:1267:5: error: 'flint_mpn_copyi' was not declared in this scope
[spkg-install]  1267 |     flint_mpn_copyi (result->coeffs+k, buf->coeffs, nmod_poly_length(buf));
[spkg-install]       |     ^~~~~~~~~~~~~~~
[spkg-install] make[9]: *** [Makefile:1274: facMul.lo] Error 1
[spkg-install] make[9]: *** Waiting for unfinished jobs....
[spkg-install] make[8]: *** [Makefile:1379: all-recursive] Error 1
[spkg-install] make[7]: *** [Makefile:1041: all] Error 2
[spkg-install] make[6]: *** [Makefile:624: all-recursive] Error 1
[spkg-install] make[5]: *** [Makefile:475: all] Error 2
[spkg-install] ********************************************************************************
[spkg-install] Error building singular-4.4.0
[spkg-install] ********************************************************************************
************************************************************************
Error installing package singular-4.4.0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /home/user/git/sage/logs/pkgs/singular-4.4.0.log
and
  /home/user/git/sage/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/user/git/sage/local/var/tmp/sage/build/singular-4.4.0 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/home/user/git/sage/local/var/tmp/sage/build/singular-4.4.0' && '/home/user/git/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
real 2m29.211s user 3m58.318s sys 1m25.191s

Package logs

No response

Additional Information

No response

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions