[sage-devel] Unable to build sagelib on macOS arm64

2024-09-14 Thread Mavin Hellman
Attempting to build Sage 10.5 beta on macOS Version 14.2.1 (23C71)

```
[sagelib-10.5.beta3] [spkg-install] ld: illegal thread local variable 
reference to regular symbol __ZN3NTL8ZZ_pInfoE for architecture arm64
[sagelib-10.5.beta3] [spkg-install] clang: error: linker command failed 
with exit code 1 (use -v to see invocation)
[sagelib-10.5.beta3] [spkg-install] error: command '/usr/bin/g++' 
failed with exit code 1
[sagelib-10.5.beta3] [spkg-install] error: subprocess-exited-with-error
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] × python setup.py develop did not 
run successfully.
[sagelib-10.5.beta3] [spkg-install] │ exit code: 1
[sagelib-10.5.beta3] [spkg-install] ╰─> See above for output.
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] note: This error originates from a 
subprocess, and is likely not a problem with pip.
[sagelib-10.5.beta3] [spkg-install] full command: 
/Users/mavin/Downloads/sage-10.5.beta3/local/var/lib/sage/venv-python3.9/bin/python3
 
-c '
[sagelib-10.5.beta3] [spkg-install] exec(compile('"'"''"'"''"'"'
[sagelib-10.5.beta3] [spkg-install] # This is  
-- a caller that pip uses to run setup.py
[sagelib-10.5.beta3] [spkg-install] #
[sagelib-10.5.beta3] [spkg-install] # - It imports setuptools before 
invoking setup.py, to enable projects that directly
[sagelib-10.5.beta3] [spkg-install] #   import from `distutils.core` to 
work with newer packaging standards.
[sagelib-10.5.beta3] [spkg-install] # - It provides a clear error 
message when setuptools is not installed.
[sagelib-10.5.beta3] [spkg-install] # - It sets `sys.argv[0]` to the 
underlying `setup.py`, when invoking `setup.py` so
[sagelib-10.5.beta3] [spkg-install] #   setuptools doesn'"'"'t think 
the script is `-c`. This avoids the following warning:
[sagelib-10.5.beta3] [spkg-install] # manifest_maker: standard file 
'"'"'-c'"'"' not found".
[sagelib-10.5.beta3] [spkg-install] # - It generates a shim setup.py, 
for handling setup.cfg-only projects.
[sagelib-10.5.beta3] [spkg-install] import os, sys, tokenize
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] try:
[sagelib-10.5.beta3] [spkg-install] import setuptools
[sagelib-10.5.beta3] [spkg-install] except ImportError as error:
[sagelib-10.5.beta3] [spkg-install] print(
[sagelib-10.5.beta3] [spkg-install] "ERROR: Can not execute 
`setup.py` since setuptools is not available in "
[sagelib-10.5.beta3] [spkg-install] "the build environment.",
[sagelib-10.5.beta3] [spkg-install] file=sys.stderr,
[sagelib-10.5.beta3] [spkg-install] )
[sagelib-10.5.beta3] [spkg-install] sys.exit(1)
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] __file__ = %r
[sagelib-10.5.beta3] [spkg-install] sys.argv[0] = __file__
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] if os.path.exists(__file__):
[sagelib-10.5.beta3] [spkg-install] filename = __file__
[sagelib-10.5.beta3] [spkg-install] with tokenize.open(__file__) as 
f:
[sagelib-10.5.beta3] [spkg-install] setup_py_code = f.read()
[sagelib-10.5.beta3] [spkg-install] else:
[sagelib-10.5.beta3] [spkg-install] filename = ""
[sagelib-10.5.beta3] [spkg-install] setup_py_code = "from 
setuptools import setup; setup()"
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] exec(compile(setup_py_code, 
filename, "exec"))
[sagelib-10.5.beta3] [spkg-install] '"'"''"'"''"'"' % 
('"'"'/Users/mavin/Downloads/sage-10.5.beta3/src/setup.py'"'"',), 
"", "exec"))' --no-user-cfg develop --no-deps
[sagelib-10.5.beta3] [spkg-install] cwd: 
/Users/mavin/Downloads/sage-10.5.beta3/src/
[sagelib-10.5.beta3] [spkg-install] error: subprocess-exited-with-error
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] × python setup.py develop did not run 
successfully.
[sagelib-10.5.beta3] [spkg-install] │ exit code: 1
[sagelib-10.5.beta3] [spkg-install] ╰─> See above for output.
[sagelib-10.5.beta3] [spkg-install] 
[sagelib-10.5.beta3] [spkg-install] note: This error originates from a 
subprocess, and is likely not a problem with pip.
[sagelib-10.5.beta3] [spkg-install] 
*
[sagelib-10.5.beta3] [spkg-install] Error installing sagelib-10.5.beta3
[sagelib-10.5.beta3] [spkg-install] 
*
[sagelib-10.5.beta3] 

[sagelib-10.5.beta3] Error installing package sagelib-10.5.beta3
[sagelib-10.5.beta3] 

[sagelib-10.5.beta3] Please email sage-devel 
(ht

Re: [sage-devel] Unable to build sagelib on macOS arm64

2024-09-18 Thread Mavin Hellman
Hello, 

I was able to get sage to build (I had to do a lot of switching back and 
forth of the CXXFLAGS and LDFLAGS to my MacPorts installation. I 
encountered another error though I can't seem to get past and that is in 
relation to sage-doc-html.

[sagemath_doc_html-none] [spkg-install] 
/sage-develop/local/var/lib/sage/venv-python3.9/lib/python3.9/site-packages/urllib3/__init__.py:34:
 
NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 
'ssl' module is compiled with 'LibreSSL 2.8.3'. See: 
https://github.com/urllib3/urllib3/issues/3020
Is there a version that is easier to build than the beta or a prebuilt 
version that allows packages to be installed?
On Sunday, September 15, 2024 at 7:55:03 AM UTC-7 dim...@gmail.com wrote:

> it appears that m4ri was not successfully built.
> Please post the corresponding log file, logs/pkgs/m4ri*.log
>
> On Sun, Sep 15, 2024 at 5:37 AM Mavin Hellman  wrote:
> >
> > Attempting to build Sage 10.5 beta on macOS Version 14.2.1 (23C71)
> >
> > ```
> > [sagelib-10.5.beta3] [spkg-install] ld: illegal thread local variable 
> reference to regular symbol __ZN3NTL8ZZ_pInfoE for architecture arm64
> > [sagelib-10.5.beta3] [spkg-install] clang: error: linker command failed 
> with exit code 1 (use -v to see invocation)
> > [sagelib-10.5.beta3] [spkg-install] error: command '/usr/bin/g++' failed 
> with exit code 1
> > [sagelib-10.5.beta3] [spkg-install] error: subprocess-exited-with-error
> > [sagelib-10.5.beta3] [spkg-install]
> > [sagelib-10.5.beta3] [spkg-install] × python setup.py develop did not 
> run successfully.
> > [sagelib-10.5.beta3] [spkg-install] │ exit code: 1
> > [sagelib-10.5.beta3] [spkg-install] ╰─> See above for output.
> > [sagelib-10.5.beta3] [spkg-install]
> > [sagelib-10.5.beta3] [spkg-install] note: This error originates from a 
> subprocess, and is likely not a problem with pip.
> > [sagelib-10.5.beta3] [spkg-install] full command: 
> /Users/mavin/Downloads/sage-10.5.beta3/local/var/lib/sage/venv-python3.9/bin/python3
>  
> -c '
> > [sagelib-10.5.beta3] [spkg-install] exec(compile('"'"''"'"''"'"'
> > [sagelib-10.5.beta3] [spkg-install] # This is  -- 
> a caller that pip uses to run setup.py
> > [sagelib-10.5.beta3] [spkg-install] #
> > [sagelib-10.5.beta3] [spkg-install] # - It imports setuptools before 
> invoking setup.py, to enable projects that directly
> > [sagelib-10.5.beta3] [spkg-install] # import from `distutils.core` to 
> work with newer packaging standards.
> > [sagelib-10.5.beta3] [spkg-install] # - It provides a clear error 
> message when setuptools is not installed.
> > [sagelib-10.5.beta3] [spkg-install] # - It sets `sys.argv[0]` to the 
> underlying `setup.py`, when invoking `setup.py` so
> > [sagelib-10.5.beta3] [spkg-install] # setuptools doesn'"'"'t think the 
> script is `-c`. This avoids the following warning:
> > [sagelib-10.5.beta3] [spkg-install] # manifest_maker: standard file 
> '"'"'-c'"'"' not found".
> > [sagelib-10.5.beta3] [spkg-install] # - It generates a shim setup.py, 
> for handling setup.cfg-only projects.
> > [sagelib-10.5.beta3] [spkg-install] import os, sys, tokenize
> > [sagelib-10.5.beta3] [spkg-install]
> > [sagelib-10.5.beta3] [spkg-install] try:
> > [sagelib-10.5.beta3] [spkg-install] import setuptools
> > [sagelib-10.5.beta3] [spkg-install] except ImportError as error:
> > [sagelib-10.5.beta3] [spkg-install] print(
> > [sagelib-10.5.beta3] [spkg-install] "ERROR: Can not execute `setup.py` 
> since setuptools is not available in "
> > [sagelib-10.5.beta3] [spkg-install] "the build environment.",
> > [sagelib-10.5.beta3] [spkg-install] file=sys.stderr,
> > [sagelib-10.5.beta3] [spkg-install] )
> > [sagelib-10.5.beta3] [spkg-install] sys.exit(1)
> > [sagelib-10.5.beta3] [spkg-install]
> > [sagelib-10.5.beta3] [spkg-install] __file__ = %r
> > [sagelib-10.5.beta3] [spkg-install] sys.argv[0] = __file__
> > [sagelib-10.5.beta3] [spkg-install]
> > [sagelib-10.5.beta3] [spkg-install] if os.path.exists(__file__):
> > [sagelib-10.5.beta3] [spkg-install] filename = __file__
> > [sagelib-10.5.beta3] [spkg-install] with tokenize.open(__file__) as f:
> > [sagelib-10.5.beta3] [spkg-install] setup_py_code = f.read()
> > [sagelib-10.5.beta3] [spkg-install] else:
> > [sagelib-10.5.beta3] [spkg-install] filename = " setuptools caller>"
> > [sagelib-10.5.beta3] [spkg-install] setup_py_code = "from setuptools 
> import setup; setu