Failure to build sage 10.2 with first pkg gcc-12.2.0

99 views
Skip to first unread message

Randall Rathbun

unread,
Feb 2, 2024, 12:51:51 PM2/2/24
to sage-devel
I downloaded the source tarball for sage 10.2, ran configure and added a few needed packages with zypper as recommended, then reran configure. Results appearred normal.

I then attempted to build sage by typing "make", but the very first pkg build, gcc-12.2 failed with a download failure.

[gcc-12.2.0] ************************************************************************
[gcc-12.2.0] Error downloading gcc-12.2.0.tar.xz
[gcc-12.2.0] ************************************************************************
[gcc-12.2.0] Please email sage-devel (http://groups.google.com/group/sage-devel)
[gcc-12.2.0] explaining the problem and including the log files
[gcc-12.2.0]   /home/owner/math/sage-10.2/logs/pkgs/gcc-12.2.0.log
[gcc-12.2.0] and
[gcc-12.2.0]   /home/owner/math/sage-10.2/config.log
[gcc-12.2.0] Describe your computer, operating system, etc.
[gcc-12.2.0] ************************************************************************
make[3]: *** [Makefile:3210: gcc-SAGE_LOCAL-no-deps] Error 1
make[2]: *** [Makefile:3210: /home/owner/math/sage-10.2/local/var/lib/sage/installed/gcc-12.2.0] Error 2
make[1]: *** [Makefile:2850: base-toolchain] Error 2
make[1]: Leaving directory '/home/owner/math/sage-10.2/build/make'

real    0m3.054s
user    0m1.259s
sys     0m0.085s
***************************************************************
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make base-toolchain'):

* package:         gcc-12.2.0
  last build time: Feb 2 09:17
  log file:        /home/owner/math/sage-10.2/logs/pkgs/gcc-12.2.0.log

These logs are included in this post.

The system is
Operating System: openSUSE Leap 15.5
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 5.14.21-150500.55.39-default (64-bit)
Graphics Platform: X11
Processors: 6 × Intel® Xeon® CPU E5-1650 v2 @ 3.50GHz
Memory: 31.3 GiB of RAM
Graphics Processor: NVIDIA GeForce GT 710/PCIe/SSE2
Manufacturer: Hewlett-Packard
Product Name: HP Z420 Workstation

Any idea why the download failure occurred?

-Randall
gcc-12.2.0.log
config.log

Matthias Koeppe

unread,
Feb 2, 2024, 1:10:10 PM2/2/24
to sage-devel
It appears on your system "python" or "python3" is a symlink or script leading to ipython.
This breaks everything.
For example in config.log:

====
configure:8373: checking for Python
configure:8376: result: [22;0t ]0;IPython: math/sage-10.2 [22;0t ]0;IPython: math/sage-10.2 /usr/bin/python3
configure:8387: checking for latex
configure:8408: found /usr/bin/latex
====

Dima Pasechnik

unread,
Feb 2, 2024, 1:36:54 PM2/2/24
to sage-...@googlegroups.com
openSUSE Leap 15.5 should let you install sufficiently fresh
gcc/g++/gfortran packages, so that you don't need to build them from
scratch. (I also doubt if it's at all possible to build gcc 12.2 with
gcc 7.5 - you have the latter).
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/4f82dcc0-5529-4ac0-b07a-dcd91cd56837n%40googlegroups.com.

Randall Rathbun

unread,
Feb 2, 2024, 2:49:08 PM2/2/24
to sage-devel
Thank you for the information, I will look into this. Usually yast2 gets things right, but apparently this one failed.

Randall Rathbun

unread,
Feb 2, 2024, 2:49:08 PM2/2/24
to sage-devel
Thank you very much for that sharp-eyed catch. The /usr/bin/python was indeed symlinked to ipython.
I did update the CC and CXX flags also to point to version 13 which is installed on my system.

Randall Rathbun

unread,
Feb 2, 2024, 2:49:08 PM2/2/24
to sage-devel
Dima:
I did find a post in the openSuse group which said to update the CC and CXX flags location to the correct versions and that was picked up correctly by the sage build script. Matthias nailed the problem, it was with python3, but I had to work the version a bit as openSuse Leap 15.5 adamantly refused to remove python 3.6 and I had to keep that. I did the Yast2 install of python 3.11, and I hope that the ./configure run comes up okay.

Dima Pasechnik

unread,
Feb 2, 2024, 3:11:45 PM2/2/24
to sage-...@googlegroups.com
you probably want to set FC to point to gfortran-13 too.
Reply all
Reply to author
Forward
0 new messages