Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-09 Thread Dima Pasechnik
On Wed, Feb 9, 2022 at 10:40 AM Dima Pasechnik wrote: > > MPIR has been removed from Sage, there is no MPIR in 9.5 at all. In the past, MPIR was a replacement for GMP in Sage, but it's a largely abandoned project now. No guarantee whether MPIR in GMP-compatible mode would work as a replacement of

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-09 Thread Dima Pasechnik
MPIR has been removed from Sage, there is no MPIR in 9.5 at all. On Wed, Feb 9, 2022 at 10:36 AM modp...@gmail.com wrote: > > I think the issue might be MPIR actually, as I couldn't built it from source > back then, it showed errors that > it cannot find suitable compiler, and then I just instal

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-09 Thread Dima Pasechnik
On Wed, Feb 9, 2022 at 10:32 AM modp...@gmail.com wrote: > > I don't know what broken for Sage means and what you mean that "should be > linked to NTL". > I had manually built and installed gmp, flint and NTL before, and they work > fine. But it seems Sage > requires them to be configured with c

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-09 Thread modp...@gmail.com
I think the issue might be MPIR actually, as I couldn't built it from source back then, it showed errors that it cannot find suitable compiler, and then I just installed it via Homebrew. But for example to my knowledge building flint requires to have built MPIR with --enable-gmpcompat option,

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-09 Thread modp...@gmail.com
I don't know what broken for Sage means and what you mean that "should be linked to NTL". I had manually built and installed gmp, flint and NTL before, and they work fine. But it seems Sage requires them to be configured with certain options in mind. For example, I recompiled gmp and flint by

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-08 Thread Dima Pasechnik
Your flint installation is broken. It should be linked to NTL (this is provided by Homebrew's NTL). Well, I don't think I understand what you are trying to do. If you want to use packages installed in /usr/local, they should not be broken. On Tue, 8 Feb 2022, 20:25 modp...@gmail.com, wrote:

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-08 Thread Dima Pasechnik
post the latest config.log, it should be clearer then. On Tue, 8 Feb 2022, 18:43 modp...@gmail.com, wrote: > I don't recall installing arb before, maybe it was installed as part of > some package. > How can I circumvent the error now? I tried to reinstall arb using brew, > but did not help. > I

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-08 Thread Dima Pasechnik
On Tue, Feb 8, 2022 at 12:27 PM modp...@gmail.com wrote: > > If I run "brew install --enable-bar gmp" it throws error that --enable-bar > does not exist. I saw that in https://docs.brew.sh/FAQ - but never tried myself, sorry. Perhaps the correct name for this option is --build-from-source i.e.

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-08 Thread Dima Pasechnik
You already have (or had) arb installed in /usr/local/, as the log file tells you: gamma.c:843:9: note: did you mean 'arb_rising_ui'? /usr/local/include/arb.h:572:6: note: 'arb_rising_ui' declared here Also, note that after re-installing gmp you might need to rebuild other packages which depend

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-07 Thread Dima Pasechnik
On Mon, Feb 7, 2022 at 5:19 PM Dima Pasechnik wrote: > > > > On Mon, 7 Feb 2022, 17:12 Matthias Koeppe, wrote: >> >> Yes, you can clear out /usr/local and start the build from scratch. >> >> >> On Monday, February 7, 2022 at 4:05:49 AM UTC-8 modp...@gmail.com wrote: >>> >>> So any ideas how to so

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-07 Thread Dima Pasechnik
On Mon, 7 Feb 2022, 17:12 Matthias Koeppe, wrote: > Yes, you can clear out /usr/local and start the build from scratch. > > > On Monday, February 7, 2022 at 4:05:49 AM UTC-8 modp...@gmail.com wrote: > >> So any ideas how to solve this without installing gmp and flint from >> Homebrew? As I have a

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-07 Thread Matthias Koeppe
Yes, you can clear out /usr/local and start the build from scratch. On Monday, February 7, 2022 at 4:05:49 AM UTC-8 modp...@gmail.com wrote: > So any ideas how to solve this without installing gmp and flint from > Homebrew? As I have already manually compiled and built them in my machine. > > O

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-07 Thread modp...@gmail.com
So any ideas how to solve this without installing gmp and flint from Homebrew? As I have already manually compiled and built them in my machine. On Friday, February 4, 2022 at 9:37:40 PM UTC+1 modp...@gmail.com wrote: > I actually had both gmp and flint manually installed before. Can I tell > S

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-04 Thread modp...@gmail.com
I actually had both gmp and flint manually installed before. Can I tell Sage somehow to use my local gmp and flint? I had already issued: source .homebrew-build-env However, I didn't issue ./bootstrap before doing ./configure. On Friday, February 4, 2022 at 7:27:40 PM UTC+1 dim...@gmail.com wrot

Re: [sage-devel] Building Sage 9.5 on macOS fails due to flint

2022-02-04 Thread Dima Pasechnik
Try using flint from Homebrew instead: brew install flint (by the way, it seems that your gmp Homebrew installation is broken - maybe try reinstalling it, from Homebrew?) And don't forget executing source .homebrew-build-env before ./bootstrap && ./configure On Fri, Feb 4, 2022 at 6:14 PM mod