---------- Forwarded message --------- From: Dima Pasechnik <dimp...@gmail.com> Date: Wed, Nov 8, 2023 at 6:41 PM Subject: Re: [sage-devel] Re: pari installation To: François Bissey <frp.bis...@gmail.com>
On Wed, Nov 8, 2023 at 6:37 PM François Bissey <frp.bis...@gmail.com> wrote: > > Another possibly interesting question, what version of gmp? > And where did you install it from? the only relevant thread I found on this sort of errors is here: https://gmplib.org/list-archives/gmp-bugs/2016-August/003997.html and they say it's a mixup of headers from several versions. > > François > > On 9/11/23 07:00, Dima Pasechnik wrote: > > I guess your gmp installation is shot (e.g. there is another one,which > > causes header mess),or your g++ installation is shot, or both. > > Are there any CFLAGS/CXXFLAGS/CPPFLAGS set in the shell, by any chance? > > > > Can you try running > > > > g++ -c foo.cpp > > > > on the 1-line file foo.cpp,like this: > > > > /* cut here: foo.cpp */ > > #include <gmpxx.h> > > /* cut here */ > > > > > > Dima > > > > > > > > > > > > > > > > On Wed, Nov 8, 2023 at 4:57 PM John Cremona <john.crem...@gmail.com> wrote: > >> > >> After rerunning ./boostrap there was no difference. > >> > >> I have attached config.log, and there are error messages i nthe gmp check > >> which I hope will mean something to somebody. > >> > >> I don't think that there is anything relevant in my env but some of these > >> are surely obsolete: > >> > >> john@john-Latitude-E5470:~/sage (branch: develop)$ env | grep SAGE > >> SAGE_UPGRADING=yes > >> SAGE_MATPLOTLIB_GUI=yes > >> SAGE_PARALLEL_SPKG_BUILD=yes > >> SAGE_INSTALL_CCACHE=yes > >> > >> On Wed, 8 Nov 2023 at 16:44, Dima Pasechnik <dimp...@gmail.com> wrote: > >>> > >>> also check that ./configure is not stale - re-run ./bootstrap > >>> > >>> On Wed, Nov 8, 2023 at 4:20 PM Dima Pasechnik <dimp...@gmail.com> wrote: > >>>> > >>>> > >>>> > >>>> On Wed, 8 Nov 2023, 16:17 John Cremona, <john.crem...@gmail.com> wrote: > >>>>> > >>>>> > >>>>> > >>>>> On Wed, 8 Nov 2023 at 15:31, Dima Pasechnik <dimp...@gmail.com> wrote: > >>>>>> > >>>>>> On Wed, Nov 8, 2023 at 3:20 PM John Cremona <john.crem...@gmail.com> > >>>>>> wrote: > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> On Wed, 8 Nov 2023 at 12:51, John Cremona <john.crem...@gmail.com> > >>>>>>> wrote: > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> On Wed, 8 Nov 2023, 11:46 Dima Pasechnik, <dimp...@gmail.com> wrote: > >>>>>>>>> > >>>>>>>>> On Wed, Nov 8, 2023 at 11:37 AM John Cremona > >>>>>>>>> <john.crem...@gmail.com> wrote: > >>>>>>>>>> > >>>>>>>>>> PS OK, my bug was fixed in pari-2.15.4 which is what is in Sage > >>>>>>>>>> 10.2rc0 so I am happy with that -- though I would still like to > >>>>>>>>>> know how to use my system-installed 2.16.1. > >>>>>>>>> > >>>>>>>>> if you have pari installed in Sage you need to uninstall it before > >>>>>>>>> using the system-wide one. This can be done by > >>>>>>>>> > >>>>>>>>> make pari-clean pari-uninstall > >>>>>>>>> > >>>>>>>>> and then you can run ./configure and hope that the system one is > >>>>>>>>> judged OK. > >>>>>>> > >>>>>>> > >>>>>>> After this, configure did not like the newly installed system-wide > >>>>>>> pari (version 2.16.1). > >>>>>>> > >>>>>>> Checking whether SageMath should install SPKG pari... > >>>>>>> checking whether any of gmp readline is installed as or will be > >>>>>>> installed as SPKG... yes; install pari as well > >>>>>>> configure: no suitable system package found for SPKG pari > >>>>>>> > >>>>>>> -- which is what you thought might happen. So I also did make > >>>>>>> x-clean x-uninstall for x=gmp and x=readline. AFter that it was > >>>>>>> happy with my readline but not with my gmp. I wonder why: > >>>>>>> > >>>>>>> Checking whether SageMath should install SPKG gmp... > >>>>>>> checking for gmp.h... yes > >>>>>>> checking for gmpxx.h... no > >>>>>>> checking for library containing __gmpq_cmp_z... -lgmp > >>>>>>> configure: no suitable system package found for SPKG gmp > >>>>>>> > >>>>>>> I do of course have gmp installed, I'm not sure anything works > >>>>>>> without it (this is a ubuntu Ubuntu 22.04.3 LTS system). I have > >>>>>>> libgmp-dev, libgmp10, libgmp10-doc, libgmp3-dev, libgmpxx4ldbl. The > >>>>>>> file mentioned gmpxx is in /usr/include (and also in > >>>>>>> /usr/local/sage/sage-10.1/local/include/gmpxx.h from a system-wide > >>>>>>> installation of sage 10.1) -- and those two files are identical. > >>>>>> > >>>>>> do you have a file named > >>>>>> > >>>>>> /usr/include/gmpxx.h ? > >>>>>> > >>>>>> Or is it > >>>>>> > >>>>>> /usr/include/gmpxx ? > >>>>>> > >>>>>> The latter won't work. > >>>>> > >>>>> > >>>>> I do have the former: > >>>>> > >>>>> john@john-Latitude-E5470:~/sage (branch: develop)$ locate gmpxx.h > >>>>> /usr/include/gmpxx.h > >>>>> /usr/local/sage/sage-10.1/local/include/gmpxx.h > >>>>> > >>>>> and no file gmpxx (without the suffix) anywhere. > >>>>> > >>>>> > >>>> > >>>> > >>>> this is very strange. > >>>> Could it be that you have some weird stuff in PATH or other env vars? > >>>> > >>>> please send > >>>> > >>>> config.log along > >>>> > >>>> > >>>> > >>>> Is > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>> > >>>>>>> Any ideas? > >>>>>>> > >>>>>>> John > >>>>>>> > >>>>>>>>> > >>>>>>>>> HTH > >>>>>>>>> Dima > >>>>>>>>> > >>>>>>>>> PS.I'm also not 100% sure that the dependency resolution will work > >>>>>>>>> correctly, so that everything that depends on libpari is properly > >>>>>>>>> rebuilt (or you need to clean these all, manually, as well) > >>>>>>>> > >>>>>>>> > >>>>>>>> Thanks Dima, I'll try and report back. > >>>>>>>> > >>>>>>>> John > >>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> On Wed, 8 Nov 2023 at 11:28, John Cremona <john.crem...@gmail.com> > >>>>>>>>>> wrote: > >>>>>>>>>>> > >>>>>>>>>>> Two things: > >>>>>>>>>>> > >>>>>>>>>>> 1. After > >>>>>>>>>>> > >>>>>>>>>>> ./configure --enable-pari_elldata --enable-pari_galpol > >>>>>>>>>>> --enable-pari_jupyter --enable-pari_nftables --enable-pari_seadata > >>>>>>>>>>> > >>>>>>>>>>> and make build I had an error installing pari_jupyter (which I > >>>>>>>>>>> had never used before). See attched log. > >>>>>>>>>>> > >>>>>>>>>>> 2. I really need to build Sage to use my own installation of a > >>>>>>>>>>> more recent version of pari than the one which Sage includes, > >>>>>>>>>>> which appears to now be 2.15.4, as It has a bug in functions I > >>>>>>>>>>> use. I have my own istallation of pari-2.16.1 (in /usr/local), > >>>>>>>>>>> and used --with-system-pari=yes in the configure line, but > >>>>>>>>>>> configure still reports > >>>>>>>>>>> > >>>>>>>>>>> pari: SPKG version 2.15.4 is already > >>>>>>>>>>> installed > >>>>>>>>>>> > >>>>>>>>>>> --- > >>>>>>>>>>> > >>>>>>>>>>> Of these, #1 is not important to me right now but #2 is. Thanks, > >>>>>>>>>>> > >>>>>>>>>>> John > >>>>>>>>>> > >>>>>>>>>> -- > >>>>>>>>>> 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/CAD0p0K5S%3DmdGxKRXCY2zEALCaJFi_z5_8t%3DhHro-uHtSon%2BCKA%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/CAAWYfq3YJdMi%3D2fde%3DDNixM8C-ZhoTJRCRWJKf8_iw7fEQHFXA%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/CAD0p0K6LnqVjLuzq_35H%3Dfm5affAjWGTd9h5njd4KuYsC3JARw%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/CAAWYfq3YLiKk5Y1mXk4caoi-1zHqT3sXVAP_oyFrFkjtHb143w%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/CAD0p0K6oJoXvRZAxcW%3DHq340BN4wBh2sqgXKh%2BVLT%2B1WOs1W%2Bw%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/CAAWYfq24b1RkwvTFu2N8hax9d2tGjQ87araoacAFUbgaLge7NQ%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/CAD0p0K5OzQPt9-qPJ1iPz%3DnOuW_3j3%2BrxE0%3D3DvEP587-A8_nw%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/CAAWYfq0kOiQnpQMsROXtRLHj5cK4t7RGWhpKVwjuZTkNrmV6fw%40mail.gmail.com.