Hi, I've been trying to install SageMath 10.8 on Ubuntu 22.04 with regards 
to https://sagemanifolds.obspm.fr/install_ubuntu.html . I got an error when 
running this command  MAKE="make -j8" make, stating “Error installing 
package sagelib-10.8
” which turns out to be “a Meson bug” in the log file. The log file is 
attached.

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/927b39d2-db23-4180-addc-b1b226ba8cf4n%40googlegroups.com.
Setting up build directory 
/etc/sageMath/sage/local/var/tmp/sage/build/sagelib-10.8
Host system: Linux 0ljlj18yzv.bytevirt.com 5.15.0-171-generic #181-Ubuntu SMP 
Fri Feb 6 22:44:50 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux
C compiler: gcc, Using built-in specs., COLLECT_GCC=gcc, 
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper, 
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa, OFFLOAD_TARGET_DEFAULT=1, 
Target: x86_64-linux-gnu, Configured with: ../src/configure -v 
--with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.3' 
--with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs 
--enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr 
--with-gcc-major-version-only --program-suffix=-11 
--program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes 
--with-default-libstdcxx-abi=new --enable-gnu-unique-object 
--disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib 
--enable-libphobos-checking=release --with-target-system-zlib=auto 
--enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet 
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 
--enable-multilib --with-tune=generic 
--enable-offload-targets=nvptx-none=/build/gcc-11-0odw26/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-0odw26/gcc-11-11.4.0/debian/tmp-gcn/usr
 --without-cuda-driver --enable-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-serialization=2, Thread 
model: posix, Supported LTO compression algorithms: zlib zstd, gcc version 
11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.3)
No stamp file for package 'sagelib' in 
/etc/sageMath/sage/local/var/lib/sage/installed
No spkg-legacy-uninstall script; nothing to do
[spkg-install] Installing sagelib-10.8 (editable mode)
[spkg-install] Using pip 24.2 from 
/etc/sageMath/sage/local/lib/python3.12/site-packages/pip (python 3.12)
[spkg-install] Obtaining file:///etc/sageMath/sage
[spkg-install]   Checking if build backend supports build_editable: started
[spkg-install]   Running command Checking if build backend supports 
build_editable
[spkg-install]   Checking if build backend supports build_editable: finished 
with status 'done'
[spkg-install]   Preparing editable metadata (pyproject.toml): started
[spkg-install]   Running command Preparing editable metadata (pyproject.toml)
[spkg-install]   + meson setup /etc/sageMath/sage 
/etc/sageMath/sage/build/sage-distro -Dbuildtype=release -Db_ndebug=if-release 
-Db_vscrt=md --default-library=static 
--native-file=//etc/sageMath/sage/build/pkgs/../platform/meson/sage-configure-native-file.ini
 -DSAGE_LOCAL=/etc/sageMath/sage/local 
--native-file=/etc/sageMath/sage/build/sage-distro/meson-python-native-file.ini
[spkg-install]   Traceback (most recent call last):
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/mesonmain.py",
 line 193, in run
[spkg-install]       return options.run_func(options)
[spkg-install]              ^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/msetup.py", 
line 390, in run
[spkg-install]       app.generate()
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/msetup.py", 
line 192, in generate
[spkg-install]       return self._generate(env, capture, vslite_ctx)
[spkg-install]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/msetup.py", 
line 278, in _generate
[spkg-install]       captured_compile_args = intr.backend.generate(capture, 
vslite_ctx)
[spkg-install]                               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/backend/ninjabackend.py",
 line 647, in generate
[spkg-install]       self.generate_target(t)
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/backend/ninjabackend.py",
 line 1087, in generate_target
[spkg-install]       elem = self.generate_link(target, outname, final_obj_list, 
linker, pch_objects, stdlib_args=stdlib_args)
[spkg-install]              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/backend/ninjabackend.py",
 line 3628, in generate_link
[spkg-install]       commands += self.get_build_rpath_args(target, linker)
[spkg-install]                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/backend/ninjabackend.py",
 line 3559, in get_build_rpath_args
[spkg-install]       self.determine_rpath_dirs(target),
[spkg-install]       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/backend/backends.py",
 line 845, in determine_rpath_dirs
[spkg-install]       
result.update(self.rpaths_for_non_system_absolute_shared_libraries(target))
[spkg-install]                     
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]     File 
"/etc/sageMath/sage/local/lib/python3.12/site-packages/mesonbuild/backend/backends.py",
 line 823, in rpaths_for_non_system_absolute_shared_libraries
[spkg-install]       assert not os.path.isabs(rel_to_src), f'rel_to_src: 
{rel_to_src} is absolute'
[spkg-install]              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[spkg-install]   AssertionError: rel_to_src: /local/lib is absolute
[spkg-install]   The Meson build system
[spkg-install]   Version: 1.8.3
[spkg-install]   Source dir: /etc/sageMath/sage
[spkg-install]   Build dir: /etc/sageMath/sage/build/sage-distro
[spkg-install]   Build type: native build
[spkg-install]   Project name: SageMath
[spkg-install]   Project version: 10.8
[spkg-install]   C compiler for the host machine: gcc (gcc 11.4.0 "gcc (Ubuntu 
11.4.0-1ubuntu1~22.04.3) 11.4.0")
[spkg-install]   C linker for the host machine: gcc ld.bfd 2.38
[spkg-install]   C++ compiler for the host machine: g++ -std=gnu++11 (gcc 
11.4.0 "g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0")
[spkg-install]   C++ linker for the host machine: g++ -std=gnu++11 ld.bfd 2.38
[spkg-install]   Cython compiler for the host machine: cython (cython 3.1.3)
[spkg-install]   Host machine cpu family: x86_64
[spkg-install]   Host machine cpu: x86_64
[spkg-install]   Program python found: YES 
(/etc/sageMath/sage/local/bin/python3)
[spkg-install]   Found pkg-config: YES (/usr/bin/pkg-config) 0.29.2
[spkg-install]   Run-time dependency python found: YES 3.12
[spkg-install]   Program python (pytest) found: YES 
(/etc/sageMath/sage/local/bin/python3) modules: pytest
[spkg-install]   numpy-config found: YES 
(/etc/sageMath/sage/local/bin/numpy-config) 2.3.2
[spkg-install]   Run-time dependency numpy found: YES 2.3.2
[spkg-install]   Run-time dependency gmp found: YES 6.2.1
[spkg-install]   Library pari found: YES
[spkg-install]   Checking if "pari version" with dependency -lpari runs: YES
[spkg-install]   Run-time dependency mpfr found: YES 4.1.0
[spkg-install]   Run-time dependency flint found: YES 3.3.1
[spkg-install]   Found CMake: /usr/local/bin/cmake (4.3.0)
[spkg-install]   Run-time dependency mkl found: NO (tried pkgconfig and cmake)
[spkg-install]   Run-time dependency cblas found: YES 0.3.20
[spkg-install]   Run-time dependency gsl found: YES 2.7.1
[spkg-install]   Run-time dependency gdlib found: YES 2.3.0
[spkg-install]   Library m found: YES
[spkg-install]   Run-time dependency m4ri found: YES 20250128
[spkg-install]   Run-time dependency m4rie found: YES 20250128
[spkg-install]   Run-time dependency libmtx found: NO (tried pkgconfig and 
cmake)
[spkg-install]   Has header "meataxe.h" : NO
[spkg-install]   Run-time dependency libpng found: YES 1.6.37
[spkg-install]   Run-time dependency zlib found: YES 1.2.11
[spkg-install]   Run-time dependency eclib found: YES 20250627
[spkg-install]   Library ecm found: YES
[spkg-install]   Run-time dependency gmpxx found: YES 6.2.1
[spkg-install]   Run-time dependency fflas-ffpack found: YES 2.5.0
[spkg-install]   Run-time dependency givaro found: YES 4.2.1
[spkg-install]   Run-time dependency linbox found: YES 1.7.1
[spkg-install]   Library mpc found: YES
[spkg-install]   Library mpfi found: YES
[spkg-install]   Run-time dependency libgap found: YES 4.14.0
[spkg-install]   Run-time dependency singular found: YES 4.4.1
[spkg-install]   Library ntl found: YES
[spkg-install]   Run-time dependency Boost (missing: graph) found: NO (tried 
system)
[spkg-install]   Run-time dependency Boost (missing: graph) found: NO (tried 
system)
[spkg-install]   Program ecl-config found: YES (/usr/bin/ecl-config)
[spkg-install]   Run-time dependency OpenMP found: YES 4.5
[spkg-install]   Program gap found: YES (/etc/sageMath/sage/local/bin/gap)
[spkg-install]   Program ecm found: YES (/usr/bin/ecm)
[spkg-install]   Program directg found: YES 
(/etc/sageMath/sage/local/bin/directg)
[spkg-install]   Program gentourng found: YES 
(/etc/sageMath/sage/local/bin/gentourng)
[spkg-install]   Program geng found: YES (/etc/sageMath/sage/local/bin/geng)
[spkg-install]   Program genbg found: YES (/etc/sageMath/sage/local/bin/genbg)
[spkg-install]   Program gentreeg found: YES 
(/etc/sageMath/sage/local/bin/gentreeg)
[spkg-install]   Program genktreeg found: YES 
(/etc/sageMath/sage/local/bin/genktreeg)
[spkg-install]   Program genposetg found: YES 
(/etc/sageMath/sage/local/bin/genposetg)
[spkg-install]   Run-time dependency libsirocco found: NO (tried pkgconfig and 
cmake)
[spkg-install]   Library sirocco found: NO
[spkg-install]   Library ecl found: YES
[spkg-install]   Program ecl found: YES (/usr/bin/ecl)
[spkg-install]   Program maxima found: YES (/etc/sageMath/sage/local/bin/maxima)
[spkg-install]   Run-time dependency libbraiding found: YES 1.3.1
[spkg-install]   Run-time dependency bdw-gc-threaded found: NO (tried pkgconfig 
and cmake)
[spkg-install]   Run-time dependency bdw-gc found: YES 8.0.6
[spkg-install]   Run-time dependency libhomfly found: NO (tried pkgconfig and 
cmake)
[spkg-install]   Has header "homfly.h" : YES
[spkg-install]   Library homfly found: YES
[spkg-install]   Library coxeter3 found: NO
[spkg-install]   Run-time dependency lcalc found: YES 2.1.0
[spkg-install]   Run-time dependency symmetrica found: NO (tried pkgconfig and 
cmake)
[spkg-install]   Library symmetrica found: YES
[spkg-install]   Library bliss found: NO
[spkg-install]   Has header "mcqd.h" : NO
[spkg-install]   Run-time dependency libcliquer found: NO (tried pkgconfig and 
cmake)
[spkg-install]   Library cliquer found: YES
[spkg-install]   Run-time dependency libplanarity found: YES 4.0.0.0
[spkg-install]   Has header "treedec/combinations.hpp" : NO
[spkg-install]   Library rw found: YES
[spkg-install]   Library iml found: YES
[spkg-install]   Library glpk found: YES
[spkg-install]   Run-time dependency brial found: YES 1.2.15
[spkg-install]   Library brial_groebner found: YES
[spkg-install]   Configuring kernel.json using configuration
[spkg-install]   Configuring config.py using configuration
[spkg-install]   ../../src/sage/meson.build:178: WARNING: The variable(s) 
'FOURTITWO_CIRCUITS', 'FOURTITWO_GRAVER', 'FOURTITWO_GROEBNER', 
'FOURTITWO_HILBERT', 'FOURTITWO_MARKOV', 'FOURTITWO_PPI', 'FOURTITWO_QSOLVE', 
'FOURTITWO_RAYS', 'FOURTITWO_ZSOLVE', 'SAGE_MATHJAX_DIR', 'SAGE_ROOT', 
'SAGE_VENV', 'configure_input' in the input file 'src/sage/config.py.in' are 
not present in the given configuration data.
[spkg-install]   ../../src/doc/meson.build:5: WARNING: Documentation building 
enabled, generating targets may be slow. To disable this, pass 
-Dbuild-docs=false.
[spkg-install]   Program python (sphinx) found: YES 
(/etc/sageMath/sage/local/bin/python3) modules: sphinx
[spkg-install]   Build targets in project: 1678
[spkg-install] 
[spkg-install]   SageMath 10.8
[spkg-install] 
[spkg-install]     User defined options
[spkg-install]       Native files   : 
//etc/sageMath/sage/build/pkgs/../platform/meson/sage-configure-native-file.ini
[spkg-install]                        
/etc/sageMath/sage/build/sage-distro/meson-python-native-file.ini
[spkg-install]       SAGE_LOCAL     : /etc/sageMath/sage/local
[spkg-install]       b_ndebug       : if-release
[spkg-install]       b_vscrt        : md
[spkg-install]       buildtype      : release
[spkg-install]       default_library: static
[spkg-install] 
[spkg-install]   Found ninja-1.13.1 at /etc/sageMath/sage/local/bin/ninja
[spkg-install] 
[spkg-install]   ERROR: Unhandled python exception
[spkg-install] 
[spkg-install]       This is a Meson bug and should be reported!
[spkg-install]   error: subprocess-exited-with-error
[spkg-install]   
[spkg-install]   × Preparing editable metadata (pyproject.toml) did not run 
successfully.
[spkg-install]   │ exit code: 2
[spkg-install]   ╰─> See above for output.
[spkg-install]   
[spkg-install]   note: This error originates from a subprocess, and is likely 
not a problem with pip.
[spkg-install]   full command: /etc/sageMath/sage/local/bin/python3 
/etc/sageMath/sage/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py
 prepare_metadata_for_build_editable /tmp/tmp0e_e841c
[spkg-install]   cwd: /etc/sageMath/sage
[spkg-install]   Preparing editable metadata (pyproject.toml): finished with 
status 'error'
[spkg-install] error: metadata-generation-failed
[spkg-install] 
[spkg-install] × Encountered error while generating package metadata.
[spkg-install] ╰─> See above for output.
[spkg-install] 
[spkg-install] note: This is an issue with the package mentioned above, not pip.
[spkg-install] hint: See above for details.
[spkg-install] 
********************************************************************************
[spkg-install] Error installing sagelib-10.8
[spkg-install] 
********************************************************************************
************************************************************************
Error installing package sagelib-10.8
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  //etc/sageMath/sage/logs/pkgs/sagelib-10.8.log
and
  //etc/sageMath/sage/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/etc/sageMath/sage/local/var/tmp/sage/build/sagelib-10.8 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 '/etc/sageMath/sage/local/var/tmp/sage/build/sagelib-10.8' && 
'//etc/sageMath/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
real 0m54.014s user 0m12.381s sys 0m1.877s

Reply via email to