On Wed, Feb 9, 2022 at 10:32 AM modp...@gmail.com <modpr...@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 certain options in mind. For example, I 
> recompiled gmp and flint
> by first configuring with --enable-cxx as Sage seems to require C++ part too. 
> Anything else that's
> needed? I just don't want to use Homebrew for the packages like gmp, flint 
> and NTL that I had
> already before built from source.

well, yes, there are options. You might find them either in Homebrew
formulae, or in Sage installation scripts.
E.g. 
https://github.com/sagemath/sage/blob/develop/build/pkgs/flint/spkg-install.in
is for flint.
As you see, it needs --with-ntl.
A system flint package built without this option, i.e. not linked to
the NTL library, will be rejected by ./configure, as
you can duly see in config.log, as well as in the output of ./configure.



>
> On Tuesday, February 8, 2022 at 9:41:10 PM UTC+1 dim...@gmail.com wrote:
>>
>> 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, <modp...@gmail.com> wrote:
>>>
>>> Here are the logs again.
>>> On Tuesday, February 8, 2022 at 7:46:51 PM UTC+1 dim...@gmail.com wrote:
>>>>
>>>> post the latest config.log, it should be clearer then.
>>>>
>>>> On Tue, 8 Feb 2022, 18:43 modp...@gmail.com, <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 still get this error when building Sage.
>>>>> On Tuesday, February 8, 2022 at 1:33:38 PM UTC+1 dim...@gmail.com wrote:
>>>>>>
>>>>>> 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 on it: mpfr, flint, etc...
>>>>>>
>>>>>>
>>>>>> On Tue, Feb 8, 2022 at 12:27 PM modp...@gmail.com <modp...@gmail.com> 
>>>>>> wrote:
>>>>>> >
>>>>>> > If I run "brew install --enable-bar gmp" it throws error that 
>>>>>> > --enable-bar does not exist.
>>>>>> > Anyway, I installed the C++ part of gmp as well. But now it fails in 
>>>>>> > building the arb package.
>>>>>> > I attach here the updated config and log.
>>>>>> >
>>>>>> > On Monday, February 7, 2022 at 11:10:32 PM UTC+1 dim...@gmail.com 
>>>>>> > wrote:
>>>>>> >>
>>>>>> >> On Mon, Feb 7, 2022 at 5:19 PM Dima Pasechnik <dim...@gmail.com> 
>>>>>> >> wrote:
>>>>>> >> >
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > On Mon, 7 Feb 2022, 17:12 Matthias Koeppe, <matthia...@gmail.com> 
>>>>>> >> > 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 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 Sage somehow to use my local gmp and flint?
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > your gmp is missing C++ part,
>>>>>> >> > which is a requirement for Sage.
>>>>>> >>
>>>>>> >> You can actually use Homebrew to build gmp (or any other package
>>>>>> >> there) from source, if that's what you must do,
>>>>>> >> using formula they provide for this.
>>>>>> >> (you already use gfortran from Homebrew, as far as one can see)
>>>>>> >> Namely, for gmp:
>>>>>> >>
>>>>>> >> brew install --enable-bar gmp
>>>>>> >>
>>>>>> >>
>>>>>> >> >
>>>>>> >> >>>> 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 
>>>>>> >> >>>> wrote:
>>>>>> >> >>>>>
>>>>>> >> >>>>> 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 modp...@gmail.com 
>>>>>> >> >>>>> <modp...@gmail.com> wrote:
>>>>>> >> >>>>> >
>>>>>> >> >>>>> > I'm building Sage 9.5 from source on macOS Monterey 12.2, 
>>>>>> >> >>>>> > however, it fails when installing flint. I attach here the 
>>>>>> >> >>>>> > top level config and log file for flint. Any ideas what the 
>>>>>> >> >>>>> > issue might be?
>>>>>> >> >>>>> >
>>>>>> >> >>>>> >
>>>>>> >> >>>>> > --
>>>>>> >> >>>>> > You received this message because you are subscribed to the 
>>>>>> >> >>>>> > Google Groups "sage-devel" group.
>>>>>> >> >>>>> > To unsubscribe from this group and stop receiving emails from 
>>>>>> >> >>>>> > it, send an email to sage-devel+...@googlegroups.com.
>>>>>> >> >>>>> > To view this discussion on the web visit 
>>>>>> >> >>>>> > https://groups.google.com/d/msgid/sage-devel/fba7b5fc-b0a2-42e4-b218-8be4e8aca141n%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+...@googlegroups.com.
>>>>>> >> >> To view this discussion on the web visit 
>>>>>> >> >> https://groups.google.com/d/msgid/sage-devel/7c9ac4ed-f32c-4982-90b7-8f284fa2b5efn%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+...@googlegroups.com.
>>>>>> > To view this discussion on the web visit 
>>>>>> > https://groups.google.com/d/msgid/sage-devel/d0dd8eef-4a98-4622-8043-f5b2bc5c9261n%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+...@googlegroups.com.
>>>>>
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/sage-devel/851c6388-fe81-4972-81cc-5b2f3a9e2193n%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+...@googlegroups.com.
>>>
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-devel/590c2ea5-4590-46af-89a8-ade7e77345afn%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/56901403-9cb5-4539-a8bc-f6275fbb8418n%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/CAAWYfq1drCApeXUUGKpfJacyixMX7uv_y0D09eqB3mB_vSNsgQ%40mail.gmail.com.

Reply via email to