I tried to compile 10.8, starting from a fresh clone on Debian Testing, (amd64) uptodate.

This fails when compiling primecount.

Joined is the log file...

Yours,
Thierry

--
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/bb87481f-4633-4011-bf3d-38ff41f233ea%40math.univ-lyon1.fr.
Attempting to download package primecountpy-0.1.1.tar.gz from mirrors
https://github.com/sagemath/sage/releases/download/10.8/primecountpy-0.1.1.tar.gz
[......................................................................]
Setting up build directory /usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/var/tmp/sage/build/primecountpy-0.1.1
No patch files found in ../patches
Host system: Linux kepler.thierry-dumont.fr 6.18.9+deb14-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.18.9-1 (2026-02-07) x86_64 GNU/Linux
C compiler: gcc, Using built-in specs., COLLECT_GCC=gcc, COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-linux-gnu/15/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='Debian 15.2.0-13' --with-bugurl=file:///usr/share/doc/gcc-15/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust,cobol,algol68 --prefix=/usr --with-gcc-major-version-only --program-suffix=-15 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --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-libstdcxx-backtrace --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/reproducible-path/gcc-15-15.2.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/reproducible-path/gcc-15-15.2.0/debian/tmp-gcn/usr --enable-offload-defaulted --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=3, Thread model: posix, Supported LTO compression algorithms: zlib zstd, gcc version 15.2.0 (Debian 15.2.0-13)
No stamp file for package 'primecountpy' in /usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/var/lib/sage/installed
No spkg-legacy-uninstall script; nothing to do
[spkg-install] Installing primecountpy-0.1.1
[spkg-install] * Creating isolated environment: venv+pip...
[spkg-install] * Installing packages in isolated environment:
[spkg-install]   - Cython
[spkg-install]   - cysignals
[spkg-install]   - setuptools>=73.0.1
[spkg-install] * Getting build dependencies for wheel...
[spkg-install] /tmp/build-env-6f6ixiih/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
[spkg-install] !!
[spkg-install] 
[spkg-install]         ********************************************************************************
[spkg-install]         Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
[spkg-install] 
[spkg-install]         This deprecation is overdue, please update your project and remove deprecated
[spkg-install]         calls to avoid build errors in the future.
[spkg-install] 
[spkg-install]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[spkg-install]         ********************************************************************************
[spkg-install] 
[spkg-install] !!
[spkg-install]   corresp(dist, value, root_dir)
[spkg-install] running egg_info
[spkg-install] writing primecountpy.egg-info/PKG-INFO
[spkg-install] writing dependency_links to primecountpy.egg-info/dependency_links.txt
[spkg-install] writing requirements to primecountpy.egg-info/requires.txt
[spkg-install] writing top-level names to primecountpy.egg-info/top_level.txt
[spkg-install] reading manifest file 'primecountpy.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] adding license file 'LICENSE'
[spkg-install] adding license file 'AUTHORS'
[spkg-install] writing manifest file 'primecountpy.egg-info/SOURCES.txt'
[spkg-install] * Building wheel...
[spkg-install] /tmp/build-env-6f6ixiih/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
[spkg-install] !!
[spkg-install] 
[spkg-install]         ********************************************************************************
[spkg-install]         Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
[spkg-install] 
[spkg-install]         This deprecation is overdue, please update your project and remove deprecated
[spkg-install]         calls to avoid build errors in the future.
[spkg-install] 
[spkg-install]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[spkg-install]         ********************************************************************************
[spkg-install] 
[spkg-install] !!
[spkg-install]   corresp(dist, value, root_dir)
[spkg-install] running bdist_wheel
[spkg-install] running build
[spkg-install] running build_py
[spkg-install] creating build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] copying primecountpy/__init__.py -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] running egg_info
[spkg-install] writing primecountpy.egg-info/PKG-INFO
[spkg-install] writing dependency_links to primecountpy.egg-info/dependency_links.txt
[spkg-install] writing requirements to primecountpy.egg-info/requires.txt
[spkg-install] writing top-level names to primecountpy.egg-info/top_level.txt
[spkg-install] reading manifest file 'primecountpy.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] adding license file 'LICENSE'
[spkg-install] adding license file 'AUTHORS'
[spkg-install] writing manifest file 'primecountpy.egg-info/SOURCES.txt'
[spkg-install] copying primecountpy/defs.pxd -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] copying primecountpy/primecount.pyx -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] running build_ext
[spkg-install] Compiling primecountpy/primecount.pyx because it changed.
[spkg-install] [1/1] Cythonizing primecountpy/primecount.pyx
[spkg-install] building 'primecountpy.primecount' extension
[spkg-install] creating build/temp.linux-x86_64-cpython-313/primecountpy
[spkg-install] g++ -std=gnu++11 -g -O2 -fPIC -I/tmp/build-env-6f6ixiih/lib/python3.13/site-packages/cysignals -I/tmp/build-env-6f6ixiih/include -I/usr/include/python3.13 -c primecountpy/primecount.cpp -o build/temp.linux-x86_64-cpython-313/primecountpy/primecount.o
[spkg-install] primecountpy/primecount.cpp: In function 'PyObject* __pyx_f_12primecountpy_10primecount_prime_pi_128(PyObject*, int)':
[spkg-install] primecountpy/primecount.cpp:3265:95: error: no matching function for call to 'pi(std::string&)'
[spkg-install]  3265 |   __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(primecount::pi(__pyx_v_s)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)
[spkg-install]       |                                                                                 ~~~~~~~~~~~~~~^~~~~~~~~~~
[spkg-install] primecountpy/primecount.cpp:3265:95: note: there are 2 candidates
[spkg-install] In file included from primecountpy/primecount.cpp:1167:
[spkg-install] /usr/include/primecount.hpp:57:9: note: candidate 1: 'int64_t primecount::pi(int64_t)'
[spkg-install]    57 | int64_t pi(int64_t x);
[spkg-install]       |         ^~
[spkg-install] /usr/include/primecount.hpp:57:20: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int64_t' {aka 'long int'}
[spkg-install]    57 | int64_t pi(int64_t x);
[spkg-install]       |            ~~~~~~~~^
[spkg-install] /usr/include/primecount.hpp:74:13: note: candidate 2: 'primecount::pc_int128_t primecount::pi(pc_int128_t)'
[spkg-install]    74 | pc_int128_t pi(pc_int128_t x);
[spkg-install]       |             ^~
[spkg-install] /usr/include/primecount.hpp:74:28: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'primecount::pc_int128_t'
[spkg-install]    74 | pc_int128_t pi(pc_int128_t x);
[spkg-install]       |                ~~~~~~~~~~~~^
[spkg-install] error: command '/usr/bin/g++' failed with exit code 1
[spkg-install] 
[spkg-install] ERROR Backend subprocess exited when trying to invoke build_wheel
[spkg-install] Warning: building with "python3 -m build --wheel --outdir=dist   ." failed.
[spkg-install] Retrying with "python3 -m build --wheel --outdir=dist --no-isolation --skip-dependency-check  .".
[spkg-install] * Building wheel...
[spkg-install] /usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
[spkg-install] !!
[spkg-install] 
[spkg-install]         ********************************************************************************
[spkg-install]         Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
[spkg-install] 
[spkg-install]         This deprecation is overdue, please update your project and remove deprecated
[spkg-install]         calls to avoid build errors in the future.
[spkg-install] 
[spkg-install]         See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
[spkg-install]         ********************************************************************************
[spkg-install] 
[spkg-install] !!
[spkg-install]   corresp(dist, value, root_dir)
[spkg-install] running bdist_wheel
[spkg-install] running build
[spkg-install] running build_py
[spkg-install] copying primecountpy/__init__.py -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] running egg_info
[spkg-install] writing primecountpy.egg-info/PKG-INFO
[spkg-install] writing dependency_links to primecountpy.egg-info/dependency_links.txt
[spkg-install] writing requirements to primecountpy.egg-info/requires.txt
[spkg-install] writing top-level names to primecountpy.egg-info/top_level.txt
[spkg-install] reading manifest file 'primecountpy.egg-info/SOURCES.txt'
[spkg-install] reading manifest template 'MANIFEST.in'
[spkg-install] adding license file 'LICENSE'
[spkg-install] adding license file 'AUTHORS'
[spkg-install] writing manifest file 'primecountpy.egg-info/SOURCES.txt'
[spkg-install] copying primecountpy/defs.pxd -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] copying primecountpy/primecount.cpp -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] copying primecountpy/primecount.pyx -> build/lib.linux-x86_64-cpython-313/primecountpy
[spkg-install] running build_ext
[spkg-install] INFO: Disabling color, you really want to install colorlog.
[spkg-install] Disabling color, you really want to install colorlog.
[spkg-install] building 'primecountpy.primecount' extension
[spkg-install] g++ -std=gnu++11 -g -O2 -fPIC -I/usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/lib/python3.13/site-packages/cysignals -I/usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/include -I/usr/include/python3.13 -c primecountpy/primecount.cpp -o build/temp.linux-x86_64-cpython-313/primecountpy/primecount.o
[spkg-install] primecountpy/primecount.cpp: In function 'PyObject* __pyx_f_12primecountpy_10primecount_prime_pi_128(PyObject*, int)':
[spkg-install] primecountpy/primecount.cpp:3265:95: error: no matching function for call to 'pi(std::string&)'
[spkg-install]  3265 |   __pyx_t_2 = __pyx_convert_PyBytes_string_to_py_6libcpp_6string_std__in_string(primecount::pi(__pyx_v_s)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 68, __pyx_L1_error)
[spkg-install]       |                                                                                 ~~~~~~~~~~~~~~^~~~~~~~~~~
[spkg-install] primecountpy/primecount.cpp:3265:95: note: there are 2 candidates
[spkg-install] In file included from primecountpy/primecount.cpp:1167:
[spkg-install] /usr/include/primecount.hpp:57:9: note: candidate 1: 'int64_t primecount::pi(int64_t)'
[spkg-install]    57 | int64_t pi(int64_t x);
[spkg-install]       |         ^~
[spkg-install] /usr/include/primecount.hpp:57:20: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int64_t' {aka 'long int'}
[spkg-install]    57 | int64_t pi(int64_t x);
[spkg-install]       |            ~~~~~~~~^
[spkg-install] /usr/include/primecount.hpp:74:13: note: candidate 2: 'primecount::pc_int128_t primecount::pi(pc_int128_t)'
[spkg-install]    74 | pc_int128_t pi(pc_int128_t x);
[spkg-install]       |             ^~
[spkg-install] /usr/include/primecount.hpp:74:28: note: no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'primecount::pc_int128_t'
[spkg-install]    74 | pc_int128_t pi(pc_int128_t x);
[spkg-install]       |                ~~~~~~~~~~~~^
[spkg-install] error: command '/usr/bin/g++' failed with exit code 1
[spkg-install] 
[spkg-install] ERROR Backend subprocess exited when trying to invoke build_wheel
[spkg-install] ********************************************************************************
[spkg-install] Error building a wheel for primecountpy-0.1.1
[spkg-install] ********************************************************************************
************************************************************************
Error installing package primecountpy-0.1.1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log files
  /usr/local/sages/sage/sage/logs/pkgs/primecountpy-0.1.1.log
and
  /usr/local/sages/sage/sage/config.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/var/tmp/sage/build/primecountpy-0.1.1 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 '/usr/local/sages/sage/sage/local/var/lib/sage/venv-python3.13/var/tmp/sage/build/primecountpy-0.1.1' && '/usr/local/sages/sage/sage/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to