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, which I do not know if the installation from Homebrew does or not by default.
On Wednesday, February 9, 2022 at 11:32:38 AM UTC+1 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 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. > > 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 >>>>> >>>>> <https://groups.google.com/d/msgid/sage-devel/851c6388-fe81-4972-81cc-5b2f3a9e2193n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> 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 >>> >>> <https://groups.google.com/d/msgid/sage-devel/590c2ea5-4590-46af-89a8-ade7e77345afn%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/3464016a-8595-4137-8fbc-52f3cdb9baa6n%40googlegroups.com.