Cannot compile sage on macosx 12.3

103 views
Skip to first unread message

Andrew

unread,
Mar 21, 2022, 12:54:08 AM3/21/22
to sage-devel
Hi,

I am running macosx 12.3 with Xcode 13.3. As suggested on https://groups.google.com/g/sage-devel/c/qKivbTJSbWU, I have sage 9.6beta5 with the ticket ttps://trac.sagemath.org/ticket/33522 on top:

git branch
  develop
* t/33522/pythran__update_to_0_11_0

, but when I try to compile from source the build fails with:

The following package(s) may have failed to build (not necessarily
during this run of 'make all-start'):

* package:         openblas-0.3.20
  last build time: 21 Mar 14:49
  log file:        /usr/local/src/sage/logs/pkgs/openblas-0.3.20.log
  build directory: /usr/local/src/sage/local/var/tmp/sage/build/openblas-0.3.20

I was able to compile 9.6beta4 and I suspect that I have done something strange recently because I have already openblas installed with brew.

I am compiling using:

cd $SAGE_ROOT && MAKE="make -j6" && ./configure && source /usr/local/src/sage/.homebrew-build-env && ./config.status --recheck && ./config.status && make

I attach:
  • /usr/local/src/sage/logs/pkgs/openblas-0.3.20.log
  • /usr/local/src/sage/config.log
Any suggestions would be greatly appreciated.
Andrew

openblas-0.3.20.log
config.log

Kwankyu Lee

unread,
Mar 21, 2022, 4:54:19 AM3/21/22
to sage-devel
This occurred to me from time to time, I just do "sage -i openblas" and "make" again. 


Andrew

unread,
Mar 21, 2022, 6:54:55 AM3/21/22
to sage-devel
Thanks. I'll try that!
Andrew

John H Palmieri

unread,
Mar 21, 2022, 8:19:23 PM3/21/22
to sage-devel
config.log shows lots of errors of the form

    ld: warning: directory not found for option '-L/opt/homebrew/opt/lib'

I wonder if .homebrew-build-env is producing the wrong information as compared to your homebrew installation. Where are homebrew's libraries actually installed, if not in /opt/homebrew/opt/lib? Sage should not have to build openblas if it's already installed via homebrew.

--
John

Andrew

unread,
Mar 22, 2022, 10:22:21 PM3/22/22
to sage-devel
Thanks John. There were some irregularities in my set up that I think I have now resolved but I am still unable to compile sage. The error that I am getting now is:

* package:         pythran-0.11.0
  last build time: 23 Mar 13:06
  log file:        /usr/local/src/sage/logs/pkgs/pythran-0.11.0.log

Again, this is funny since I have the brew pythran package installed. I tried modifying .homebrew-build-env so that it includes the lines:
{{{
for l in gettext bzip2 texinfo polymake pythran; do
    if [ -d "$HOMEBREW/opt/$l/bin" ]; then
        PATH="$HOMEBREW/opt/$l/bin:$PATH"
    fi
done
}}}
but this did not help. The build of pythran fails with error messages of the form:
{{{
Attempting to download package pythran-0.11.0.tar.gz from mirrors
https://mirror.aarnet.edu.au/pub/sage/spkg/upstream/pythran/pythran-0.11.0.tar.gz
[xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
ERROR [transfer|run:135]: [Errno socket error] [Errno 404] Not Found: '//mirror.aarnet.edu.au/pub/sage/spkg/upstream/pythran/pythran-0.11.0.tar.gz'
}}}
There are correct as this file does not exist. The link
does exist but its version 0.10.0 instead of 0.11.0.

Andrew
pythran-0.11.0.log
config.log

Samuel Lelievre

unread,
Mar 23, 2022, 4:58:36 AM3/23/22
to sage-devel
You can download the pythran 0.11.0 source tarball from


(as found in `build/pkgs/pythran/checksums.ini`)

and place it in the `upstream` folder of your Sage installation.

Alternatively, you can use
```
./configure --enable-download-from-upstream-url
```

Andrew

unread,
Mar 23, 2022, 7:59:38 AM3/23/22
to sage-devel
Great. Thank you. That worked.
Reply all
Reply to author
Forward
0 new messages