sagemath 8.9 is not complied on macOS Catalina with python3

334 views
Skip to first unread message

Junwei Wang

unread,
Oct 18, 2019, 11:07:11 AM10/18/19
to sage-devel
Besides, could the SAGE team officially release binary with Python 3 (although it is not stable), since we are force to use python3 in many cases and it is painful to compile by user themselves?
yasm-1.3.0.p0.log

Dima Pasechnik

unread,
Oct 18, 2019, 12:08:00 PM10/18/19
to sage-devel, Isuru Fernando
It's hit and miss for Sage to build on Catalina, I think the latest
Xcode cannot not build it.
Otherwise there is an option to use Conda, which allows you to select
Python3, as far as I know
(Isuru will correct me if I'm wrong...)

On Fri, Oct 18, 2019 at 4:07 PM Junwei Wang <wake...@gmail.com> wrote:
>
> Besides, could the SAGE team officially release binary with Python 3 (although it is not stable), since we are force to use python3 in many cases and it is painful to compile by user themselves?
>
> --
> 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 sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/819fdf68-241e-4b1f-98e7-07306733a5da%40googlegroups.com.

John H Palmieri

unread,
Oct 18, 2019, 12:08:48 PM10/18/19
to sage-devel
I have compiled it without any problems. You should not be using gcc from homebrew, but rather the version of gcc installed by Xcode or its command-line tools. That might help. (You should install the homebrew gcc package to get gfortran, but at least for me, installing homebrew's gcc installed /usr/local/bin/gcc-9, not /usr/local/bin/gcc. The presence of /usr/local/bin/gcc-9 is fine, the presence of /usr/local/bin/gcc is not.)

Dima Pasechnik

unread,
Oct 18, 2019, 1:25:07 PM10/18/19
to sage-devel
Hi John,

On Fri, Oct 18, 2019 at 5:08 PM John H Palmieri <jhpalm...@gmail.com> wrote:
>
> I have compiled it without any problems. You should not be using gcc from homebrew, but rather the version of gcc installed by Xcode or its command-line tools. That might help. (You should install the homebrew gcc package to get gfortran, but at least for me, installing homebrew's gcc installed /usr/local/bin/gcc-9, not /usr/local/bin/gcc. The presence of /usr/local/bin/gcc-9 is fine, the presence of /usr/local/bin/gcc is not.)

If I followed all this up correctly, on Catalina Xcode 11.0 works, but
Xcode 11.1 does not.
What Xcode version are you using?
>
>
> On Friday, October 18, 2019 at 8:07:11 AM UTC-7, Junwei Wang wrote:
>>
>> Besides, could the SAGE team officially release binary with Python 3 (although it is not stable), since we are force to use python3 in many cases and it is painful to compile by user themselves?
>
> --
> 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 sage-devel+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/5abd9f2c-0905-4565-93c2-aa64ecf84d80%40googlegroups.com.

Dima Pasechnik

unread,
Oct 18, 2019, 1:37:39 PM10/18/19
to sage-devel
If I am allowed to quote classics here:

Quo usque tandem abutere, Catalina, patientia nostra? Quam diu etiam
furor iste tuus nos eludet? Quem ad finem sese effrenata iactabit
audacia?

O tempora, o mores!

John H Palmieri

unread,
Oct 18, 2019, 1:50:16 PM10/18/19
to sage-devel


On Friday, October 18, 2019 at 10:25:07 AM UTC-7, Dima Pasechnik wrote:
Hi John,

On Fri, Oct 18, 2019 at 5:08 PM John H Palmieri <jhpalm...@gmail.com> wrote:
>
> I have compiled it without any problems. You should not be using gcc from homebrew, but rather the version of gcc installed by Xcode or its command-line tools. That might help. (You should install the homebrew gcc package to get gfortran, but at least for me, installing homebrew's gcc installed /usr/local/bin/gcc-9, not /usr/local/bin/gcc. The presence of /usr/local/bin/gcc-9 is fine, the presence of /usr/local/bin/gcc is not.)

If I followed all this up correctly, on Catalina Xcode 11.0 works, but
Xcode 11.1 does not.
What Xcode version are you using?

11.1. "xcode-select --version" says "xcode-select version 2370". "gcc --version" says

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.0 (clang-1100.0.33.8)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I also have homebrew's gcc and gforfran installed. I downloaded homebrew when I had a beta version of Catalina, about a week before the actual Catalina release. Once Catalina was released, I did "brew uninstall gcc" and then "brew install gcc" to test it out, and it built gcc and gfortran from scratch. I then built Sage using that.

This is not on my main computer, so I didn't mind if things went wrong. I was pleasantly surprised that everything worked.
 
>
>
> On Friday, October 18, 2019 at 8:07:11 AM UTC-7, Junwei Wang wrote:
>>
>> Besides, could the SAGE team officially release binary with Python 3 (although it is not stable), since we are force to use python3 in many cases and it is painful to compile by user themselves?
>
> --
> 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 sage-...@googlegroups.com.

Isuru Fernando

unread,
Oct 18, 2019, 3:08:37 PM10/18/19
to Dima Pasechnik, sage-devel
Yes, sage on conda-forge supports python 2.7, 3.6 and 3.7 on linux (glibc x86_64) and osx-64.

Isuru
Reply all
Reply to author
Forward
0 new messages