Error Building Sage 10.4 on RHEL8 from Source

81 views
Skip to first unread message

Dale Marshall

unread,
Jul 27, 2024, 6:59:11 PM7/27/24
to sage-devel

I'm on a closed network so I cannot provide the log files.

I'm building Sage 10.4 on a RHEL8.10 box using root and GCC 14.1.0.  The configure line was:

./configure --prefix=<location> --enable-build-as-root --enable-wheels --with-python=<python 3.12.1 location>

The configure showed lots of packages to be compiled (even though I've installed as many as I could).  The make eventually fails on giac-1.9.0.15p0.

The last error messages are:
init2.c:52:MPFR assertion failed: p >= 2 && p <= ((mpfr_prec_t) ((mprf_uprec_t)(~(mpfr_uprec_t)0)>>1))
during GIMPLE pass: fre
modpoly.cc: In function 'std::complex<double> giac::horner_newton(const vecteur&, conf std::complex<double>&, const context*)';
modpoly.cc:16083:1: internal compile error: Aborted
16083 | } // namespace giac
      | ^
0xf0873f crash signal
../../gcc-14.1.0/gcc/toplev.cc:319
0x7f624acd43c2 mpc_div_zero


Oh... I'm getting the same error on my CentOS7.9 box using the same version of GCC.

Any suggestions on what I can do to resolve this issue would be welcome.

- Dale

Dima Pasechnik

unread,
Jul 28, 2024, 10:10:32 AM7/28/24
to sage-...@googlegroups.com


On 24 July 2024 17:15:36 BST, Dale Marshall <wvea...@gmail.com> wrote:
>
>I'm on a closed network so I cannot provide the log files.
>
>I'm building Sage 10.4 on a RHEL8.10 box using root and GCC 14.1.0. The
>configure line was:
>
>./configure --prefix=<location> --enable-build-as-root --enable-wheels
>--with-python=<python 3.12.1 location>
>
>The configure showed lots of packages to be compiled (even though I've
>installed as many as I could). The make eventually fails on
>giac-1.9.0.15p0.
>
>The last error messages are:
>init2.c:52:MPFR assertion failed: p >= 2 && p <= ((mpfr_prec_t)
>((mprf_uprec_t)(~(mpfr_uprec_t)0)>>1))
>during GIMPLE pass: fre
>modpoly.cc: In function 'std::complex<double> giac::horner_newton(const
>vecteur&, conf std::complex<double>&, const context*)';
>modpoly.cc:16083:1: internal compile error: Aborted
>16083 | } // namespace giac
> | ^
>0xf0873f crash signal
>../../gcc-14.1.0/gcc/toplev.cc:319
>0x7f624acd43c2 mpc_div_zero

this is usually a sign that the compiler ran out of memory.

C++ complilers are very memory-hungry.
Can you make sure there is 4Gb or more of RAM
available?

We should test Sage with root - presume you mean
<https://root.cern/> ?

Dima

Volker Braun

unread,
Jul 28, 2024, 10:16:01 AM7/28/24
to sage-devel
Pretty sure he means the "uid == 0" kind of root ;)

If you have enough memory: try upgrading to gcc 14.1.1 or use our bundled gcc 13 (./configure --with-system-gcc=no)

Dale Marshall

unread,
Jul 31, 2024, 1:51:39 PM7/31/24
to sage-devel

I've spent the last few days recompiling several versions of GCC and installing them in /usr/local/gccxx so I can try different versions of GCC against the different versions of Sage I have.

Yes, I'm building Sage as root (uid = 0).

I will report back as soon as my tests are complete.

Thanks for the suggestions.

- Dale
Reply all
Reply to author
Forward
0 new messages