[sage-devel] Re: OSX Catalina works

2019-11-19 Thread Andrew
For the time being I have given up on trying to compile sage directly and 
have instead installed it using anaconda.

Andrew

On Tuesday, 5 November 2019 11:54:00 UTC+8, Andrew wrote:
>
> Sadly this still is not working for me. When I found that using your brew 
> formulae didn't work I uninstalled brew, xcode and the command line tools 
> and then reinstalled everything. My current configuration is:
>
> $ sw_vers
> ProductName:Mac OS X
> ProductVersion:10.15.1
> BuildVersion:19B88
>
> $ xcode-select --version
> xcode-select version 2370.
>
> $ xcodebuild -version
> Xcode 11.2
> Build version 11B52
>
> $ brew list
> autoconfgnutls  libmpc  openexrshared-
> mime-info
> automakegpatch  libomp  opensslsqlite
> boost   icu4c   libpng  openssl@1.1texinfo
> cimgilmbase libtasn1p11-kitunbound
> cmake   isl libtool p7zip  unrar
> gcc libde265libunistringpari   xz
> gdbmlibdvdcss   mpfipcre
> gettext libeventmpfrpkg-config
> gliblibffi  nettle  python
> gmp libidn2 ntl readline
>
> $ env
> NVM_RC_VERSION=
> TERM_PROGRAM=Apple_Terminal
> NVM_CD_FLAGS=
> SHELL=/usr/local/bin/bash
> TERM=xterm-256color
> TMPDIR=/var/folders/s0/zb5nzt557xj_hc2t_4j_c2zrgn/T/
> TERM_PROGRAM_VERSION=433
> HTTP_SMS_USER=mathas
> OLDPWD=/Users/andrew
> TERM_SESSION_ID=8B5621BC-E947-4260-A2DD-0ABB88C39133
> NVM_DIR=/Users/andrew/.nvm
> USER=andrew
> TIMEFORMAT=
> real %3Ruser %3Usys %3Spcpu %P
>
> SAGE_BROWSER=chrome
> SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.bB0vdzfNg7/Listeners
> SAGE_INSTALL_CCACHE=yes
> PATH=/Users/andrew/bin:/Users/andrew/.node/bin:/usr/local/sbin:/usr/local/
> bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/usr/
> local/sbin
> INPUTRC=/Users/andrew/.dotfiles/config/inputrc
> PWD=/usr/local/src/sage
> LANG=en_AU.UTF-8
> SAGE_ROOT=/usr/local/src/sage
> XPC_FLAGS=0x0
> HISTIGNORE=&:bg:fg:ll:h
> XPC_SERVICE_NAME=0
> SHLVL=1
> HOME=/Users/andrew
> MAKE=make -j3
> XDG_CONFIG_HOME=/Users/andrew/.dotfiles/
> TEXEDIT=gvim +%d %s
> PYCURL_CURL_CONFIG=/usr/local/opt/curl-openssl/bin/curl-config
> FULLPATH=/Users/andrew/bin:/Users/andrew/.node/bin:/usr/local/sbin:/usr/
> local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:
> /usr/local/sbin
> LOGNAME=andrew
> DISPLAY=:0
> SQLITE_EXEMPT_PATH_FROM_VNODE_GUARDS=/Users/andrew/Library/WebKit/
> Databases
> HISTTIMEFORMAT=%H:%M > 
> _=/usr/bin/env
>
>
> Is there anything wrong in my attached config file?
>
> Andrew
>
> ps. I also tried compiling with https://trac.sagemath.org/ticket/28691 
> but the build failed in exactly the same way.
>
> On Monday, 4 November 2019 16:35:55 UTC+11, John H Palmieri wrote:
>>
>> I am using the same versions of OS and Xcode as you. I am now doing this 
>> with a third computer. This one had an old Xcode and some homebrew stuff 
>> already installed, and it gave me some problems. I ended up uninstalling 
>> and then reinstalling various parts of homebrew, and Sage now builds for 
>> me. (I had also first installed some things by hand, like gfortran many 
>> months ago. So I had to delete things like that when doing the homebrew 
>> installation.)
>>
>> $ brew list
>> autoconflibdvdcss   p7zip
>> automakelibeventpari
>> boost   libffi  pcre
>> cabextract  libidn2 pkg-config
>> cimglibmpc  python
>> cmake   libomp  readline
>> emacs-mac   libpng  shared-mime-info
>> gcc libtasn1sqlite
>> gdbmlibtool texinfo
>> gettext libunistringunbound
>> glibmpfiunrar
>> gmp mpfrwine
>> gnutls  nettle  winetricks
>> gpatch  ntl x265
>> icu4c   openexr xz
>> ilmbase openssl yasm
>> isl openssl@1.1
>> libde265p11-kit
>>
>>
>> $ brew --version
>> Homebrew 2.1.15
>> Homebrew/homebrew-core (git revision d191f; last commit 2019-11-03)
>> Homebrew/homebrew-cask (git revision cbd79; last commit 2019-11-03)
>>
>>
>>
>>
>> On Sunday, November 3, 2019 at 8:53:57 PM UTC-8, Andrew wrote:
>>>
>>> I uninstalled xcode and brew's gcc and then reinstall them both but I 
>>> still the the same failure with givaro.
>>> I don't know if this is related, but even though I installed ntl using 
>>> brew it is not used when I compile sage as the log file reports:
>>>
>>> checking NTL/ZZ.h usability... no
>>> checking NTL/ZZ.h presence... yes
>>> configure: WARNING: NTL/ZZ.h: present but cannot be compiled
>>> configure: WARNING: NTL/ZZ.h: check for missing prerequisite headers?
>>> configure: WARNING: 

Re: [sage-devel] Re: OSX Catalina works

2019-11-05 Thread David Joyner
On Mon, Nov 4, 2019 at 12:51 PM Dima Pasechnik  wrote:

> configure:12690: g++ -E -std=gnu++11
> -I/Volumes/Transcend/wooster/computer-algebra/anaconda3/include
> conftest.cpp
>
> anaconda conflict?
>

I deleted it, used brew to install a few more packages, and
added some symlinks (which brew leaves out for some reason?)
and tried again. It compiled the source but not the docs (some sort
of java issue), but sage works!

bash-3.2$ ./sage

┌┐

│ SageMath version 9.0.beta3, Release Date: 2019-10-26   │

│ Using Python 3.7.3. Type "help()" for help.│

└┘

┏┓

┃ Warning: this is a prerelease version, and it may be unstable. ┃

┗┛

sage: *2*+*3*
5

Thanks to everyone for the help! I now have a working version of sage
on  my 10.15.1 laptop running the latest version of Xcode:-)


> On Mon, Nov 4, 2019 at 5:37 PM David Joyner  wrote:
> >
> >
> >
> > On Sun, Nov 3, 2019 at 11:07 AM Dima Pasechnik 
> wrote:
> >>
> >> could you post config.log ?
> >
> >
> > It is attached.
> >
> >>
> >>
> >> On Sun, 3 Nov 2019, 15:03 David Joyner,  wrote:
> >>>
> >>>
> >>>
> >>> On Sun, Nov 3, 2019 at 6:49 AM David Joyner 
> wrote:
> 
> 
> 
>  On Sun, Nov 3, 2019 at 3:00 AM Dima Pasechnik 
> wrote:
> >
> > looks like gd package didn't install right.
> >
> > you can install gd via Homebrew:
> >
> > https://formulae.brew.sh/formula/gd
> >
> > also, by the way, install pkg-config
> >
> > https://formulae.brew.sh/formula/pkg-config
> >
> > (it would be great if someone with well-working osx system updated
> Installation guide to list names of Homebrew packages to match Sage ones,
> listed on
> > https://trac.sagemath.org/ticket/27330)
> >
> 
>  I'll do that and try again.
> >>>
> >>>
> >>> This time it failed while compiling m4ri.
> >>>
> >>>
> >>> m4ri-20140914.p0] ld: library not found for -lpng12
> >>> [m4ri-20140914.p0] clang: error: linker command failed with exit code
> 1 (use -v to see invocation)
> >>> [m4ri-20140914.p0] make[5]: *** [libm4ri.la] Error 1
> >>> [m4ri-20140914.p0] make[4]: *** [all] Error 2
> >>> [m4ri-20140914.p0]
> >>>
> 
> 
>  BTW, I added gdlib.pc to PKG_CONFIG_PATH and reran make.
>  This time it got all the way to sagelib before stalling:
> 
>  [sagelib-9.0.beta3]
> /Volumes/Transcend/wooster/computer-algebra/sage-9.0.beta3/local/include/omalloc/omalloc.h:20:20:
> note: expanded from macro 'REGISTER'
> 
>  [sagelib-9.0.beta3]   #define REGISTER register
> 
>  [sagelib-9.0.beta3]^
> 
>  [sagelib-9.0.beta3] 96 warnings generated.
> 
>  make[3]: *** [sagelib] Error 2
> 
>  make[2]: *** [all-start] Error 2
> 
> 
> 
> >
> >
> > I also have formulas for flint and arb, they would be built from
> source and installed in Homebrew structure.
> >
> >
> >
> >
> >
> >
> >
> >
> > On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:
> >>
> >>
> >>
> >> On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri <
> jhpalmier...@gmail.com> wrote:
> >>>
> >>> If you have the time, could you try uninstalling Xcode and then
> reinstalling it? You might also try uninstalling and reinstalling
> homebrew's gcc and any other homebrew components that are relevant to Sage.
> There may be some remnants of previously installed software that is somehow
> interfering.
> >>>
> >>>   John
> >>>
> >>
> >> I uninstalled xcode (including the CL tools) then reinstalled the
> latest version
> >> (including the CL tools, which now go in a new directory). I also
> uninstalled and reinstalled
> >> homebrew.
> >>
> >> This time homebrew installed gcc fine. The compilation of
> sage-9.0b3 went fine until
> >> it hit brial-1.2.5. Then I got:
> >>
> >> [brial-1.2.5] Package gdlib was not found in the pkg-config search
> path.
> >> [brial-1.2.5] Perhaps you should add the directory containing
> `gdlib.pc'
> >> [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
> >> [brial-1.2.5] Package 'gdlib', required by 'world', not found
> >>
> >> FWIW, I did find gdlib.pc in a directory of a non-working older
> sage:
> >>
> >> /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc
> >>
> >>
> >>  Any suggestions?
> >>
> >>>
> >>> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
> 
> 
> 
>  On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik
> wrote:
> >
> > I meant cmath files without extensions. These are C++ header
> files.
> > It 

Re: [sage-devel] Re: OSX Catalina works

2019-11-04 Thread Volker Braun
Patch gcc, see: see https://trac.sagemath.org/ticket/28691

On Monday, November 4, 2019 at 11:34:48 AM UTC+1, Dima Pasechnik wrote:
>
> in view of problems with building gcc/gfortran on osx 10.15 and latest 
> Xcode, one must wonder what Homebrew does to make it work.
> Do they patch system headers, or something like that?
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/59a143d4-8282-480e-a165-b0aca1e69bdc%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-11-04 Thread Dima Pasechnik
configure:12690: g++ -E -std=gnu++11
-I/Volumes/Transcend/wooster/computer-algebra/anaconda3/include
conftest.cpp

anaconda conflict?

On Mon, Nov 4, 2019 at 5:37 PM David Joyner  wrote:
>
>
>
> On Sun, Nov 3, 2019 at 11:07 AM Dima Pasechnik  wrote:
>>
>> could you post config.log ?
>
>
> It is attached.
>
>>
>>
>> On Sun, 3 Nov 2019, 15:03 David Joyner,  wrote:
>>>
>>>
>>>
>>> On Sun, Nov 3, 2019 at 6:49 AM David Joyner  wrote:



 On Sun, Nov 3, 2019 at 3:00 AM Dima Pasechnik  wrote:
>
> looks like gd package didn't install right.
>
> you can install gd via Homebrew:
>
> https://formulae.brew.sh/formula/gd
>
> also, by the way, install pkg-config
>
> https://formulae.brew.sh/formula/pkg-config
>
> (it would be great if someone with well-working osx system updated 
> Installation guide to list names of Homebrew packages to match Sage ones, 
> listed on
> https://trac.sagemath.org/ticket/27330)
>

 I'll do that and try again.
>>>
>>>
>>> This time it failed while compiling m4ri.
>>>
>>>
>>> m4ri-20140914.p0] ld: library not found for -lpng12
>>> [m4ri-20140914.p0] clang: error: linker command failed with exit code 1 
>>> (use -v to see invocation)
>>> [m4ri-20140914.p0] make[5]: *** [libm4ri.la] Error 1
>>> [m4ri-20140914.p0] make[4]: *** [all] Error 2
>>> [m4ri-20140914.p0]
>>>


 BTW, I added gdlib.pc to PKG_CONFIG_PATH and reran make.
 This time it got all the way to sagelib before stalling:

 [sagelib-9.0.beta3] 
 /Volumes/Transcend/wooster/computer-algebra/sage-9.0.beta3/local/include/omalloc/omalloc.h:20:20:
  note: expanded from macro 'REGISTER'

 [sagelib-9.0.beta3]   #define REGISTER register

 [sagelib-9.0.beta3]^

 [sagelib-9.0.beta3] 96 warnings generated.

 make[3]: *** [sagelib] Error 2

 make[2]: *** [all-start] Error 2



>
>
> I also have formulas for flint and arb, they would be built from source 
> and installed in Homebrew structure.
>
>
>
>
>
>
>
>
> On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:
>>
>>
>>
>> On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri  
>> wrote:
>>>
>>> If you have the time, could you try uninstalling Xcode and then 
>>> reinstalling it? You might also try uninstalling and reinstalling 
>>> homebrew's gcc and any other homebrew components that are relevant to 
>>> Sage. There may be some remnants of previously installed software that 
>>> is somehow interfering.
>>>
>>>   John
>>>
>>
>> I uninstalled xcode (including the CL tools) then reinstalled the latest 
>> version
>> (including the CL tools, which now go in a new directory). I also 
>> uninstalled and reinstalled
>> homebrew.
>>
>> This time homebrew installed gcc fine. The compilation of sage-9.0b3 
>> went fine until
>> it hit brial-1.2.5. Then I got:
>>
>> [brial-1.2.5] Package gdlib was not found in the pkg-config search path.
>> [brial-1.2.5] Perhaps you should add the directory containing `gdlib.pc'
>> [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
>> [brial-1.2.5] Package 'gdlib', required by 'world', not found
>>
>> FWIW, I did find gdlib.pc in a directory of a non-working older sage:
>>
>> /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc
>>
>>
>>  Any suggestions?
>>
>>>
>>> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:



 On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>
> I meant cmath files without extensions. These are C++ header files.
> It appears there are two such files on the list. Are they different?
>
 In the interim have have installed homebrew's gcc to see if this 
 helps, but it doesn't. The cmath files that I now have on my system 
 are:

 -rw-r--r--  1 rootwheel  14515 23 Jul 03:08 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
 -rw-r--r--  1 rootwheel  14515 23 Jul 03:08 
 /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath

 As you suspected, these two files are identical.

 from homebrew's gcc:
 -rw-r--r--  1 andrew  staff619 14 Aug 22:29 
 /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
 -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58 
 /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
 -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58 
 /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
 -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58 
 

Re: [sage-devel] Re: OSX Catalina works

2019-11-04 Thread Dima Pasechnik
in view of problems with building gcc/gfortran on osx 10.15 and latest
Xcode, one must wonder what Homebrew does to make it work.
Do they patch system headers, or something like that?


On Mon, 4 Nov 2019 at 07:37, Andrew  wrote:

> Great, thanks John. I have essentially the same version of brew:
> Homebrew 2.1.15
> Homebrew/homebrew-core (git revision 89bf3; last commit 2019-11-04)
> Homebrew/homebrew-cask (git revision e317e; last commit 2019-11-04)
>
> but I have many more brew packages installed. I reinstalled all of the
> brew packages last week but I have just uninstalled all of the brew
> packages. I will now add everything back in one at a time, starting with
> things on your list, and see if I can compile sage. I'll report back what I
> find.
>
> Andrew
>
>
> On Monday, 4 November 2019 16:35:55 UTC+11, John H Palmieri wrote:
>>
>> I am using the same versions of OS and Xcode as you. I am now doing this
>> with a third computer. This one had an old Xcode and some homebrew stuff
>> already installed, and it gave me some problems. I ended up uninstalling
>> and then reinstalling various parts of homebrew, and Sage now builds for
>> me. (I had also first installed some things by hand, like gfortran many
>> months ago. So I had to delete things like that when doing the homebrew
>> installation.)
>>
>> $ brew list
>> autoconflibdvdcss   p7zip
>> automakelibeventpari
>> boost   libffi  pcre
>> cabextract  libidn2 pkg-config
>> cimglibmpc  python
>> cmake   libomp  readline
>> emacs-mac   libpng  shared-mime-info
>> gcc libtasn1sqlite
>> gdbmlibtool texinfo
>> gettext libunistringunbound
>> glibmpfiunrar
>> gmp mpfrwine
>> gnutls  nettle  winetricks
>> gpatch  ntl x265
>> icu4c   openexr xz
>> ilmbase openssl yasm
>> isl openssl@1.1
>> libde265p11-kit
>>
>>
>> $ brew --version
>> Homebrew 2.1.15
>> Homebrew/homebrew-core (git revision d191f; last commit 2019-11-03)
>> Homebrew/homebrew-cask (git revision cbd79; last commit 2019-11-03)
>>
>>
>>
>>
>> On Sunday, November 3, 2019 at 8:53:57 PM UTC-8, Andrew wrote:
>>>
>>> I uninstalled xcode and brew's gcc and then reinstall them both but I
>>> still the the same failure with givaro.
>>> I don't know if this is related, but even though I installed ntl using
>>> brew it is not used when I compile sage as the log file reports:
>>>
>>> checking NTL/ZZ.h usability... no
>>> checking NTL/ZZ.h presence... yes
>>> configure: WARNING: NTL/ZZ.h: present but cannot be compiled
>>> configure: WARNING: NTL/ZZ.h: check for missing prerequisite headers?
>>> configure: WARNING: NTL/ZZ.h: see the Autoconf documentation
>>> configure: WARNING: NTL/ZZ.h: section "Present But Cannot Be
>>> Compiled"
>>> configure: WARNING: NTL/ZZ.h: proceeding with the compiler's result
>>> configure: WARNING: ## -- ##
>>> configure: WARNING: ## Report this to sage-...@googlegroups.com ##
>>> configure: WARNING: ## -- ##
>>> checking for NTL/ZZ.h... no
>>> checking whether we can link a program using NTL... no
>>> checking NTL version >= 10.3... 11.4.1
>>> using Sage's ntl SPKG
>>> configure: === checking whether to install the flint SPKG ===
>>> checking installing mpfr or ntl? ... yes; install flint as well
>>> using Sage's flint SPKG
>>> configure: === checking whether to install the arb SPKG ===
>>> checking installing flint? ... yes; install arb as well
>>> configure: === checking whether to install the bzip2 SPKG ===
>>>
>>> That sage wants compile flint and arb is expected because I try to
>>> install them with brew I get errors like:
>>>
>>> ==> make
>>> Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
>>>   ~~^
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
>>> error: no member named 'islessgreater' in the global namespace
>>> using ::islessgreater;
>>>   ~~^
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
>>> error: no member named 'isunordered' in the global namespace
>>> using ::isunordered;
>>>   ~~^
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
>>> error: no member named 'isunordered' in the global namespace
>>> using ::isunordered;
>>>   ~~^
>>> 13 errors generated.
>>> make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
>>>
>>> These are similar to the errors that I get with givaro when compiling
>>> sage.
>>>
>>> John: what version of xcode and the command line tools are using and if
>>> you first do
>>>
>>> make distclean
>>>

[sage-devel] Re: OSX Catalina works

2019-11-03 Thread Andrew
Great, thanks John. I have essentially the same version of brew: 
Homebrew 2.1.15
Homebrew/homebrew-core (git revision 89bf3; last commit 2019-11-04)
Homebrew/homebrew-cask (git revision e317e; last commit 2019-11-04)

but I have many more brew packages installed. I reinstalled all of the brew 
packages last week but I have just uninstalled all of the brew packages. I 
will now add everything back in one at a time, starting with things on your 
list, and see if I can compile sage. I'll report back what I find.

Andrew


On Monday, 4 November 2019 16:35:55 UTC+11, John H Palmieri wrote:
>
> I am using the same versions of OS and Xcode as you. I am now doing this 
> with a third computer. This one had an old Xcode and some homebrew stuff 
> already installed, and it gave me some problems. I ended up uninstalling 
> and then reinstalling various parts of homebrew, and Sage now builds for 
> me. (I had also first installed some things by hand, like gfortran many 
> months ago. So I had to delete things like that when doing the homebrew 
> installation.)
>
> $ brew list
> autoconflibdvdcss   p7zip
> automakelibeventpari
> boost   libffi  pcre
> cabextract  libidn2 pkg-config
> cimglibmpc  python
> cmake   libomp  readline
> emacs-mac   libpng  shared-mime-info
> gcc libtasn1sqlite
> gdbmlibtool texinfo
> gettext libunistringunbound
> glibmpfiunrar
> gmp mpfrwine
> gnutls  nettle  winetricks
> gpatch  ntl x265
> icu4c   openexr xz
> ilmbase openssl yasm
> isl openssl@1.1
> libde265p11-kit
>
>
> $ brew --version
> Homebrew 2.1.15
> Homebrew/homebrew-core (git revision d191f; last commit 2019-11-03)
> Homebrew/homebrew-cask (git revision cbd79; last commit 2019-11-03)
>
>
>
>
> On Sunday, November 3, 2019 at 8:53:57 PM UTC-8, Andrew wrote:
>>
>> I uninstalled xcode and brew's gcc and then reinstall them both but I 
>> still the the same failure with givaro.
>> I don't know if this is related, but even though I installed ntl using 
>> brew it is not used when I compile sage as the log file reports:
>>
>> checking NTL/ZZ.h usability... no
>> checking NTL/ZZ.h presence... yes
>> configure: WARNING: NTL/ZZ.h: present but cannot be compiled
>> configure: WARNING: NTL/ZZ.h: check for missing prerequisite headers?
>> configure: WARNING: NTL/ZZ.h: see the Autoconf documentation
>> configure: WARNING: NTL/ZZ.h: section "Present But Cannot Be Compiled"
>> configure: WARNING: NTL/ZZ.h: proceeding with the compiler's result
>> configure: WARNING: ## -- ##
>> configure: WARNING: ## Report this to sage-...@googlegroups.com ##
>> configure: WARNING: ## -- ##
>> checking for NTL/ZZ.h... no
>> checking whether we can link a program using NTL... no
>> checking NTL version >= 10.3... 11.4.1
>> using Sage's ntl SPKG
>> configure: === checking whether to install the flint SPKG ===
>> checking installing mpfr or ntl? ... yes; install flint as well
>> using Sage's flint SPKG
>> configure: === checking whether to install the arb SPKG ===
>> checking installing flint? ... yes; install arb as well
>> configure: === checking whether to install the bzip2 SPKG ===
>>
>> That sage wants compile flint and arb is expected because I try to 
>> install them with brew I get errors like:
>>
>> ==> make
>> Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
>>   ~~^
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
>>  
>> error: no member named 'islessgreater' in the global namespace
>> using ::islessgreater;
>>   ~~^
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
>>  
>> error: no member named 'isunordered' in the global namespace
>> using ::isunordered;
>>   ~~^
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
>>  
>> error: no member named 'isunordered' in the global namespace
>> using ::isunordered;
>>   ~~^
>> 13 errors generated.
>> make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
>>
>> These are similar to the errors that I get with givaro when compiling 
>> sage.
>>
>> John: what version of xcode and the command line tools are using and if 
>> you first do
>>
>> make distclean
>>
>> are you still able to compile sage? As I reinstalled xcode from the 
>> appsrtore I am using the latest versions av I am using:
>>
>> ProductName:Mac OS X
>> ProductVersion:10.15.1
>> BuildVersion:19B88
>> Xcode 11.2
>> Build version 11B52
>>
>> Andrew
>>
>>
>>
>>
>> On Saturday, 2 November 2019 05:45:08 UTC+11, 

[sage-devel] Re: OSX Catalina works

2019-11-03 Thread John H Palmieri
I am using the same versions of OS and Xcode as you. I am now doing this 
with a third computer. This one had an old Xcode and some homebrew stuff 
already installed, and it gave me some problems. I ended up uninstalling 
and then reinstalling various parts of homebrew, and Sage now builds for 
me. (I had also first installed some things by hand, like gfortran many 
months ago. So I had to delete things like that when doing the homebrew 
installation.)

$ brew list
autoconflibdvdcss   p7zip
automakelibeventpari
boost   libffi  pcre
cabextract  libidn2 pkg-config
cimglibmpc  python
cmake   libomp  readline
emacs-mac   libpng  shared-mime-info
gcc libtasn1sqlite
gdbmlibtool texinfo
gettext libunistringunbound
glibmpfiunrar
gmp mpfrwine
gnutls  nettle  winetricks
gpatch  ntl x265
icu4c   openexr xz
ilmbase openssl yasm
isl openssl@1.1
libde265p11-kit


$ brew --version
Homebrew 2.1.15
Homebrew/homebrew-core (git revision d191f; last commit 2019-11-03)
Homebrew/homebrew-cask (git revision cbd79; last commit 2019-11-03)




On Sunday, November 3, 2019 at 8:53:57 PM UTC-8, Andrew wrote:
>
> I uninstalled xcode and brew's gcc and then reinstall them both but I 
> still the the same failure with givaro.
> I don't know if this is related, but even though I installed ntl using 
> brew it is not used when I compile sage as the log file reports:
>
> checking NTL/ZZ.h usability... no
> checking NTL/ZZ.h presence... yes
> configure: WARNING: NTL/ZZ.h: present but cannot be compiled
> configure: WARNING: NTL/ZZ.h: check for missing prerequisite headers?
> configure: WARNING: NTL/ZZ.h: see the Autoconf documentation
> configure: WARNING: NTL/ZZ.h: section "Present But Cannot Be Compiled"
> configure: WARNING: NTL/ZZ.h: proceeding with the compiler's result
> configure: WARNING: ## -- ##
> configure: WARNING: ## Report this to sage-...@googlegroups.com 
>  ##
> configure: WARNING: ## -- ##
> checking for NTL/ZZ.h... no
> checking whether we can link a program using NTL... no
> checking NTL version >= 10.3... 11.4.1
> using Sage's ntl SPKG
> configure: === checking whether to install the flint SPKG ===
> checking installing mpfr or ntl? ... yes; install flint as well
> using Sage's flint SPKG
> configure: === checking whether to install the arb SPKG ===
> checking installing flint? ... yes; install arb as well
> configure: === checking whether to install the bzip2 SPKG ===
>
> That sage wants compile flint and arb is expected because I try to install 
> them with brew I get errors like:
>
> ==> make
> Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
>  
> error: no member named 'islessgreater' in the global namespace
> using ::islessgreater;
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
>  
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
>  
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>   ~~^
> 13 errors generated.
> make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
>
> These are similar to the errors that I get with givaro when compiling sage.
>
> John: what version of xcode and the command line tools are using and if 
> you first do
>
> make distclean
>
> are you still able to compile sage? As I reinstalled xcode from the 
> appsrtore I am using the latest versions av I am using:
>
> ProductName:Mac OS X
> ProductVersion:10.15.1
> BuildVersion:19B88
> Xcode 11.2
> Build version 11B52
>
> Andrew
>
>
>
>
> On Saturday, 2 November 2019 05:45:08 UTC+11, Andrew wrote:
>>
>> Thanks John. I'll give this a try on Monday.
>> Andrew
>>
>> On Saturday, 2 November 2019 04:20:08 UTC+11, John H Palmieri wrote:
>>>
>>> I just upgraded a different machine to Catalina. This one didn't have 
>>> Xcode or homebrew installed beforehand, so I installed Xcode, its 
>>> command-line tools, and homebrew's gcc. Then I built Sage and it worked. I 
>>> have now installed a bunch of other homebrew packages relevant to Sage, and 
>>> the build is going fine. (I had to log out of the machine, so I had to 
>>> interrupt the build, but it had made it past givaro and ntl, which were 
>>> sticking points for another user in this thread.)
>>>
>>> Thinking back on the other machine I upgraded, that one was 

[sage-devel] Re: OSX Catalina works

2019-11-03 Thread Andrew
I uninstalled xcode and brew's gcc and then reinstall them both but I still 
the the same failure with givaro.
I don't know if this is related, but even though I installed ntl using brew 
it is not used when I compile sage as the log file reports:

checking NTL/ZZ.h usability... no
checking NTL/ZZ.h presence... yes
configure: WARNING: NTL/ZZ.h: present but cannot be compiled
configure: WARNING: NTL/ZZ.h: check for missing prerequisite headers?
configure: WARNING: NTL/ZZ.h: see the Autoconf documentation
configure: WARNING: NTL/ZZ.h: section "Present But Cannot Be Compiled"
configure: WARNING: NTL/ZZ.h: proceeding with the compiler's result
configure: WARNING: ## -- ##
configure: WARNING: ## Report this to sage-devel@googlegroups.com ##
configure: WARNING: ## -- ##
checking for NTL/ZZ.h... no
checking whether we can link a program using NTL... no
checking NTL version >= 10.3... 11.4.1
using Sage's ntl SPKG
configure: === checking whether to install the flint SPKG ===
checking installing mpfr or ntl? ... yes; install flint as well
using Sage's flint SPKG
configure: === checking whether to install the arb SPKG ===
checking installing flint? ... yes; install arb as well
configure: === checking whether to install the bzip2 SPKG ===

That sage wants compile flint and arb is expected because I try to install 
them with brew I get errors like:

==> make
Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
  ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
 
error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
  ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
 
error: no member named 'isunordered' in the global namespace
using ::isunordered;
  ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
 
error: no member named 'isunordered' in the global namespace
using ::isunordered;
  ~~^
13 errors generated.
make[2]: *** [build/interfaces/NTL-interface.lo] Error 1

These are similar to the errors that I get with givaro when compiling sage.

John: what version of xcode and the command line tools are using and if you 
first do

make distclean

are you still able to compile sage? As I reinstalled xcode from the 
appsrtore I am using the latest versions av I am using:

ProductName:Mac OS X
ProductVersion:10.15.1
BuildVersion:19B88
Xcode 11.2
Build version 11B52

Andrew




On Saturday, 2 November 2019 05:45:08 UTC+11, Andrew wrote:
>
> Thanks John. I'll give this a try on Monday.
> Andrew
>
> On Saturday, 2 November 2019 04:20:08 UTC+11, John H Palmieri wrote:
>>
>> I just upgraded a different machine to Catalina. This one didn't have 
>> Xcode or homebrew installed beforehand, so I installed Xcode, its 
>> command-line tools, and homebrew's gcc. Then I built Sage and it worked. I 
>> have now installed a bunch of other homebrew packages relevant to Sage, and 
>> the build is going fine. (I had to log out of the machine, so I had to 
>> interrupt the build, but it had made it past givaro and ntl, which were 
>> sticking points for another user in this thread.)
>>
>> Thinking back on the other machine I upgraded, that one was also 
>> relatively "clean": no old Xcode or old homebrew stuff. So for those who 
>> are having problems, I wonder if uninstalling Xcode first would help. Maybe 
>> there are some other old libraries which should be removed before 
>> installing the new Xcode.
>>
>>   John
>>
>>
>> On Monday, October 14, 2019 at 10:43:09 AM UTC-7, Volker Braun wrote:
>>>
>>> Means: I successfully compiled Sage 8.9 on OSX Catalina with Xcode 11.0 
>>>
>>>
>>>
>>> On Sunday, October 13, 2019 at 9:24:44 PM UTC+2, Samuel Lelievre wrote:

 Sun 2019-10-13 08:26:52 UTC, Volker Braun:
>
> I just upgraded the OSX buildbot and Sage works
>
 in case anybody is wondering. This is the first time in years
>
 that the latest OSX release doesn't introduce major toolchain
>
 issues and/or scrambles the filesystem, hope this starts a trend ;-) 
>

 That's good to hear, and there were people wondering.
 See for instance this question on Ask Sage about SageMath
 and macOS 10.15 "Catalina":

 - How to unlock SageMath 8.8 on macOS 10.15 Catalina?
   https://ask.sagemath.org/question/48293

 By "Sage works" do you mean any of the following?

 - there are / there will be binaries for macOS 10.15 "Catalina"
 - the SageMath 8.9 binaries for macOS 10.14 "Mojave"
   also work for macOS 10.15 "Catalina"
 - on macOS 10.15 "Catalina" building SageMath 8.9 from
   source gives a version that works and is not "locked"




-- 
You received this 

Re: [sage-devel] Re: OSX Catalina works

2019-11-03 Thread Dima Pasechnik
On Sun, Nov 3, 2019 at 3:03 PM David Joyner  wrote:
>
>
>
> On Sun, Nov 3, 2019 at 6:49 AM David Joyner  wrote:
>>
>>
>>
>> On Sun, Nov 3, 2019 at 3:00 AM Dima Pasechnik  wrote:
>>>
>>> looks like gd package didn't install right.
>>>
>>> you can install gd via Homebrew:
>>>
>>> https://formulae.brew.sh/formula/gd
>>>distance_regular.
>>> also, by the way, install pkg-config
>>>
>>> https://formulae.brew.sh/formula/pkg-config
>>>
>>> (it would be great if someone with well-working osx system updated
Installation guide to list names of Homebrew packages to match Sage ones,
listed on
>>> https://trac.sagemath.org/ticket/27330)
>>>
>>
>> I'll do that and try again.
>
>
> This time it failed while compiling m4ri.
>
have you uninstalled Sage packages that were to be replaced by Homebrew
ones, that you installed?

make libpng-clean
make libgd-clean

(libpng is a dependency of libgd, so it should be available once you have
libgd in Homebrew)



>
> m4ri-20140914.p0] ld: library not found for -lpng12
> [m4ri-20140914.p0] clang: error: linker command failed with exit code 1
(use -v to see invocation)
> [m4ri-20140914.p0] make[5]: *** [libm4ri.la] Error 1
> [m4ri-20140914.p0] make[4]: *** [all] Error 2
> [m4ri-20140914.p0]
>
>>
>>
>> BTW, I added gdlib.pc to PKG_CONFIG_PATH and reran make.
>> This time it got all the way to sagelib before stalling:
>>
>> [sagelib-9.0.beta3]
/Volumes/Transcend/wooster/computer-algebra/sage-9.0.beta3/local/include/omalloc/omalloc.h:20:20:
note: expanded from macro 'REGISTER'
>>
>> [sagelib-9.0.beta3]   #define REGISTER register
>>
>> [sagelib-9.0.beta3]^
>>
>> [sagelib-9.0.beta3] 96 warnings generated.
>>
>> make[3]: *** [sagelib] Error 2
>>
>> make[2]: *** [all-start] Error 2
>>
>>
>>
>>>
>>>
>>> I also have formulas for flint and arb, they would be built from source
and installed in Homebrew structure.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:



 On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri 
wrote:
>
> If you have the time, could you try uninstalling Xcode and then
reinstalling it? You might also try uninstalling and reinstalling
homebrew's gcc and any other homebrew components that are relevant to Sage.
There may be some remnants of previously installed software that is somehow
interfering.
>
>   John
>

 I uninstalled xcode (including the CL tools) then reinstalled the
latest version
 (including the CL tools, which now go in a new directory). I also
uninstalled and reinstalled
 homebrew.

 This time homebrew installed gcc fine. The compilation of sage-9.0b3
went fine until
 it hit brial-1.2.5. Then I got:

 [brial-1.2.5] Package gdlib was not found in the pkg-config search
path.
 [brial-1.2.5] Perhaps you should add the directory containing
`gdlib.pc'
 [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
 [brial-1.2.5] Package 'gdlib', required by 'world', not found

 FWIW, I did find gdlib.pc in a directory of a non-working older sage:

 /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc


  Any suggestions?

>
> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
>>
>>
>>
>> On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>>>
>>> I meant cmath files without extensions. These are C++ header files.
>>> It appears there are two such files on the list. Are they different?
>>>
>> In the interim have have installed homebrew's gcc to see if this
helps, but it doesn't. The cmath files that I now have on my system are:
>>
>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
>>
>> As you suspected, these two files are identical.
>>
>> from homebrew's gcc:
>> -rw-r--r--  1 andrew  staff619 14 Aug 22:29
/usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
>> -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58
/usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
>> -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58
/usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
>> -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58
/usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
>> -rw-r--r--  1 andrew  wheel619 31 Oct 13:51
/usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
>>
>> Andrew
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit

Re: [sage-devel] Re: OSX Catalina works

2019-11-03 Thread Dima Pasechnik
could you post config.log ?

On Sun, 3 Nov 2019, 15:03 David Joyner,  wrote:

>
>
> On Sun, Nov 3, 2019 at 6:49 AM David Joyner  wrote:
>
>>
>>
>> On Sun, Nov 3, 2019 at 3:00 AM Dima Pasechnik  wrote:
>>
>>> looks like gd package didn't install right.
>>>
>>> you can install gd via Homebrew:
>>>
>>> https://formulae.brew.sh/formula/gd
>>>
>>> also, by the way, install pkg-config
>>>
>>> https://formulae.brew.sh/formula/pkg-config
>>>
>>> (it would be great if someone with well-working osx system updated
>>> Installation guide to list names of Homebrew packages to match Sage ones,
>>> listed on
>>> https://trac.sagemath.org/ticket/27330)
>>>
>>>
>> I'll do that and try again.
>>
>
> This time it failed while compiling m4ri.
>
>
> m4ri-20140914.p0] ld: library not found for -lpng12
> [m4ri-20140914.p0] clang: error: linker command failed with exit code 1
> (use -v to see invocation)
> [m4ri-20140914.p0] make[5]: *** [libm4ri.la] Error 1
> [m4ri-20140914.p0] make[4]: *** [all] Error 2
> [m4ri-20140914.p0]
>
>
>>
>> BTW, I added gdlib.pc to PKG_CONFIG_PATH and reran make.
>> This time it got all the way to sagelib before stalling:
>>
>> [sagelib-9.0.beta3]
>> /Volumes/Transcend/wooster/computer-algebra/sage-9.0.beta3/local/include/omalloc/omalloc.h:20:20:
>> note: expanded from macro 'REGISTER'
>>
>> [sagelib-9.0.beta3]   #define REGISTER register
>>
>> [sagelib-9.0.beta3]^
>>
>> [sagelib-9.0.beta3] 96 warnings generated.
>>
>> make[3]: *** [sagelib] Error 2
>>
>> make[2]: *** [all-start] Error 2
>>
>>
>>
>>
>>>
>>> I also have formulas for flint and arb, they would be built from source
>>> and installed in Homebrew structure.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:
>>>


 On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri 
 wrote:

> If you have the time, could you try uninstalling Xcode and then
> reinstalling it? You might also try uninstalling and reinstalling
> homebrew's gcc and any other homebrew components that are relevant to 
> Sage.
> There may be some remnants of previously installed software that is 
> somehow
> interfering.
>
>   John
>
>
 I uninstalled xcode (including the CL tools) then reinstalled the
 latest version
 (including the CL tools, which now go in a new directory). I also
 uninstalled and reinstalled
 homebrew.

 This time homebrew installed gcc fine. The compilation of sage-9.0b3
 went fine until
 it hit brial-1.2.5. Then I got:

 [brial-1.2.5] Package gdlib was not found in the pkg-config search path.
 [brial-1.2.5] Perhaps you should add the directory containing `gdlib.pc'
 [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
 [brial-1.2.5] Package 'gdlib', required by 'world', not found

 FWIW, I did find gdlib.pc in a directory of a non-working older sage:

 /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc


  Any suggestions?


> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
>>
>>
>>
>> On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>>>
>>> I meant cmath files without extensions. These are C++ header files.
>>> It appears there are two such files on the list. Are they different?
>>>
>>> In the interim have have installed homebrew's gcc to see if this
>> helps, but it doesn't. The cmath files that I now have on my system are:
>>
>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
>> /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
>>
>> As you suspected, these two files are identical.
>>
>> from homebrew's gcc:
>> -rw-r--r--  1 andrew  staff619 14 Aug 22:29
>> /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
>> -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58
>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
>> -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58
>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
>> -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58
>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
>> -rw-r--r--  1 andrew  wheel619 31 Oct 13:51
>> /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
>>
>> Andrew
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/181aab57-8e49-46f3-b758-45f700587410%40googlegroups.com
> 

Re: [sage-devel] Re: OSX Catalina works

2019-11-03 Thread David Joyner
On Sun, Nov 3, 2019 at 6:49 AM David Joyner  wrote:

>
>
> On Sun, Nov 3, 2019 at 3:00 AM Dima Pasechnik  wrote:
>
>> looks like gd package didn't install right.
>>
>> you can install gd via Homebrew:
>>
>> https://formulae.brew.sh/formula/gd
>>
>> also, by the way, install pkg-config
>>
>> https://formulae.brew.sh/formula/pkg-config
>>
>> (it would be great if someone with well-working osx system updated
>> Installation guide to list names of Homebrew packages to match Sage ones,
>> listed on
>> https://trac.sagemath.org/ticket/27330)
>>
>>
> I'll do that and try again.
>

This time it failed while compiling m4ri.


m4ri-20140914.p0] ld: library not found for -lpng12
[m4ri-20140914.p0] clang: error: linker command failed with exit code 1
(use -v to see invocation)
[m4ri-20140914.p0] make[5]: *** [libm4ri.la] Error 1
[m4ri-20140914.p0] make[4]: *** [all] Error 2
[m4ri-20140914.p0]


>
> BTW, I added gdlib.pc to PKG_CONFIG_PATH and reran make.
> This time it got all the way to sagelib before stalling:
>
> [sagelib-9.0.beta3]
> /Volumes/Transcend/wooster/computer-algebra/sage-9.0.beta3/local/include/omalloc/omalloc.h:20:20:
> note: expanded from macro 'REGISTER'
>
> [sagelib-9.0.beta3]   #define REGISTER register
>
> [sagelib-9.0.beta3]^
>
> [sagelib-9.0.beta3] 96 warnings generated.
>
> make[3]: *** [sagelib] Error 2
>
> make[2]: *** [all-start] Error 2
>
>
>
>
>>
>> I also have formulas for flint and arb, they would be built from source
>> and installed in Homebrew structure.
>>
>>
>>
>>
>>
>>
>>
>>
>> On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:
>>
>>>
>>>
>>> On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri 
>>> wrote:
>>>
 If you have the time, could you try uninstalling Xcode and then
 reinstalling it? You might also try uninstalling and reinstalling
 homebrew's gcc and any other homebrew components that are relevant to Sage.
 There may be some remnants of previously installed software that is somehow
 interfering.

   John


>>> I uninstalled xcode (including the CL tools) then reinstalled the latest
>>> version
>>> (including the CL tools, which now go in a new directory). I also
>>> uninstalled and reinstalled
>>> homebrew.
>>>
>>> This time homebrew installed gcc fine. The compilation of sage-9.0b3
>>> went fine until
>>> it hit brial-1.2.5. Then I got:
>>>
>>> [brial-1.2.5] Package gdlib was not found in the pkg-config search path.
>>> [brial-1.2.5] Perhaps you should add the directory containing `gdlib.pc'
>>> [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
>>> [brial-1.2.5] Package 'gdlib', required by 'world', not found
>>>
>>> FWIW, I did find gdlib.pc in a directory of a non-working older sage:
>>>
>>> /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc
>>>
>>>
>>>  Any suggestions?
>>>
>>>
 On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
>
>
>
> On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>>
>> I meant cmath files without extensions. These are C++ header files.
>> It appears there are two such files on the list. Are they different?
>>
>> In the interim have have installed homebrew's gcc to see if this
> helps, but it doesn't. The cmath files that I now have on my system are:
>
> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
> /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
>
> As you suspected, these two files are identical.
>
> from homebrew's gcc:
> -rw-r--r--  1 andrew  staff619 14 Aug 22:29
> /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
> -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58
> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
> -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58
> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
> -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58
> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
> -rw-r--r--  1 andrew  wheel619 31 Oct 13:51
> /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
>
> Andrew
>
> --
 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+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-devel/181aab57-8e49-46f3-b758-45f700587410%40googlegroups.com
 
 .

>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-devel" 

Re: [sage-devel] Re: OSX Catalina works

2019-11-03 Thread David Joyner
On Sun, Nov 3, 2019 at 3:00 AM Dima Pasechnik  wrote:

> looks like gd package didn't install right.
>
> you can install gd via Homebrew:
>
> https://formulae.brew.sh/formula/gd
>
> also, by the way, install pkg-config
>
> https://formulae.brew.sh/formula/pkg-config
>
> (it would be great if someone with well-working osx system updated
> Installation guide to list names of Homebrew packages to match Sage ones,
> listed on
> https://trac.sagemath.org/ticket/27330)
>
>
I'll do that and try again.

BTW, I added gdlib.pc to PKG_CONFIG_PATH and reran make.
This time it got all the way to sagelib before stalling:

[sagelib-9.0.beta3]
/Volumes/Transcend/wooster/computer-algebra/sage-9.0.beta3/local/include/omalloc/omalloc.h:20:20:
note: expanded from macro 'REGISTER'

[sagelib-9.0.beta3]   #define REGISTER register

[sagelib-9.0.beta3]^

[sagelib-9.0.beta3] 96 warnings generated.

make[3]: *** [sagelib] Error 2

make[2]: *** [all-start] Error 2




>
> I also have formulas for flint and arb, they would be built from source
> and installed in Homebrew structure.
>
>
>
>
>
>
>
>
> On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:
>
>>
>>
>> On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri 
>> wrote:
>>
>>> If you have the time, could you try uninstalling Xcode and then
>>> reinstalling it? You might also try uninstalling and reinstalling
>>> homebrew's gcc and any other homebrew components that are relevant to Sage.
>>> There may be some remnants of previously installed software that is somehow
>>> interfering.
>>>
>>>   John
>>>
>>>
>> I uninstalled xcode (including the CL tools) then reinstalled the latest
>> version
>> (including the CL tools, which now go in a new directory). I also
>> uninstalled and reinstalled
>> homebrew.
>>
>> This time homebrew installed gcc fine. The compilation of sage-9.0b3 went
>> fine until
>> it hit brial-1.2.5. Then I got:
>>
>> [brial-1.2.5] Package gdlib was not found in the pkg-config search path.
>> [brial-1.2.5] Perhaps you should add the directory containing `gdlib.pc'
>> [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
>> [brial-1.2.5] Package 'gdlib', required by 'world', not found
>>
>> FWIW, I did find gdlib.pc in a directory of a non-working older sage:
>>
>> /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc
>>
>>
>>  Any suggestions?
>>
>>
>>> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:



 On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>
> I meant cmath files without extensions. These are C++ header files.
> It appears there are two such files on the list. Are they different?
>
> In the interim have have installed homebrew's gcc to see if this
 helps, but it doesn't. The cmath files that I now have on my system are:

 -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
 -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
 /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath

 As you suspected, these two files are identical.

 from homebrew's gcc:
 -rw-r--r--  1 andrew  staff619 14 Aug 22:29
 /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
 -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58
 /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
 -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58
 /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
 -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58
 /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
 -rw-r--r--  1 andrew  wheel619 31 Oct 13:51
 /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath

 Andrew

 --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/181aab57-8e49-46f3-b758-45f700587410%40googlegroups.com
>>> 
>>> .
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/CAEQuuAXWYFLxvsCuTMCmymAOYP%3D1XZjDKF6WiXLDOyLHdCa%2Bxg%40mail.gmail.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to 

Re: [sage-devel] Re: OSX Catalina works

2019-11-03 Thread Dima Pasechnik
looks like gd package didn't install right.

you can install gd via Homebrew:

https://formulae.brew.sh/formula/gd

also, by the way, install pkg-config

https://formulae.brew.sh/formula/pkg-config

(it would be great if someone with well-working osx system updated
Installation guide to list names of Homebrew packages to match Sage ones,
listed on
https://trac.sagemath.org/ticket/27330)


I also have formulas for flint and arb, they would be built from source and
installed in Homebrew structure.








On Sat, 2 Nov 2019, 23:46 David Joyner,  wrote:

>
>
> On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri 
> wrote:
>
>> If you have the time, could you try uninstalling Xcode and then
>> reinstalling it? You might also try uninstalling and reinstalling
>> homebrew's gcc and any other homebrew components that are relevant to Sage.
>> There may be some remnants of previously installed software that is somehow
>> interfering.
>>
>>   John
>>
>>
> I uninstalled xcode (including the CL tools) then reinstalled the latest
> version
> (including the CL tools, which now go in a new directory). I also
> uninstalled and reinstalled
> homebrew.
>
> This time homebrew installed gcc fine. The compilation of sage-9.0b3 went
> fine until
> it hit brial-1.2.5. Then I got:
>
> [brial-1.2.5] Package gdlib was not found in the pkg-config search path.
> [brial-1.2.5] Perhaps you should add the directory containing `gdlib.pc'
> [brial-1.2.5] to the PKG_CONFIG_PATH environment variable
> [brial-1.2.5] Package 'gdlib', required by 'world', not found
>
> FWIW, I did find gdlib.pc in a directory of a non-working older sage:
>
> /Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc
>
>
>  Any suggestions?
>
>
>> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
>>>
>>>
>>>
>>> On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:

 I meant cmath files without extensions. These are C++ header files.
 It appears there are two such files on the list. Are they different?

 In the interim have have installed homebrew's gcc to see if this helps,
>>> but it doesn't. The cmath files that I now have on my system are:
>>>
>>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
>>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
>>> /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
>>>
>>> As you suspected, these two files are identical.
>>>
>>> from homebrew's gcc:
>>> -rw-r--r--  1 andrew  staff619 14 Aug 22:29
>>> /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
>>> -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58
>>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
>>> -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58
>>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
>>> -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58
>>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
>>> -rw-r--r--  1 andrew  wheel619 31 Oct 13:51
>>> /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
>>>
>>> Andrew
>>>
>>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/181aab57-8e49-46f3-b758-45f700587410%40googlegroups.com
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAEQuuAXWYFLxvsCuTMCmymAOYP%3D1XZjDKF6WiXLDOyLHdCa%2Bxg%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq2wz154s%2Brk4g7m9Wa2fMcav%2BMQJVJGmVGpBP1sQT0J2Q%40mail.gmail.com.


Re: [sage-devel] Re: OSX Catalina works

2019-11-02 Thread David Joyner
On Fri, Nov 1, 2019 at 1:15 PM John H Palmieri 
wrote:

> If you have the time, could you try uninstalling Xcode and then
> reinstalling it? You might also try uninstalling and reinstalling
> homebrew's gcc and any other homebrew components that are relevant to Sage.
> There may be some remnants of previously installed software that is somehow
> interfering.
>
>   John
>
>
I uninstalled xcode (including the CL tools) then reinstalled the latest
version
(including the CL tools, which now go in a new directory). I also
uninstalled and reinstalled
homebrew.

This time homebrew installed gcc fine. The compilation of sage-9.0b3 went
fine until
it hit brial-1.2.5. Then I got:

[brial-1.2.5] Package gdlib was not found in the pkg-config search path.
[brial-1.2.5] Perhaps you should add the directory containing `gdlib.pc'
[brial-1.2.5] to the PKG_CONFIG_PATH environment variable
[brial-1.2.5] Package 'gdlib', required by 'world', not found

FWIW, I did find gdlib.pc in a directory of a non-working older sage:

/Users/wdj/sagefiles/SageMath/local/lib/pkgconfig/gdlib.pc


 Any suggestions?


> On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
>>
>>
>>
>> On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>>>
>>> I meant cmath files without extensions. These are C++ header files.
>>> It appears there are two such files on the list. Are they different?
>>>
>>> In the interim have have installed homebrew's gcc to see if this helps,
>> but it doesn't. The cmath files that I now have on my system are:
>>
>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
>> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08
>> /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
>>
>> As you suspected, these two files are identical.
>>
>> from homebrew's gcc:
>> -rw-r--r--  1 andrew  staff619 14 Aug 22:29
>> /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
>> -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58
>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
>> -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58
>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
>> -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58
>> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
>> -rw-r--r--  1 andrew  wheel619 31 Oct 13:51
>> /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
>>
>> Andrew
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/181aab57-8e49-46f3-b758-45f700587410%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAEQuuAXWYFLxvsCuTMCmymAOYP%3D1XZjDKF6WiXLDOyLHdCa%2Bxg%40mail.gmail.com.


[sage-devel] Re: OSX Catalina works

2019-11-01 Thread Andrew
Thanks John. I'll give this a try on Monday.
Andrew

On Saturday, 2 November 2019 04:20:08 UTC+11, John H Palmieri wrote:
>
> I just upgraded a different machine to Catalina. This one didn't have 
> Xcode or homebrew installed beforehand, so I installed Xcode, its 
> command-line tools, and homebrew's gcc. Then I built Sage and it worked. I 
> have now installed a bunch of other homebrew packages relevant to Sage, and 
> the build is going fine. (I had to log out of the machine, so I had to 
> interrupt the build, but it had made it past givaro and ntl, which were 
> sticking points for another user in this thread.)
>
> Thinking back on the other machine I upgraded, that one was also 
> relatively "clean": no old Xcode or old homebrew stuff. So for those who 
> are having problems, I wonder if uninstalling Xcode first would help. Maybe 
> there are some other old libraries which should be removed before 
> installing the new Xcode.
>
>   John
>
>
> On Monday, October 14, 2019 at 10:43:09 AM UTC-7, Volker Braun wrote:
>>
>> Means: I successfully compiled Sage 8.9 on OSX Catalina with Xcode 11.0 
>>
>>
>>
>> On Sunday, October 13, 2019 at 9:24:44 PM UTC+2, Samuel Lelievre wrote:
>>>
>>> Sun 2019-10-13 08:26:52 UTC, Volker Braun:

 I just upgraded the OSX buildbot and Sage works

>>> in case anybody is wondering. This is the first time in years

>>> that the latest OSX release doesn't introduce major toolchain

>>> issues and/or scrambles the filesystem, hope this starts a trend ;-) 

>>>
>>> That's good to hear, and there were people wondering.
>>> See for instance this question on Ask Sage about SageMath
>>> and macOS 10.15 "Catalina":
>>>
>>> - How to unlock SageMath 8.8 on macOS 10.15 Catalina?
>>>   https://ask.sagemath.org/question/48293
>>>
>>> By "Sage works" do you mean any of the following?
>>>
>>> - there are / there will be binaries for macOS 10.15 "Catalina"
>>> - the SageMath 8.9 binaries for macOS 10.14 "Mojave"
>>>   also work for macOS 10.15 "Catalina"
>>> - on macOS 10.15 "Catalina" building SageMath 8.9 from
>>>   source gives a version that works and is not "locked"
>>>
>>>
>>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/e692024e-8d96-4468-9457-de523740db9c%40googlegroups.com.


[sage-devel] Re: OSX Catalina works

2019-11-01 Thread John H Palmieri
I just upgraded a different machine to Catalina. This one didn't have Xcode 
or homebrew installed beforehand, so I installed Xcode, its command-line 
tools, and homebrew's gcc. Then I built Sage and it worked. I have now 
installed a bunch of other homebrew packages relevant to Sage, and the 
build is going fine. (I had to log out of the machine, so I had to 
interrupt the build, but it had made it past givaro and ntl, which were 
sticking points for another user in this thread.)

Thinking back on the other machine I upgraded, that one was also relatively 
"clean": no old Xcode or old homebrew stuff. So for those who are having 
problems, I wonder if uninstalling Xcode first would help. Maybe there are 
some other old libraries which should be removed before installing the new 
Xcode.

  John


On Monday, October 14, 2019 at 10:43:09 AM UTC-7, Volker Braun wrote:
>
> Means: I successfully compiled Sage 8.9 on OSX Catalina with Xcode 11.0 
>
>
>
> On Sunday, October 13, 2019 at 9:24:44 PM UTC+2, Samuel Lelievre wrote:
>>
>> Sun 2019-10-13 08:26:52 UTC, Volker Braun:
>>>
>>> I just upgraded the OSX buildbot and Sage works
>>>
>> in case anybody is wondering. This is the first time in years
>>>
>> that the latest OSX release doesn't introduce major toolchain
>>>
>> issues and/or scrambles the filesystem, hope this starts a trend ;-) 
>>>
>>
>> That's good to hear, and there were people wondering.
>> See for instance this question on Ask Sage about SageMath
>> and macOS 10.15 "Catalina":
>>
>> - How to unlock SageMath 8.8 on macOS 10.15 Catalina?
>>   https://ask.sagemath.org/question/48293
>>
>> By "Sage works" do you mean any of the following?
>>
>> - there are / there will be binaries for macOS 10.15 "Catalina"
>> - the SageMath 8.9 binaries for macOS 10.14 "Mojave"
>>   also work for macOS 10.15 "Catalina"
>> - on macOS 10.15 "Catalina" building SageMath 8.9 from
>>   source gives a version that works and is not "locked"
>>
>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/3a5ac523-a0f1-432d-ae3d-5d9171f08deb%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-11-01 Thread John H Palmieri
If you have the time, could you try uninstalling Xcode and then 
reinstalling it? You might also try uninstalling and reinstalling 
homebrew's gcc and any other homebrew components that are relevant to Sage. 
There may be some remnants of previously installed software that is somehow 
interfering.

  John


On Wednesday, October 30, 2019 at 8:58:38 PM UTC-7, Andrew wrote:
>
>
>
> On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>>
>> I meant cmath files without extensions. These are C++ header files.
>> It appears there are two such files on the list. Are they different?
>>
>> In the interim have have installed homebrew's gcc to see if this helps, 
> but it doesn't. The cmath files that I now have on my system are:
>
> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
> -rw-r--r--  1 rootwheel  14515 23 Jul 03:08 
> /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
>
> As you suspected, these two files are identical.
>
> from homebrew's gcc:
> -rw-r--r--  1 andrew  staff619 14 Aug 22:29 
> /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
> -rw-r--r--  1 andrew  staff  49094 12 Aug 17:58 
> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
> -rw-r--r--  1 andrew  staff   6570 12 Aug 17:58 
> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
> -rw-r--r--  1 andrew  staff  43806 12 Aug 17:58 
> /usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
> -rw-r--r--  1 andrew  wheel619 31 Oct 13:51 
> /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
>
> Andrew
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/181aab57-8e49-46f3-b758-45f700587410%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-30 Thread Andrew


On Wednesday, 30 October 2019 23:27:45 UTC+11, Dima Pasechnik wrote:
>
> I meant cmath files without extensions. These are C++ header files.
> It appears there are two such files on the list. Are they different?
>
> In the interim have have installed homebrew's gcc to see if this helps, 
but it doesn't. The cmath files that I now have on my system are:

-rw-r--r--  1 rootwheel  14515 23 Jul 03:08 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
-rw-r--r--  1 rootwheel  14515 23 Jul 03:08 
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath

As you suspected, these two files are identical.

from homebrew's gcc:
-rw-r--r--  1 andrew  staff619 14 Aug 22:29 
/usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
-rw-r--r--  1 andrew  staff  49094 12 Aug 17:58 
/usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/cmath
-rw-r--r--  1 andrew  staff   6570 12 Aug 17:58 
/usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/ext/cmath
-rw-r--r--  1 andrew  staff  43806 12 Aug 17:58 
/usr/local/Cellar/gcc/9.2.0_1/include/c++/9.2.0/tr1/cmath
-rw-r--r--  1 andrew  wheel619 31 Oct 13:51 
/usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath

Andrew

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/b6bdc28e-97d6-44b1-bd2c-f86bd1054c0f%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-30 Thread Dima Pasechnik
I meant cmath files without extensions. These are C++ header files.
It appears there are two such files on the list. Are they different?


On Wed, 30 Oct 2019, 14:14 Andrew,  wrote:

> I don't have anything like MACOSX_DEPLOYMENT_TARGET or CPLUS_INCLUDE_PATH
> set and I'll paste the list of filenames contain cmath below.
>
> I wonder if this is part of the problem. According to gcc--version:
>
> 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
>
> however, the gxx-include directory
>
>
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
>
> does not exist. I tried adding a link from here to
>
> /Library/Developer/CommandLineTools/usr/include/c++/v1/
>
> and setting CXXFLAGS="-isysroot
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" but this didn't help.
>
> Thanks again for your help!
> Andrew
> 
>
> /Applications/GIMP.app/Contents/Resources/lib/python2.7/lib-dynload/cmath.so
>
> /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload/
> cmath.cpython-37m-darwin.so
>
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
>
> /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload/
> cmath.cpython-37m-darwin.so
>
> /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
> /Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
> /Library/Ruby/Gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
>
> /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so
>
> /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
>
> /System/Library/Templates/Data/Library/Ruby/Gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
> /opt/metasploit-framework/embedded/lib/ruby/2.4.0/cmath.rb
>
> /usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
> /usr/local/Cellar/boost/1.71.0/include/boost/config/no_tr1/cmath.hpp
> /usr/local/Cellar/boost/1.71.0/include/boost/phoenix/stl/cmath.hpp
> /usr/local/Cellar/boost/1.71.0/include/boost/units/cmath.hpp
>
> /usr/local/Cellar/ipython/7.8.0/libexec/vendor/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/cmath.pyi
>
> /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/
> cmath.cpython-37m-darwin.so
> /usr/local/Cellar/python@2
> /2.7.16_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so
> /usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/cmath.rb
>
> /usr/local/Cellar/ruby/2.6.5/lib/ruby/gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
> /usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
> /usr/local/src/sage/local/include/boost/config/no_tr1/cmath.hpp
> /usr/local/src/sage/local/include/boost/phoenix/stl/cmath.hpp
> /usr/local/src/sage/local/include/boost/units/cmath.hpp
>
> On Wednesday, 30 October 2019 17:41:33 UTC+11, Dima Pasechnik wrote:
>>
>> it seems to be related to Apple removing support for libstdc++.
>>
>> Could it be that you have something related to "deployment target"
>> (MACOSX_DEPLOYMENT_TARGET ?) in your default environment variables, or
>> similar settings in Xcode?
>> Or perhaps CPLUS_INCLUDE_PATH is set somewhere?
>>
>> Perhaps your "XcodeDefault.xctoolchain" - that's where that wretched
>> C++ cmath header comes from - is pointing to a wrong toolchain?
>> Can you search for the files named "cmath" on the machine?
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/518a5813-7c1d-4d5d-85df-bf43398aef7c%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web 

Re: [sage-devel] Re: OSX Catalina works

2019-10-30 Thread Andrew
I don't have anything like MACOSX_DEPLOYMENT_TARGET or CPLUS_INCLUDE_PATH 
set and I'll paste the list of filenames contain cmath below.

I wonder if this is part of the problem. According to gcc--version:

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

however, the gxx-include directory 

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1

does not exist. I tried adding a link from here to 

/Library/Developer/CommandLineTools/usr/include/c++/v1/

and setting CXXFLAGS="-isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" but this didn't help.

Thanks again for your help!
Andrew

/Applications/GIMP.app/Contents/Resources/lib/python2.7/lib-dynload/cmath.so
/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload/cmath.cpython-37m-darwin.so
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/lib-dynload/cmath.cpython-37m-darwin.so
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
/Library/Developer/CommandLineTools/usr/include/c++/v1/cmath
/Library/Ruby/Gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/cmath.rb
/System/Library/Templates/Data/Library/Ruby/Gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
/opt/metasploit-framework/embedded/lib/ruby/2.4.0/cmath.rb
/usr/local/Cellar/boost/1.71.0/include/boost/compatibility/cpp_c_headers/cmath
/usr/local/Cellar/boost/1.71.0/include/boost/config/no_tr1/cmath.hpp
/usr/local/Cellar/boost/1.71.0/include/boost/phoenix/stl/cmath.hpp
/usr/local/Cellar/boost/1.71.0/include/boost/units/cmath.hpp
/usr/local/Cellar/ipython/7.8.0/libexec/vendor/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/cmath.pyi
/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload/cmath.cpython-37m-darwin.so
/usr/local/Cellar/python@2/2.7.16_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/cmath.so
/usr/local/Cellar/ruby/2.6.5/lib/ruby/2.6.0/cmath.rb
/usr/local/Cellar/ruby/2.6.5/lib/ruby/gems/2.6.0/specifications/default/cmath-1.0.0.gemspec
/usr/local/src/sage/local/include/boost/compatibility/cpp_c_headers/cmath
/usr/local/src/sage/local/include/boost/config/no_tr1/cmath.hpp
/usr/local/src/sage/local/include/boost/phoenix/stl/cmath.hpp
/usr/local/src/sage/local/include/boost/units/cmath.hpp

On Wednesday, 30 October 2019 17:41:33 UTC+11, Dima Pasechnik wrote:
>
> it seems to be related to Apple removing support for libstdc++. 
>
> Could it be that you have something related to "deployment target" 
> (MACOSX_DEPLOYMENT_TARGET ?) in your default environment variables, or 
> similar settings in Xcode? 
> Or perhaps CPLUS_INCLUDE_PATH is set somewhere? 
>
> Perhaps your "XcodeDefault.xctoolchain" - that's where that wretched 
> C++ cmath header comes from - is pointing to a wrong toolchain? 
> Can you search for the files named "cmath" on the machine? 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/518a5813-7c1d-4d5d-85df-bf43398aef7c%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-30 Thread Dima Pasechnik
it seems to be related to Apple removing support for libstdc++.

Could it be that you have something related to "deployment target"
(MACOSX_DEPLOYMENT_TARGET ?) in your default environment variables, or
similar settings in Xcode?
Or perhaps CPLUS_INCLUDE_PATH is set somewhere?

Perhaps your "XcodeDefault.xctoolchain" - that's where that wretched
C++ cmath header comes from - is pointing to a wrong toolchain?
Can you search for the files named "cmath" on the machine?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq3HQKjr81msB2GHbH-h4hNAfbdj%2BE1pYa%2BfB9Fph6PK6Q%40mail.gmail.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-29 Thread Andrew
Thanks everyone for their comments.

 > try explicitly adding "-stdlib=libc++" to CXXLAGS and LDFLAGS.

Adding these flags to the Makefile didn't change anything: the build again 
failed with givaro-4.1.1

> After installing Xcode, did you run Xcode? 

Yes, of course! Xcode and the command line tools are both fully installed, 
with the terms and conditions agreed. The build would fail much earlier if 
this was not the case.

Just for fun I tried reinstalling Xcode (and the command line tools and 
then accepting the xcode conditions etc) but this made no difference in the 
sense that the sage build died at exactly the same place. Perhaps I should 
winding back to xcode 11?

Andrew

On Wednesday, 30 October 2019 11:39:18 UTC+11, Samuel Lelievre wrote:
>
> Tue 2019-10-29 11:46 UTC, Andrew: 
> > 
> > Thanks Dima 
> > 
> > On Tuesday, 29 October 2019 17:51:02 UTC+11, Dima Pasechnik wrote: 
> >> 
> >> Did you  run 
> >> 
> >> xcode-select --install 
> >> 
> >> after Xcode upgrade? 
> > 
> > 
> > Yes, the command line tools are correctly installed but, as far as I can 
> see, 
> > xcode-select --install  is no longer the correct way to check this 
> > because it results in the error: 
> > 
> > xcode-select: error: command line tools are already installed, use 
> "Software Update" to install updates 
>
> It's still the correct way; the error message is for trying to install 
> while it's already installed. Sometimes one needs to start XCode 
> once, and agree to the terms and conditions. 
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5844078d-ed2a-40cc-ac52-30d92718fe1d%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-29 Thread Samuel Lelièvre
Tue 2019-10-29 11:46 UTC, Andrew:
>
> Thanks Dima
>
> On Tuesday, 29 October 2019 17:51:02 UTC+11, Dima Pasechnik wrote:
>>
>> Did you  run
>>
>> xcode-select --install
>>
>> after Xcode upgrade?
>
>
> Yes, the command line tools are correctly installed but, as far as I can see,
> xcode-select --install  is no longer the correct way to check this
> because it results in the error:
>
> xcode-select: error: command line tools are already installed, use "Software 
> Update" to install updates

It's still the correct way; the error message is for trying to install
while it's already installed. Sometimes one needs to start XCode
once, and agree to the terms and conditions.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAEcArF3tZ73m-vzdY%3D3%3DBzViXwg8N1H%2Bpun3GRrJY7W_oX%3Ddew%40mail.gmail.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-29 Thread John H Palmieri


On Tuesday, October 29, 2019 at 4:45:53 AM UTC-7, Andrew wrote:
>
> Thanks Dima
>
> On Tuesday, 29 October 2019 17:51:02 UTC+11, Dima Pasechnik wrote:
>>
>> Did you  run 
>>
>> xcode-select --install 
>>
>> after Xcode upgrade? 
>>
>
> Yes, the command line tools are correctly installed but, as far as I can 
> see, xcode-select --install  is no longer the correct way to check this 
> because it results in the error:
>
> xcode-select: error: command line tools are already installed, use 
> "Software Update" to install updates
>

After installing Xcode, did you run Xcode? Often it needs to be run once to 
install some components, and in particular the command line tools.

 

>  
>
>> By the way, why don't you use NTL from brew? 
>> https://formulae.brew.sh/formula/ntl#default 
>>
>> you can also make things easier by installing Flint and Arb into 
>> homebrew, by using formulas from 
>> https://github.com/dimpase/homebrew-science 
>>
>> Run 
>>
>> brew install dimpase/science/flint 
>> brew install dimpase/science/arb 
>>
>
> Thanks. I didn't know that there were homebrew formulas for any of these. 
> Unfortunately, neither of these work either, giving similar (but shorter) 
> messages to the compilation errors with sage. Installing flint results in:
>
> ==> Downloading http://flintlib.org/flint-2.5.2.tar.gz
>  
> 100.0%
> ==> ./configure --prefix=/usr/local/Cellar/flint/2.5.2_1 
> --with-gmp=/usr/local/opt/gmp --with-mpfr=/u
> ==> make
> Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
>  
> error: no member named 'islessgreater' in the global namespace
> using ::islessgreater;
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
>  
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
>  
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>   ~~^
> 13 errors generated.
> make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
> clang: error: no such file or directory: 
> 'build/interfaces/NTL-interface.lo'
> make[1]: *** [libflint-13.5.2.dylib] Error 1
> make: *** [library] Error 2
>
>
> and arb fails in the same way because it first tries to install flint.
>
> Andrew
>
>
>
>> (these are source-only, so this will build packages from source) 
>>
>>
>> On Tue, Oct 29, 2019 at 2:01 AM Andrew  wrote: 
>> > 
>> > I (stupidly) upgraded to XCode 11.1 on catalina. I have succeeded in 
>> compiling sage with python2, not python 3, on an imac but can't get it to 
>> compile on a macbook pro with fairly similar specs.I am using homebrew and 
>> have: 
>> > 
>> > ProductName:Mac OS X 
>> > ProductVersion:10.15 
>> > BuildVersion:19A603 
>> > Xcode 11.1 
>> > Build version 11A1027 
>> > 
>> > with gcc --version returning 
>> > 
>> > 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
>>  
>>
>> > 
>> > When I try to compile sage is breaks with: 
>> > 
>> > * package: givaro-4.1.1 
>> >   log file: /usr/local/src/sage/logs/pkgs/givaro-4.1.1.log 
>> >   build directory: 
>> /usr/local/src/sage/local/var/tmp/sage/build/givaro-4.1.1 
>> > * package: ntl-11.3.2 
>> >   log file: /usr/local/src/sage/logs/pkgs/ntl-11.3.2.log 
>> >   build directory: 
>> /usr/local/src/sage/local/var/tmp/sage/build/ntl-11.3.2 
>> > 
>> > Sometimes I also get ntl failing to compile. I have compared the log 
>> files one the two machines but can't identify the problem. I attach the log 
>> files for givaro and ntl and the install.log from the machine that has the 
>> problem. Does anyone have any ideas how to fix this? 
>> > 
>> > Andrew 
>> > 
>> > -- 
>> > 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. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/695c9caa-6efe-49ad-a05f-100c49be7a93%40googlegroups.com.
>>  
>>
>>
>

-- 
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 

Re: [sage-devel] Re: OSX Catalina works

2019-10-29 Thread Dima Pasechnik
try explicitly adding "-stdlib=libc++" to CXXLAGS and LDFLAGS.


On Tue, 29 Oct 2019, 13:45 Andrew,  wrote:

> Thanks Dima
>
> On Tuesday, 29 October 2019 17:51:02 UTC+11, Dima Pasechnik wrote:
>>
>> Did you  run
>>
>> xcode-select --install
>>
>> after Xcode upgrade?
>>
>
> Yes, the command line tools are correctly installed but, as far as I can
> see, xcode-select --install  is no longer the correct way to check this
> because it results in the error:
>
> xcode-select: error: command line tools are already installed, use
> "Software Update" to install updates
>
>
>> By the way, why don't you use NTL from brew?
>> https://formulae.brew.sh/formula/ntl#default
>>
>> you can also make things easier by installing Flint and Arb into
>> homebrew, by using formulas from
>> https://github.com/dimpase/homebrew-science
>>
>> Run
>>
>> brew install dimpase/science/flint
>> brew install dimpase/science/arb
>>
>
> Thanks. I didn't know that there were homebrew formulas for any of these.
> Unfortunately, neither of these work either, giving similar (but shorter)
> messages to the compilation errors with sage. Installing flint results in:
>
> ==> Downloading http://flintlib.org/flint-2.5.2.tar.gz
> 
> 100.0%
> ==> ./configure --prefix=/usr/local/Cellar/flint/2.5.2_1
> --with-gmp=/usr/local/opt/gmp --with-mpfr=/u
> ==> make
> Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
> error: no member named 'islessgreater' in the global namespace
> using ::islessgreater;
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>   ~~^
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
> error: no member named 'isunordered' in the global namespace
> using ::isunordered;
>   ~~^
> 13 errors generated.
> make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
> clang: error: no such file or directory:
> 'build/interfaces/NTL-interface.lo'
> make[1]: *** [libflint-13.5.2.dylib] Error 1
> make: *** [library] Error 2
>
>
> and arb fails in the same way because it first tries to install flint.
>
> Andrew
>
>
>
>> (these are source-only, so this will build packages from source)
>>
>>
>> On Tue, Oct 29, 2019 at 2:01 AM Andrew  wrote:
>> >
>> > I (stupidly) upgraded to XCode 11.1 on catalina. I have succeeded in
>> compiling sage with python2, not python 3, on an imac but can't get it to
>> compile on a macbook pro with fairly similar specs.I am using homebrew and
>> have:
>> >
>> > ProductName:Mac OS X
>> > ProductVersion:10.15
>> > BuildVersion:19A603
>> > Xcode 11.1
>> > Build version 11A1027
>> >
>> > with gcc --version returning
>> >
>> > 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
>>
>> >
>> > When I try to compile sage is breaks with:
>> >
>> > * package: givaro-4.1.1
>> >   log file: /usr/local/src/sage/logs/pkgs/givaro-4.1.1.log
>> >   build directory:
>> /usr/local/src/sage/local/var/tmp/sage/build/givaro-4.1.1
>> > * package: ntl-11.3.2
>> >   log file: /usr/local/src/sage/logs/pkgs/ntl-11.3.2.log
>> >   build directory:
>> /usr/local/src/sage/local/var/tmp/sage/build/ntl-11.3.2
>> >
>> > Sometimes I also get ntl failing to compile. I have compared the log
>> files one the two machines but can't identify the problem. I attach the log
>> files for givaro and ntl and the install.log from the machine that has the
>> problem. Does anyone have any ideas how to fix this?
>> >
>> > Andrew
>> >
>> > --
>> > 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.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/695c9caa-6efe-49ad-a05f-100c49be7a93%40googlegroups.com.
>>
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/dcb00e7a-bd6f-4703-bfbb-e06c040d063d%40googlegroups.com
> 

Re: [sage-devel] Re: OSX Catalina works

2019-10-29 Thread Andrew
Thanks Dima

On Tuesday, 29 October 2019 17:51:02 UTC+11, Dima Pasechnik wrote:
>
> Did you  run 
>
> xcode-select --install 
>
> after Xcode upgrade? 
>

Yes, the command line tools are correctly installed but, as far as I can 
see, xcode-select --install  is no longer the correct way to check this 
because it results in the error:

xcode-select: error: command line tools are already installed, use 
"Software Update" to install updates
 

> By the way, why don't you use NTL from brew? 
> https://formulae.brew.sh/formula/ntl#default 
>
> you can also make things easier by installing Flint and Arb into 
> homebrew, by using formulas from 
> https://github.com/dimpase/homebrew-science 
>
> Run 
>
> brew install dimpase/science/flint 
> brew install dimpase/science/arb 
>

Thanks. I didn't know that there were homebrew formulas for any of these. 
Unfortunately, neither of these work either, giving similar (but shorter) 
messages to the compilation errors with sage. Installing flint results in:

==> Downloading http://flintlib.org/flint-2.5.2.tar.gz
 
100.0%
==> ./configure --prefix=/usr/local/Cellar/flint/2.5.2_1 
--with-gmp=/usr/local/opt/gmp --with-mpfr=/u
==> make
Last 15 lines from /Users/andrew/Library/Logs/Homebrew/flint/02.make:
  ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:9:
 
error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
  ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9:
 
error: no member named 'isunordered' in the global namespace
using ::isunordered;
  ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9:
 
error: no member named 'isunordered' in the global namespace
using ::isunordered;
  ~~^
13 errors generated.
make[2]: *** [build/interfaces/NTL-interface.lo] Error 1
clang: error: no such file or directory: 'build/interfaces/NTL-interface.lo'
make[1]: *** [libflint-13.5.2.dylib] Error 1
make: *** [library] Error 2


and arb fails in the same way because it first tries to install flint.

Andrew



> (these are source-only, so this will build packages from source) 
>
>
> On Tue, Oct 29, 2019 at 2:01 AM Andrew > 
> wrote: 
> > 
> > I (stupidly) upgraded to XCode 11.1 on catalina. I have succeeded in 
> compiling sage with python2, not python 3, on an imac but can't get it to 
> compile on a macbook pro with fairly similar specs.I am using homebrew and 
> have: 
> > 
> > ProductName:Mac OS X 
> > ProductVersion:10.15 
> > BuildVersion:19A603 
> > Xcode 11.1 
> > Build version 11A1027 
> > 
> > with gcc --version returning 
> > 
> > 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
>  
>
> > 
> > When I try to compile sage is breaks with: 
> > 
> > * package: givaro-4.1.1 
> >   log file: /usr/local/src/sage/logs/pkgs/givaro-4.1.1.log 
> >   build directory: 
> /usr/local/src/sage/local/var/tmp/sage/build/givaro-4.1.1 
> > * package: ntl-11.3.2 
> >   log file: /usr/local/src/sage/logs/pkgs/ntl-11.3.2.log 
> >   build directory: 
> /usr/local/src/sage/local/var/tmp/sage/build/ntl-11.3.2 
> > 
> > Sometimes I also get ntl failing to compile. I have compared the log 
> files one the two machines but can't identify the problem. I attach the log 
> files for givaro and ntl and the install.log from the machine that has the 
> problem. Does anyone have any ideas how to fix this? 
> > 
> > Andrew 
> > 
> > -- 
> > 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 . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/695c9caa-6efe-49ad-a05f-100c49be7a93%40googlegroups.com.
>  
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/dcb00e7a-bd6f-4703-bfbb-e06c040d063d%40googlegroups.com.


Re: [sage-devel] Re: OSX Catalina works

2019-10-29 Thread Dima Pasechnik
Did you  run

xcode-select --install

after Xcode upgrade?
By the way, why don't you use NTL from brew?
https://formulae.brew.sh/formula/ntl#default

you can also make things easier by installing Flint and Arb into
homebrew, by using formulas from
https://github.com/dimpase/homebrew-science

Run

brew install dimpase/science/flint
brew install dimpase/science/arb

(these are source-only, so this will build packages from source)


On Tue, Oct 29, 2019 at 2:01 AM Andrew  wrote:
>
> I (stupidly) upgraded to XCode 11.1 on catalina. I have succeeded in 
> compiling sage with python2, not python 3, on an imac but can't get it to 
> compile on a macbook pro with fairly similar specs.I am using homebrew and 
> have:
>
> ProductName:Mac OS X
> ProductVersion:10.15
> BuildVersion:19A603
> Xcode 11.1
> Build version 11A1027
>
> with gcc --version returning
>
> 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
>
> When I try to compile sage is breaks with:
>
> * package: givaro-4.1.1
>   log file: /usr/local/src/sage/logs/pkgs/givaro-4.1.1.log
>   build directory: /usr/local/src/sage/local/var/tmp/sage/build/givaro-4.1.1
> * package: ntl-11.3.2
>   log file: /usr/local/src/sage/logs/pkgs/ntl-11.3.2.log
>   build directory: /usr/local/src/sage/local/var/tmp/sage/build/ntl-11.3.2
>
> Sometimes I also get ntl failing to compile. I have compared the log files 
> one the two machines but can't identify the problem. I attach the log files 
> for givaro and ntl and the install.log from the machine that has the problem. 
> Does anyone have any ideas how to fix this?
>
> Andrew
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/695c9caa-6efe-49ad-a05f-100c49be7a93%40googlegroups.com.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq1pXJksD9G9PO81taOdUtBrsfv2fexepavcDgzCO-3bvw%40mail.gmail.com.


[sage-devel] Re: OSX Catalina works

2019-10-14 Thread Volker Braun
Means: I successfully compiled Sage 8.9 on OSX Catalina with Xcode 11.0 



On Sunday, October 13, 2019 at 9:24:44 PM UTC+2, Samuel Lelievre wrote:
>
> Sun 2019-10-13 08:26:52 UTC, Volker Braun:
>>
>> I just upgraded the OSX buildbot and Sage works
>>
> in case anybody is wondering. This is the first time in years
>>
> that the latest OSX release doesn't introduce major toolchain
>>
> issues and/or scrambles the filesystem, hope this starts a trend ;-) 
>>
>
> That's good to hear, and there were people wondering.
> See for instance this question on Ask Sage about SageMath
> and macOS 10.15 "Catalina":
>
> - How to unlock SageMath 8.8 on macOS 10.15 Catalina?
>   https://ask.sagemath.org/question/48293
>
> By "Sage works" do you mean any of the following?
>
> - there are / there will be binaries for macOS 10.15 "Catalina"
> - the SageMath 8.9 binaries for macOS 10.14 "Mojave"
>   also work for macOS 10.15 "Catalina"
> - on macOS 10.15 "Catalina" building SageMath 8.9 from
>   source gives a version that works and is not "locked"
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/d548d18b-f696-4f77-81f9-86a3dfa967bc%40googlegroups.com.


[sage-devel] Re: OSX Catalina works

2019-10-13 Thread Samuel Lelievre
Sun 2019-10-13 08:26:52 UTC, Volker Braun:
>
> I just upgraded the OSX buildbot and Sage works
>
in case anybody is wondering. This is the first time in years
>
that the latest OSX release doesn't introduce major toolchain
>
issues and/or scrambles the filesystem, hope this starts a trend ;-) 
>

That's good to hear, and there were people wondering.
See for instance this question on Ask Sage about SageMath
and macOS 10.15 "Catalina":

- How to unlock SageMath 8.8 on macOS 10.15 Catalina?
  https://ask.sagemath.org/question/48293

By "Sage works" do you mean any of the following?

- there are / there will be binaries for macOS 10.15 "Catalina"
- the SageMath 8.9 binaries for macOS 10.14 "Mojave"
  also work for macOS 10.15 "Catalina"
- on macOS 10.15 "Catalina" building SageMath 8.9 from
  source gives a version that works and is not "locked"


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/4ff104de-9857-4985-861c-3929b17ef640%40googlegroups.com.