Re: [sage-devel] Compiling Sage stops at PPL
Le Fri, 13 Jul 2018 15:52:07 +0200, Erik Bray a écrit : > > As a simple workaround, you could try for now building with > > --enable-fat for MPIR, which builds a more machine-generic MPIR by > > running: > > > > SAGE_FAT_BINARY=yes ./sage -f mpir > > > > Then, once MPIR has been re-built, run: > > > > make build > > > > again. I don't think you necessarily need to keep SAGE_FAT_BINARY on, > > but you might try it just in case. > > Alternatively, you can try the patch I just added at > https://trac.sagemath.org/ticket/25858 > > First check out my branch (it's based on 8.3.rc0 so not much else is > changed, though MPIR has many direct and indirect dependents so most > of Sage will wind up being rebuilt): > > $ git fetch > $ git checkout --track origin/u/embray/ticket-25858 > > Rebuild MPIR; include SAGE_CHECK=yes to make sure it worked: > > $ SAGE_CHECK=yes make mpir > > If that worked then continue building the rest of Sage: > > $ make > Many thanks, it compiles perfectly this way! (both ways you suggest, and not just with the 'develop' branch) -- Odile Open Dream Kit http://www.opendreamkit.org -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Compiling Sage stops at PPL
On Fri, Jul 13, 2018 at 10:54 AM Erik Bray wrote: > > On Fri, Jul 13, 2018 at 8:22 AM Odile wrote: > > > > Le Thu, 12 Jul 2018 16:26:27 +0200, > > Erik Bray a écrit : > > > > > > > Well here's certainly something interesting from the ppl config.log: > > > > > > 2837 config.lt:681: creating libtool > > > 2838 configure:21701: checking for the GMP library version 4.1.3 or above > > > 2839 configure:21790: ./libtool --mode=link --tag=CXX g++ -o conftest > > > -g -O2 -frounding-math -I/home/odile/prj/sage2/local/include > > > -I/home/odile/prj/sage2/local/include > > > -L/home/odile/prj/sage2/local/lib > > > -Wl,-rpath,/home/odile/prj/sage2/local/lib conftest.cpp > > > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp >&5 > > > 2840 libtool: link: g++ -o conftest -g -O2 -frounding-math > > > -I/home/odile/prj/sage2/local/include > > > -I/home/odile/prj/sage2/local/include -Wl,-rpath > > > -Wl,/home/odile/prj/sage2/local/lib conftest.cpp > > > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp > > > 2841 configure:21790: $? = 0 > > > 2842 configure:21790: ./conftest > > > 2843 ./configure: line 2318: 5834 Illegal instruction > > > ./conftest$ac_exeext > > > 2844 configure:21790: $? = 132 > > > 2845 configure: program exited with status 132 > > > > > > > > > Hmm--a bug in MPIR with your CPU perhaps? What CPU model/architecture is > > > it? > > > > > > > $ cat /proc/cpuinfo > > processor : 0 > > vendor_id : GenuineIntel > > cpu family : 6 > > model : 60 > > model name : Intel(R) Pentium(R) CPU G3240 @ 3.10GHz > > stepping: 3 > > microcode : 0x19 > > cpu MHz : 2092.922 > > cache size : 3072 KB > > physical id : 0 > > siblings: 2 > > core id : 0 > > cpu cores : 2 > > apicid : 0 > > initial apicid : 0 > > fpu : yes > > fpu_exception : yes > > cpuid level : 13 > > wp : yes > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > > cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx > > pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl > > xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl > > vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt xsave > > rdrand lahf_lm abm cpuid_fault invpcid_single pti tpr_shadow vnmi > > flexpriority ept vpid fsgsbase tsc_adjust erms invpcid xsaveopt dtherm arat > > pln pts > > bugs: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass > > bogomips: 6186.01 > > clflush size: 64 > > cache_alignment : 64 > > address sizes : 39 bits physical, 48 bits virtual > > power management: > > Bill Hart would have the expertise here, but I believe you may be > affected by this rare issue: https://github.com/wbhart/mpir/issues/209 > > > As a simple workaround, you could try for now building with > --enable-fat for MPIR, which builds a more machine-generic MPIR by > running: > > SAGE_FAT_BINARY=yes ./sage -f mpir > > Then, once MPIR has been re-built, run: > > make build > > again. I don't think you necessarily need to keep SAGE_FAT_BINARY on, > but you might try it just in case. Alternatively, you can try the patch I just added at https://trac.sagemath.org/ticket/25858 First check out my branch (it's based on 8.3.rc0 so not much else is changed, though MPIR has many direct and indirect dependents so most of Sage will wind up being rebuilt): $ git fetch $ git checkout --track origin/u/embray/ticket-25858 Rebuild MPIR; include SAGE_CHECK=yes to make sure it worked: $ SAGE_CHECK=yes make mpir If that worked then continue building the rest of Sage: $ make -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Compiling Sage stops at PPL
On Fri, Jul 13, 2018 at 8:22 AM Odile wrote: > > Le Thu, 12 Jul 2018 16:26:27 +0200, > Erik Bray a écrit : > > > > Well here's certainly something interesting from the ppl config.log: > > > > 2837 config.lt:681: creating libtool > > 2838 configure:21701: checking for the GMP library version 4.1.3 or above > > 2839 configure:21790: ./libtool --mode=link --tag=CXX g++ -o conftest > > -g -O2 -frounding-math -I/home/odile/prj/sage2/local/include > > -I/home/odile/prj/sage2/local/include > > -L/home/odile/prj/sage2/local/lib > > -Wl,-rpath,/home/odile/prj/sage2/local/lib conftest.cpp > > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp >&5 > > 2840 libtool: link: g++ -o conftest -g -O2 -frounding-math > > -I/home/odile/prj/sage2/local/include > > -I/home/odile/prj/sage2/local/include -Wl,-rpath > > -Wl,/home/odile/prj/sage2/local/lib conftest.cpp > > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp > > 2841 configure:21790: $? = 0 > > 2842 configure:21790: ./conftest > > 2843 ./configure: line 2318: 5834 Illegal instruction > > ./conftest$ac_exeext > > 2844 configure:21790: $? = 132 > > 2845 configure: program exited with status 132 > > > > > > Hmm--a bug in MPIR with your CPU perhaps? What CPU model/architecture is > > it? > > > > $ cat /proc/cpuinfo > processor : 0 > vendor_id : GenuineIntel > cpu family : 6 > model : 60 > model name : Intel(R) Pentium(R) CPU G3240 @ 3.10GHz > stepping: 3 > microcode : 0x19 > cpu MHz : 2092.922 > cache size : 3072 KB > physical id : 0 > siblings: 2 > core id : 0 > cpu cores : 2 > apicid : 0 > initial apicid : 0 > fpu : yes > fpu_exception : yes > cpuid level : 13 > wp : yes > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca > cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx > pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology > nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 > ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt xsave rdrand > lahf_lm abm cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept > vpid fsgsbase tsc_adjust erms invpcid xsaveopt dtherm arat pln pts > bugs: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass > bogomips: 6186.01 > clflush size: 64 > cache_alignment : 64 > address sizes : 39 bits physical, 48 bits virtual > power management: Bill Hart would have the expertise here, but I believe you may be affected by this rare issue: https://github.com/wbhart/mpir/issues/209 As a simple workaround, you could try for now building with --enable-fat for MPIR, which builds a more machine-generic MPIR by running: SAGE_FAT_BINARY=yes ./sage -f mpir Then, once MPIR has been re-built, run: make build again. I don't think you necessarily need to keep SAGE_FAT_BINARY on, but you might try it just in case. -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Compiling Sage stops at PPL
Le Thu, 12 Jul 2018 16:26:27 +0200, Erik Bray a écrit : > Well here's certainly something interesting from the ppl config.log: > > 2837 config.lt:681: creating libtool > 2838 configure:21701: checking for the GMP library version 4.1.3 or above > 2839 configure:21790: ./libtool --mode=link --tag=CXX g++ -o conftest > -g -O2 -frounding-math -I/home/odile/prj/sage2/local/include > -I/home/odile/prj/sage2/local/include > -L/home/odile/prj/sage2/local/lib > -Wl,-rpath,/home/odile/prj/sage2/local/lib conftest.cpp > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp >&5 > 2840 libtool: link: g++ -o conftest -g -O2 -frounding-math > -I/home/odile/prj/sage2/local/include > -I/home/odile/prj/sage2/local/include -Wl,-rpath > -Wl,/home/odile/prj/sage2/local/lib conftest.cpp > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp > 2841 configure:21790: $? = 0 > 2842 configure:21790: ./conftest > 2843 ./configure: line 2318: 5834 Illegal instruction > ./conftest$ac_exeext > 2844 configure:21790: $? = 132 > 2845 configure: program exited with status 132 > > > Hmm--a bug in MPIR with your CPU perhaps? What CPU model/architecture is it? > $ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Pentium(R) CPU G3240 @ 3.10GHz stepping: 3 microcode : 0x19 cpu MHz : 2092.922 cache size : 3072 KB physical id : 0 siblings: 2 core id : 0 cpu cores : 2 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt xsave rdrand lahf_lm abm cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust erms invpcid xsaveopt dtherm arat pln pts bugs: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass bogomips: 6186.01 clflush size: 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Pentium(R) CPU G3240 @ 3.10GHz stepping: 3 microcode : 0x19 cpu MHz : 1934.931 cache size : 3072 KB physical id : 0 siblings: 2 core id : 1 cpu cores : 2 apicid : 2 initial apicid : 2 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg cx16 xtpr pdcm pcid sse4_1 sse4_2 movbe popcnt xsave rdrand lahf_lm abm cpuid_fault invpcid_single pti tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust erms invpcid xsaveopt dtherm arat pln pts bugs: cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass bogomips: 6186.01 clflush size: 64 cache_alignment : 64 address sizes : 39 bits physical, 48 bits virtual power management: -- Odile Open Dream Kit http://www.opendreamkit.org -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Compiling Sage stops at PPL
On Thu, Jul 12, 2018 at 4:26 PM Erik Bray wrote: > > On Fri, Jul 6, 2018 at 5:53 PM Odile wrote: > > > > Hi > > > > I downloaded > > http://www-ftp.lip6.fr/pub/math/sagemath/src/sage-8.2.tar.gz > > > > I installed all the dependencies, including gcc and gfortran > > > > I attach ppl.log and my PPL config.log > > Well here's certainly something interesting from the ppl config.log: > > 2837 config.lt:681: creating libtool > 2838 configure:21701: checking for the GMP library version 4.1.3 or above > 2839 configure:21790: ./libtool --mode=link --tag=CXX g++ -o conftest > -g -O2 -frounding-math -I/home/odile/prj/sage2/local/include > -I/home/odile/prj/sage2/local/include > -L/home/odile/prj/sage2/local/lib > -Wl,-rpath,/home/odile/prj/sage2/local/lib conftest.cpp > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp >&5 > 2840 libtool: link: g++ -o conftest -g -O2 -frounding-math > -I/home/odile/prj/sage2/local/include > -I/home/odile/prj/sage2/local/include -Wl,-rpath > -Wl,/home/odile/prj/sage2/local/lib conftest.cpp > -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp > 2841 configure:21790: $? = 0 > 2842 configure:21790: ./conftest > 2843 ./configure: line 2318: 5834 Illegal instruction > ./conftest$ac_exeext > 2844 configure:21790: $? = 132 > 2845 configure: program exited with status 132 > > > Hmm--a bug in MPIR with your CPU perhaps? What CPU model/architecture is it? Perhaps relevant: https://groups.google.com/d/msg/mpir-devel/wWCb_iPzIWc/ku0lnhKcBAAJ -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re: [sage-devel] Compiling Sage stops at PPL
On Fri, Jul 6, 2018 at 5:53 PM Odile wrote: > > Hi > > I downloaded > http://www-ftp.lip6.fr/pub/math/sagemath/src/sage-8.2.tar.gz > > I installed all the dependencies, including gcc and gfortran > > I attach ppl.log and my PPL config.log Well here's certainly something interesting from the ppl config.log: 2837 config.lt:681: creating libtool 2838 configure:21701: checking for the GMP library version 4.1.3 or above 2839 configure:21790: ./libtool --mode=link --tag=CXX g++ -o conftest -g -O2 -frounding-math -I/home/odile/prj/sage2/local/include -I/home/odile/prj/sage2/local/include -L/home/odile/prj/sage2/local/lib -Wl,-rpath,/home/odile/prj/sage2/local/lib conftest.cpp -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp >&5 2840 libtool: link: g++ -o conftest -g -O2 -frounding-math -I/home/odile/prj/sage2/local/include -I/home/odile/prj/sage2/local/include -Wl,-rpath -Wl,/home/odile/prj/sage2/local/lib conftest.cpp -L/home/odile/prj/sage2/local/lib -lgmpxx -lgmp 2841 configure:21790: $? = 0 2842 configure:21790: ./conftest 2843 ./configure: line 2318: 5834 Illegal instruction ./conftest$ac_exeext 2844 configure:21790: $? = 132 2845 configure: program exited with status 132 Hmm--a bug in MPIR with your CPU perhaps? What CPU model/architecture is it? -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.
Re : [sage-devel] Compiling Sage stops at PPL
> your log says: > checking for the GMP library version 4.1.3 or above... no > configure: error: Cannot find GMP version 4.1.3 or higher. > Did you run ./configure before running make? Thanks for your answer. ./make did it for me and it works well > So this indicated that something got broken earlier. Check that there were no > errors while installing > MPIR package (which normally provides a replacement for GMP, unless you > configured it to actually use > GMP, not MPIR) MPIR has been compiled, I see no other error. I attach here 4 last lines of all log files in ./logs/pkgs > (and in this case Sage should have built its oven copy of GMP) -- Odile Open Dream Kit http://www.opendreamkit.org -- 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 post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout. ==> boost_cropped-1.58.0.log <== Successfully installed boost_cropped-1.58.0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/boost_cropped-1.58.0 Finished installing boost_cropped-1.58.0.spkg ==> bzip2-1.0.6-20150304.p0.log <== Successfully installed bzip2-1.0.6-20150304.p0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/bzip2-1.0.6-20150304.p0 Finished installing bzip2-1.0.6-20150304.p0.spkg ==> cephes-2.8.p1.log <== Successfully installed cephes-2.8.p1 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/cephes-2.8.p1 Finished installing cephes-2.8.p1.spkg ==> cliquer-1.21.p4.log <== Successfully installed cliquer-1.21.p4 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/cliquer-1.21.p4 Finished installing cliquer-1.21.p4.spkg ==> config.log <== #define HAVE_CXX11 1 #define HAVE_LIBM 1 configure: exit 0 ==> ecm-7.0.4.p1.log <== Successfully installed ecm-7.0.4.p1 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/ecm-7.0.4.p1 Finished installing ecm-7.0.4.p1.spkg ==> fplll-5.2.0.p1.log <== Successfully installed fplll-5.2.0.p1 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/fplll-5.2.0.p1 Finished installing fplll-5.2.0.p1.spkg ==> freetype-2.8.1.log <== Successfully installed freetype-2.8.1 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/freetype-2.8.1 Finished installing freetype-2.8.1.spkg ==> gf2x-1.2.p0.log <== Successfully installed gf2x-1.2.p0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/gf2x-1.2.p0 Finished installing gf2x-1.2.p0.spkg ==> givaro-4.0.4.log <== Successfully installed givaro-4.0.4 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/givaro-4.0.4 Finished installing givaro-4.0.4.spkg ==> glpk-4.63.p2.log <== Successfully installed glpk-4.63.p2 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/glpk-4.63.p2 Finished installing glpk-4.63.p2.spkg ==> iconv-1.15.log <== Successfully installed iconv-1.15 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/iconv-1.15 Finished installing iconv-1.15.spkg ==> libatomic_ops-7.6.2.log <== Successfully installed libatomic_ops-7.6.2 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/libatomic_ops-7.6.2 Finished installing libatomic_ops-7.6.2.spkg ==> libpng-1.6.29.p0.log <== Successfully installed libpng-1.6.29.p0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/libpng-1.6.29.p0 Finished installing libpng-1.6.29.p0.spkg ==> lrcalc-1.2.p1.log <== Successfully installed lrcalc-1.2.p1 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/lrcalc-1.2.p1 Finished installing lrcalc-1.2.p1.spkg ==> m4ri-20140914.p0.log <== Successfully installed m4ri-20140914.p0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/m4ri-20140914.p0 Finished installing m4ri-20140914.p0.spkg ==> m4rie-20150908.p0.log <== Successfully installed m4rie-20150908.p0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/m4rie-20150908.p0 Finished installing m4rie-20150908.p0.spkg ==> mpc-1.1.0.log <== Successfully installed mpc-1.1.0 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/mpc-1.1.0 Finished installing mpc-1.1.0.spkg ==> mpfi-1.5.2.log <== Successfully installed mpfi-1.5.2 Deleting temporary build directory /home/odile/prj/sage2/local/var/tmp/sage/build/mpfi-1.5.2 Finished installing mpfi-1.5.2.spkg ==> mpfr-4.0.1.log <== Successfully installed mpfr-4.0.1 Deleting temporary build directory