OK, time to officially remove support for building with python 2.6 as sage-bootstrap-python - https://trac.sagemath.org/ticket/20023 (needs review).
On Thursday, March 4, 2021 at 10:25:35 AM UTC-8 Dima Pasechnik wrote: > On Thu, Mar 4, 2021 at 6:18 PM Matthias Koeppe <matthia...@gmail.com> > wrote: > > > > Looks like we cannot bootstrap using Python 2.6 any more. > > > > The error seen in the log is: > https://stackoverflow.com/questions/19668395/str-format-for-python-2-6-gives-error-where-2-7-does-not > > yes, but this is the secondary error, in processing ValueError thrown by > > https://github.com/sagemath/sage/blob/master/build/sage_bootstrap/uncompress/cmdline.py#L53 > > > > > > > > > > > On Thursday, March 4, 2021 at 9:53:28 AM UTC-8 Dima Pasechnik wrote: > >> > >> On Thu, Mar 4, 2021 at 5:08 PM 'Hackenberg, Klaus' via sage-support > >> <sage-s...@googlegroups.com> wrote: > >> > > >> > High, > >> > > >> > > >> > > >> > on my RHEL6 server I see > >> > > >> > > >> > > >> > [root@dlp762 Sage]# python --version > >> > > >> > Python 2.6.6 > >> > > >> > > >> > > >> > But the server has installed xz packages > >> > > >> > > >> > > >> > [root@dlp762 Sage]# rpm -qa --last|grep xz > >> > > >> > xz-devel-4.999.9-0.5.beta.20091007git.el6.x86_64 Tue Jun 18 11:06:45 > 2019 > >> > > >> > xz-lzma-compat-4.999.9-0.5.beta.20091007git.el6.x86_64 Fri Sep 18 > 09:39:37 2015 > >> > > >> > xz-4.999.9-0.5.beta.20091007git.el6.x86_64 Fri Sep 18 09:39:26 2015 > >> > > >> > xz-libs-4.999.9-0.5.beta.20091007git.el6.x86_64 Fri Sep 18 09:39:03 > 2015 > >> > > >> > > >> > > >> > Is it possible to use the buildin xz ? > >> > >> Do you have xz application installed and accepted by Sage (it should > >> be visible in > >> config.log)? If so, something is breaking in > >> > https://github.com/sagemath/sage/blob/master/build/sage_bootstrap/uncompress/tar_file.py#L161 > >> > >> Mind you, python 2.6.6 has been released about 12 years ago, not sure > >> this code, from 2016, was ever tested > >> on 2.6.6 (perhaps on less buggy 2.6.7...) > >> > >> You may try installing pyenv with newer python and > >> run Sage installation from there. See > https://gist.github.com/ysaotome/7956676 > >> (you ought to replace 2.7.6 with 3.9.1 there, to escape the Python2 > >> hell completely) > >> > >> > >> > > >> > > >> > > >> > Regards, Klaus Hackenberg > >> > > >> > > >> > > >> > -- > >> > > >> > Klaus Hackenberg > >> > > >> > IT-Systeme und Software-Integration > >> > > >> > IT.SERVICES > >> > > >> > Ruhr-Universität Bochum | 44780 Bochum > >> > > >> > fon: +49 234 32 23485 <+49%20234%203223485> > >> > > >> > http://www.it-services.rub.de/ > >> > > >> > > >> > > >> > Von: sage-s...@googlegroups.com <sage-s...@googlegroups.com> Im > Auftrag von Dima Pasechnik > >> > Gesendet: Donnerstag, 4. März 2021 17:18 > >> > An: sage-support <sage-s...@googlegroups.com> > >> > Betreff: Re: [sage-support] problem compiling sage 9.2 on RHEL 6 > >> > > >> > > >> > > >> > your system python cannot uncompress .xz files... :( > >> > > >> > > >> > > >> > how old is it? > >> > > >> > > >> > > >> > can you install systemwide python2 to be python 2.7? > >> > > >> > > >> > > >> > On Thu, 4 Mar 2021, 16:04 'Hackenberg, Klaus' via sage-support, < > sage-s...@googlegroups.com> wrote: > >> > > >> > High, > >> > > >> > I startet in a fresh directory sage-9.2 (from sage-9.2.tag.gz) > >> > using the command " make mpir-clean" and got > >> > > >> > > ========================================================================= > >> > [lsf@dlp762 sage-9.2]$ make mpir-clean > >> > make build/make/Makefile --stop > >> > make[1]: Entering directory > `/net/dlp762/share/application-software/Sage/sage-9.2' > >> > rm -f config.log > >> > mkdir -p logs/pkgs > >> > ln -s logs/pkgs/config.log config.log > >> > > **************************************************************************** > >> > error: Sage source tree is unconfigured. Please run "./configure" > first. > >> > note: Type "./configure --help" to see the available configuration > options. > >> > > **************************************************************************** > >> > make[1]: *** [build/make/Makefile] Error 1 > >> > make[1]: Leaving directory > `/net/dlp762/share/application-software/Sage/sage-9.2' > >> > make: *** [mpir-clean] Error 2 > >> > [lsf@dlp762 sage-9.2]$ > >> > > ========================================================================= > >> > > >> > I then used > >> > > >> > ./configure --with-mp=gmp > >> > make mpir-clean > >> > make -j4 > >> > > >> > and ppl-1.2 compiled ! > >> > > >> > But now I get a new error with symmetrica-3.0.1. > >> > I attach the error log file > >> > > >> > Regards, Klaus Hackenberg > >> > > >> > -- > >> > Klaus Hackenberg > >> > IT-Systeme und Software-Integration > >> > IT.SERVICES > >> > Ruhr-Universität Bochum | 44780 Bochum > >> > fon: +49 234 32 23485 <+49%20234%203223485> > >> > http://www.it-services.rub.de/ > >> > > >> > > >> > -----Ursprüngliche Nachricht----- > >> > Von: sage-s...@googlegroups.com <sage-s...@googlegroups.com> Im > Auftrag von Dima Pasechnik > >> > Gesendet: Donnerstag, 4. März 2021 15:57 > >> > An: sage-support <sage-s...@googlegroups.com> > >> > Betreff: Re: [sage-support] problem compiling sage 9.2 on RHEL 6 > >> > > >> > Please post the top-level config.log, then we'll see more details > about GMP. > >> > > >> > In Sage 9.2, if you do ./configure without arguments, Sage is > building a GMP-compatible MPIR, not "real" GMP. > >> > (Perhaps MPIR is broken now beyond repair, and shoud not be used on > RHEL 6,I don't know) We're changing with in the coming 9.3, see > >> > https://trac.sagemath.org/ticket/30752 > >> > Meanwhile please do > >> > > >> > make mpir-clean > >> > ./configure --with-mp=gmp > >> > make -j4 > >> > > >> > > >> > On Thu, Mar 4, 2021 at 2:06 PM 'Hackenberg, Klaus' via sage-support < > sage-s...@googlegroups.com> wrote: > >> > > > >> > > High, > >> > > > >> > > I startet in a fresh directory sage-9.2 (from sage-9.2.tag.gz) > >> > > using the commands > >> > > > >> > > ./configure > >> > > make -j4 > >> > > > >> > > and ran into the same error. > >> > > > >> > > gmp binaries are build automatically > >> > > > >> > > ls -lrt sage-9.2/local/lib/*gmp* > >> > > -rwxr-xr-x 1 lsf lsf 3342817 Mar 4 12:35 > sage-9.2/local/lib/libgmp.so.23.0.3 > >> > > lrwxrwxrwx 1 lsf lsf 16 Mar 4 12:35 sage-9.2/local/lib/libgmp.so.23 > -> libgmp.so.23.0.3 > >> > > lrwxrwxrwx 1 lsf lsf 16 Mar 4 12:35 sage-9.2/local/lib/libgmp.so -> > libgmp.so.23.0.3 > >> > > -rwxr-xr-x 1 lsf lsf 318950 Mar 4 12:36 > sage-9.2/local/lib/libgmpxx.so.8.4.3 > >> > > lrwxrwxrwx 1 lsf lsf 17 Mar 4 12:36 > sage-9.2/local/lib/libgmpxx.so.8 -> libgmpxx.so.8.4.3 > >> > > lrwxrwxrwx 1 lsf lsf 17 Mar 4 12:36 sage-9.2/local/lib/libgmpxx.so > -> libgmpxx.so.8.4.3 > >> > > -rw-r--r-- 1 lsf lsf 6804714 Mar 4 12:36 sage-9.2/local/lib/libgmp.a > >> > > -rw-r--r-- 1 lsf lsf 796188 Mar 4 12:36 > >> > > sage-9.2/local/lib/libgmpxx.a -rwxr-xr-x 1 lsf lsf 955210 Mar 4 > 12:43 sage-9.2/local/lib/libcddgmp.so.0.0.0 > >> > > lrwxrwxrwx 1 lsf lsf 18 Mar 4 12:43 > sage-9.2/local/lib/libcddgmp.so.0 -> libcddgmp.so.0.0.0 > >> > > lrwxrwxrwx 1 lsf lsf 18 Mar 4 12:43 sage-9.2/local/lib/libcddgmp.so > -> libcddgmp.so.0.0.0 > >> > > -rw-r--r-- 1 lsf lsf 1532644 Mar 4 12:43 > >> > > sage-9.2/local/lib/libcddgmp.a > >> > > > >> > > I attach the error log file. > >> > > > >> > > Regards, Klaus Hackenberg > >> > > > >> > > -- > >> > > Klaus Hackenberg > >> > > IT-Systeme und Software-Integration > >> > > IT.SERVICES > >> > > Ruhr-Universität Bochum | 44780 Bochum > >> > > fon: +49 234 32 23485 <+49%20234%203223485> > >> > > http://www.it-services.rub.de/ > >> > > > >> > > > >> > > -----Ursprüngliche Nachricht----- > >> > > Von: sage-s...@googlegroups.com <sage-s...@googlegroups.com> Im > >> > > Auftrag von Dima Pasechnik > >> > > Gesendet: Mittwoch, 3. März 2021 18:28 > >> > > An: sage-support <sage-s...@googlegroups.com> > >> > > Betreff: Re: [sage-support] problem compiling sage 9.2 on RHEL 6 > >> > > > >> > > On Wed, Mar 3, 2021 at 5:15 PM 'Klaus Hackenberg' via sage-support < > sage-s...@googlegroups.com> wrote: > >> > > > > >> > > > High, > >> > > > I tried to compile sage 9.2 on a server running RHEL 6. > >> > > > I use gcc 9.2.0 to compile and the following commands > >> > > > > >> > > > ./configure --with-gmp=gmp > >> > > might be in error. > >> > > > >> > > What did you mean to achieve by '--with-gmp=gmp' ? By default Sage > will look for a systemwide GMP installation and try to use it (else it will > build its own) But Sage needs GMP version 6.1, at least. Most probably what > you have on the 10-years old RHEL 6 is still GMP version 4, so it won't fly. > >> > > > >> > > You probably want to force building GMP rather than much iffier > MPIR, so you'd probably need '--with-mp=gmp' in this case. > >> > > > >> > > > >> > > > >> > > > make -j4 > >> > > > > >> > > > ppl-1.2 fails to compile whith the attached error log file. > >> > > > Do you have any idea what's going wrong and how to fix it? > >> > > > Regards, Klaus Hackenberg > >> > > > > >> > > > -- > >> > > > You received this message because you are subscribed to the > Google Groups "sage-support" group. > >> > > > To unsubscribe from this group and stop receiving emails from it, > send an email to sage-support...@googlegroups.com. > >> > > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/e1713003-dbe6-475b-9ffd-214d005cfec5n%40googlegroups.com > . > >> > > > >> > > -- > >> > > You received this message because you are subscribed to a topic in > the Google Groups "sage-support" group. > >> > > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sage-support/GniJKQ0MaMY/unsubscribe. > >> > > To unsubscribe from this group and all its topics, send an email to > sage-support...@googlegroups.com. > >> > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CAAWYfq0i67G3DRu4oeLSTegkFw0Dr-FtFVHnpQShXze%3DSi7h5g%40mail.gmail.com > . > >> > > > >> > > -- > >> > > You received this message because you are subscribed to the Google > Groups "sage-support" group. > >> > > To unsubscribe from this group and stop receiving emails from it, > send an email to sage-support...@googlegroups.com. > >> > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/e501b240a4bc4e2f96d0440c10d06199%40ruhr-uni-bochum.de > . > >> > > >> > -- > >> > You received this message because you are subscribed to a topic in > the Google Groups "sage-support" group. > >> > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sage-support/GniJKQ0MaMY/unsubscribe. > >> > To unsubscribe from this group and all its topics, send an email to > sage-support...@googlegroups.com. > >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CAAWYfq3663awZ35af7%3D2ROLRkWF_%2B8w7dM41BCk9c2jGU7kAoQ%40mail.gmail.com > . > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > Groups "sage-support" group. > >> > To unsubscribe from this group and stop receiving emails from it, > send an email to sage-support...@googlegroups.com. > >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/4ba35e8446944d7da54e579a9f537235%40ruhr-uni-bochum.de > . > >> > > >> > -- > >> > You received this message because you are subscribed to a topic in > the Google Groups "sage-support" group. > >> > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/sage-support/GniJKQ0MaMY/unsubscribe. > >> > To unsubscribe from this group and all its topics, send an email to > sage-support...@googlegroups.com. > >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/CAAWYfq285Gv%2BubRdTUobCbR%3DEfdfwYzLthmaeUymhq-hpufDBQ%40mail.gmail.com > . > >> > > >> > -- > >> > You received this message because you are subscribed to the Google > Groups "sage-support" group. > >> > To unsubscribe from this group and stop receiving emails from it, > send an email to sage-support...@googlegroups.com. > >> > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/f9988b1b364447a883f1679f65752daf%40ruhr-uni-bochum.de > . > > > > -- > > You received this message because you are subscribed to the Google > Groups "sage-support" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to sage-support...@googlegroups.com. > > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-support/18a44eec-2e03-48c8-88b3-94008c46ea4fn%40googlegroups.com > . > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c755e62c-dbaf-43f8-add6-cd1434af1fd0n%40googlegroups.com.