experiencing strange hangs when recompiling

54 views
Skip to first unread message

Martin R

unread,
Oct 11, 2025, 5:03:00 PM (23 hours ago) Oct 11
to sage-devel
since 10.8.beta6, on ubuntu, I am experiencing strange hangs when trying to recompile sage, for example most recently when doing sage -i dot2tex.

I have no idea how to debug this, here is what make printed last.  top tells me that meson is now using all of the cpu.

After such a failed recompilation, sage does not start anymore.

Martin

make --no-print-directory sagelib-SAGE_VENV-no-deps
[sagelib-10.8.beta6] Setting up build directory /home/martin/sage-trac/local/var/lib/sage/venv-python3.12/var/tmp/sage/build/sagelib-10.8.beta6
[sagelib-10.8.beta6] Host system: Linux toolbox 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
[sagelib-10.8.beta6] C compiler: gcc, Using built-in specs., COLLECT_GCC=gcc, COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/13/lto-wrapper, OFFLOAD_T
ARGET_NAMES=nvptx-none:amdgcn-amdhsa, OFFLOAD_TARGET_DEFAULT=1, Target: x86_64-linux-gnu, Configured with: ../src/configure -v --with-pkgversion='Ubuntu 13.3
.0-6ubuntu2~24.04' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-
major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-inclu
ded-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=ye
s --with-default-libstdcxx-abi=new --enable-libstdcxx-backtrace --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --wit
h-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --wit
h-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-fG75R
i/gcc-13-13.3.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-fG75Ri/gcc-13-13.3.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --e
nable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serial
ization=2, Thread model: posix, Supported LTO compression algorithms: zlib zstd, gcc version 13.3.0 (Ubuntu 13.3.0-6ubuntu2~24.04)
[sagelib-10.8.beta6] No stamp file for package 'sagelib' in /home/martin/sage-trac/local/var/lib/sage/venv-python3.12/var/lib/sage/installed
[sagelib-10.8.beta6] No spkg-legacy-uninstall script; nothing to do
[sagelib-10.8.beta6] [spkg-install] Installing sagelib-10.8.beta6 (editable mode)
[sagelib-10.8.beta6] [spkg-install] Using pip 24.2 from /home/martin/sage-trac/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/pip (python 3.
12)
[sagelib-10.8.beta6] [spkg-install] Obtaining file:///home/martin/sage-trac
[sagelib-10.8.beta6] [spkg-install]   Checking if build backend supports build_editable: started
[sagelib-10.8.beta6] [spkg-install]   Running command Checking if build backend supports build_editable
[sagelib-10.8.beta6] [spkg-install]   Checking if build backend supports build_editable: finished with status 'done'
[sagelib-10.8.beta6] [spkg-install]   Preparing editable metadata (pyproject.toml): started
[sagelib-10.8.beta6] [spkg-install]   Running command Preparing editable metadata (pyproject.toml)
[sagelib-10.8.beta6] [spkg-install]   + meson setup --reconfigure /home/martin/sage-trac /home/martin/sage-trac/build/sage-distro -Dbuildtype=release -Db_nde
bug=if-release -Db_vscrt=md --default-library=static -DSAGE_LOCAL=/home/martin/sage-trac/local --native-file=/home/martin/sage-trac/build/sage-distro/meson-p
ython-native-file.ini


Martin R

unread,
Oct 11, 2025, 6:36:48 PM (22 hours ago) Oct 11
to sage-devel
Turns out that this is reproducible.

make distclean
make
sage -i dot2tex

results in a hang and a non-working sage.

Martin

Volker Braun

unread,
Oct 11, 2025, 7:12:02 PM (21 hours ago) Oct 11
to sage-devel
Does it actually hang there? the "meson setup" step takes quite a long time but eventually completes for me

Dima Pasechnik

unread,
Oct 11, 2025, 7:37:46 PM (21 hours ago) Oct 11
to sage-...@googlegroups.com
and if you do

   make dot2tex

instead?

Dima Pasechnik

unread,
Oct 11, 2025, 10:14:24 PM (18 hours ago) Oct 11
to sage-...@googlegroups.com
it might take a lot of time to create the correct list of targets, as you don't follow the best way, which is

./configure --enable-dot2tex=yes
make # this should also build do2tex



--
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 visit https://groups.google.com/d/msgid/sage-devel/6c3d9ed1-a99f-4c4c-a8b8-278d2338bbd9n%40googlegroups.com.

Martin R

unread,
3:36 AM (13 hours ago) 3:36 AM
to sage-devel
On Sunday, 12 October 2025 at 04:14:24 UTC+2 dim...@gmail.com wrote:
it might take a lot of time to create the correct list of targets, as you don't follow the best way, which is

./configure --enable-dot2tex=yes
make # this should also build do2tex

I thought that this would be the default (if installed, which it is):

--enable-dot2tex={no|if_installed (default)|yes}
                         enable build and use of the optional package dot2tex: Create PGF/TikZ
                         commands from Graphviz output
                         * package info: ./sage -info dot2tex

I'll try anyway.  But in fact, that also means that I have to be more careful than previously, since there are several packages I only install when I notice that something isn't working (eg., dot2tex, lie, coxeter3, gap_packages, fricas, bliss, macaulay2 ...)
 
On Sat, Oct 11, 2025 at 6:12 PM Volker Braun <vbrau...@gmail.com> wrote:
Does it actually hang there? the "meson setup" step takes quite a long time but eventually completes for me

More than 3 minutes?  If so, it would be nice if there could be some progress output.

I'll report,

Martin

Martin R

unread,
3:38 AM (13 hours ago) 3:38 AM
to sage-devel
(for comparison, previously installing dot2tex took just a few seconds)

Martin R

unread,
3:47 AM (12 hours ago) 3:47 AM
to sage-devel
OK, it took about ten minutes with configure --enable-dot2tex=yes

Martin
Reply all
Reply to author
Forward
0 new messages