Hi,
I'm building sage 10.7.beta8 on my conda (miniconda3) environment (Arch
Linux host). The env file (`env.yml`) for this purpose is:
```
name: sagemath
channels:
- conda-forge
- nodefaults
dependencies:
- compilers
- fortran-compiler
- make
- m4
- perl
- python=3.12
- tar
- bc
- appdirs
- boost-cpp
- bzip2
- cmake
- curl
- distlib
- filelock
- freetype
- gap-defaults>=4.13.0,<5.0.0
- bdw-gc
- gengetopt
- gmp
- gsl
- iml
- texinfo
- lcalc
- libatomic_ops
- libffi
- libgd
- xz
- libpng
- mathjax
- mpc
- mpfi
- mpfr
- ncurses
- ninja
- ntl
- openblas
- blas=2.*=openblas
- openssl
- pari=*=*_pthread
- pari-elldata
- pari-galdata
- pari-galpol
- pari-seadata
- pari-seadata-small
- patch
- pkg-config
- ppl
- primecount
- primesieve
- readline
- rw
- singular
- sqlite
- symmetrica
- sympow
- tachyon
- tox
- virtualenv
- xz
- zeromq
- zlib
- autoconf
- automake
- libtool
- libxcrypt1
- 4ti2
- bliss
- coincbc
- imageio-ffmpeg
- octave
- gnuplot
- graphviz
- imagemagick
- tbb
- pandoc
- pdf2svg
- sbcl
- symengine
- fonts-conda-ecosystem
- fonts-conda-forge
- fontconfig
- fonttools
```
I create the environment and then set up compilation variables:
```
$ conda env create -f env.yml
$ conda activate sagemath
$ export CFLAGS='-march=haswell -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -isystem /home/bagas/miniconda3/envs/sagemath/include'
$ export CXXFLAGS='-fvisibility-inlines-hidden -fmessage-length=0 -march=haswell -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -isystem /home/bagas/miniconda3/envs/sagemath/include'
$ export FCFLAGS='-march=haswell -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -isystem /home/bagas/miniconda3/envs/sagemath/include'
$ export SAGE_DEBUG=no
$ export MAKE="make -j2"
$ export GNUPLOT_DRIVER_DIR='/home/bagas/miniconda3/envs/sagemath/libexec/gnuplot/5.4'
```
Then I build sage:
```
$ ./bootstrap
$ ./configure --prefix=$CONDA_PREFIX --with-python=$CONDA_PREFIX/bin/python --disable-meson-check --enable-fricas=yes
$ make
```
The build succeed, but when I smoke test it, sage returns traceback:
```
$ sage
/home/bagas/miniconda3/envs/sagemath/bin/sage-venv-config:4: DeprecationWarning: pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
__import__('pkg_resources').require('sagemath-standard==10.7b8')
/home/bagas/miniconda3/envs/sagemath/bin/sage-ipython:4: DeprecationWarning: pkg_resources is deprecated as an API. See
https://setuptools.pypa.io/en/latest/pkg_resources.html
__import__('pkg_resources').require('sagemath-standard==10.7b8')
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 10.7.beta8, Release Date: 2025-07-06 │
│ Using Python 3.12.11. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
[31m┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┃ Warning: sage.all is not available; this is a limited REPL. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ [0m
Error in sys.excepthook:
Traceback (most recent call last):
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/IPython/core/application.py", line 284, in excepthook
return self.crash_handler(etype, evalue, tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/IPython/core/crashhandler.py", line 163, in __call__
if rptdir is None or not Path.is_dir(rptdir):
^^^^^^^^^^^^^^^^^^^
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/pathlib.py", line 875, in is_dir
return S_ISDIR(self.stat().st_mode)
^^^^^^^^^
AttributeError: 'str' object has no attribute 'stat'
Original exception was:
Traceback (most recent call last):
File "/home/bagas/miniconda3/envs/sagemath/bin/sage-ipython", line 7, in <module>
exec(compile(f.read(), __file__, 'exec'))
File "/home/bagas/repo/sagemath/src/bin/sage-ipython", line 15, in <module>
app.initialize()
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/traitlets/config/application.py", line 118, in inner
return method(app, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/IPython/terminal/ipapp.py", line 278, in initialize
self.init_shell()
File "/home/bagas/repo/sagemath/src/sage/repl/interpreter.py", line 854, in init_shell
self.shell.extension_manager.load_extension(SAGE_EXTENSION)
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/IPython/core/extensions.py", line 76, in load_extension
return self._load_extension(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/IPython/core/extensions.py", line 93, in _load_extension
if self._call_load_ipython_extension(mod):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/bagas/miniconda3/envs/sagemath/lib/python3.12/site-packages/IPython/core/extensions.py", line 145, in _call_load_ipython_extension
mod.load_ipython_extension(self.shell)
File "/home/bagas/repo/sagemath/src/sage/repl/__init__.py", line 6, in load_ipython_extension
sage.repl.ipython_extension.load_ipython_extension(*args)
File "/home/bagas/repo/sagemath/src/sage/misc/misc.py", line 1030, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/bagas/repo/sagemath/src/sage/repl/ipython_extension.py", line 748, in load_ipython_extension
SageCustomizations(shell=ip)
File "/home/bagas/repo/sagemath/src/sage/repl/ipython_extension.py", line 592, in __init__
import sage.all # noqa: F401
^^^^^^^^^^^^^^^
File "/home/bagas/repo/sagemath/src/sage/all.py", line 94, in <module>
from sage.algebras.all import *
File "/home/bagas/repo/sagemath/src/sage/algebras/all.py", line 25, in <module>
from sage.algebras.quatalg.all import *
File "/home/bagas/repo/sagemath/src/sage/algebras/quatalg/all.py", line 1, in <module>
from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra
File "/home/bagas/repo/sagemath/src/sage/algebras/quatalg/quaternion_algebra.py", line 82, in <module>
from . import quaternion_algebra_cython
File "sage/algebras/quatalg/quaternion_algebra_cython.pyx", line 1, in init sage.algebras.quatalg.quaternion_algebra_cython
File "sage/matrix/matrix_integer_dense.pyx", line 1, in init sage.matrix.matrix_integer_dense
ImportError: /home/bagas/miniconda3/envs/sagemath/lib/libffpack.so.1: undefined symbol: _ZN5FFLAS7fscalinIN6Givaro15ModularBalancedIfEEEEvRKT_mmNS4_7ElementENS4_11Element_ptrEm
```
It looks like there's problem in givaro and fflas_ffpack SPKGs (as they're
both built as part of sage distribution instead of conda packages).
Am I missing something? Why is it the case? Should I open GitHub issue on
this?
Thanks.
--
An old man doll... just what I always wanted! - Clara