Greetings. I have just downloaded and attempted to build from source sage-4.1 and got the following error message: Error building ratpoints. Please advise on how to fix the problem. Relevant system information and portion of install.log are included below.
Also, one other question: I would like to have an up-to-date Python installed including numpy, scipy, and other useful packages for scientific programming. Can I simply use the Python that comes bundled with Sage? How does one do this, if it is possible (and recommended). Same question also for the Fortran compiler bundled with Sage. Thanks, Peter Contents of relevant portion of install.log: ---------------------------------------------------------- Successfully installed ecm-6.2.1.p0 Now cleaning up tmp files. Making Sage/Python scripts relocatable... Making script relocatable Finished installing ecm-6.2.1.p0.spkg sage-spkg ratpoints-2.1.2.p2 2>&1 You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. ratpoints-2.1.2.p2 Machine: Linux karl.ssd.loral.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux Deleting directories from past builds of previous/current versions of ratpoints-2.1.2.p2 Extracting package /projects/antenna_eng/tools/sage-4.1/spkg/standard/ ratpoints-2.1.2.p2.spkg ... -rw-r--r-- 1 simonp antenna 206557 Jul 9 15:06 /projects/antenna_eng/ tools/sage-4.1/spkg/standard/ratpoints-2.1.2.p2.spkg ratpoints-2.1.2.p2/ ratpoints-2.1.2.p2/.hg/ ratpoints-2.1.2.p2/.hg/00changelog.i ratpoints-2.1.2.p2/.hg/dirstate ratpoints-2.1.2.p2/.hg/requires ratpoints-2.1.2.p2/.hg/store/ ratpoints-2.1.2.p2/.hg/store/00changelog.i ratpoints-2.1.2.p2/.hg/store/00manifest.i ratpoints-2.1.2.p2/.hg/store/data/ ratpoints-2.1.2.p2/.hg/store/data/.hgignore.i ratpoints-2.1.2.p2/.hg/store/data/_s_p_k_g.txt.i ratpoints-2.1.2.p2/.hg/store/data/spkg-install.i ratpoints-2.1.2.p2/.hg/store/data/src/ ratpoints-2.1.2.p2/.hg/store/data/src/_makefile.i ratpoints-2.1.2.p2/.hg/store/fncache ratpoints-2.1.2.p2/.hg/store/undo ratpoints-2.1.2.p2/.hg/undo.branch ratpoints-2.1.2.p2/.hg/undo.dirstate ratpoints-2.1.2.p2/.hgignore ratpoints-2.1.2.p2/spkg-install ratpoints-2.1.2.p2/SPKG.txt ratpoints-2.1.2.p2/src/ ratpoints-2.1.2.p2/src/find_points.c ratpoints-2.1.2.p2/src/gen_find_points_h.c ratpoints-2.1.2.p2/src/gen_init_sieve_h.c ratpoints-2.1.2.p2/src/gpl-2.0.txt ratpoints-2.1.2.p2/src/init.c ratpoints-2.1.2.p2/src/main.c ratpoints-2.1.2.p2/src/Makefile ratpoints-2.1.2.p2/src/primes.h ratpoints-2.1.2.p2/src/ratpoints-doc.pdf ratpoints-2.1.2.p2/src/ratpoints.h ratpoints-2.1.2.p2/src/rp-private.h ratpoints-2.1.2.p2/src/rptest.c ratpoints-2.1.2.p2/src/sift.c ratpoints-2.1.2.p2/src/sturm.c ratpoints-2.1.2.p2/src/testbase ratpoints-2.1.2.p2/src/testdata.h Finished extraction **************************************************** Host system uname -a: Linux karl.ssd.loral.com 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux **************************************************** **************************************************** GCC Version gcc -v Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man -- infodir=/usr/share/info --enable-shared --enable-threads=posix -- disable-checking --with-system-zlib --enable-__cxa_atexit --disable- libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-8) **************************************************** make[2]: Entering directory `/projects/antenna_eng/tools/sage-4.1/spkg/ build/ratpoints-2.1.2.p2/src' gcc sift.c -c -o sift.o -I/projects/antenna_eng/tools/sage-4.1/local/ include -Wall -O2 -fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE - funroll-loops sift.c: In function `_ratpoints_sift0': sift.c:229: warning: implicit declaration of function `__builtin_ia32_vec_ext_v2di' gcc gen_init_sieve_h.c -o gen_init_sieve_h -I/projects/antenna_eng/ tools/sage-4.1/local/include -Wall -O2 -fPIC - DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -L/projects/antenna_eng/tools/ sage-4.1/local/lib -lgmp -lm ./gen_init_sieve_h > init_sieve.h gcc init.c -c -o init.o -I/projects/antenna_eng/tools/sage-4.1/local/ include -Wall -O2 -fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE - funroll-loops -O3 gcc sturm.c -c -o sturm.o -I/projects/antenna_eng/tools/sage-4.1/local/ include -Wall -O2 -fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE gcc gen_find_points_h.c -o gen_find_points_h -I/projects/antenna_eng/ tools/sage-4.1/local/include -Wall -O2 -fPIC - DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -L/projects/antenna_eng/tools/ sage-4.1/local/lib -lgmp -lm ./gen_find_points_h > find_points.h gcc find_points.c -c -o find_points.o -I/projects/antenna_eng/tools/ sage-4.1/local/include -Wall -O2 -fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE find_points.c: In function `find_points_work': find_points.c:1701: warning: implicit declaration of function `__builtin_ia32_vec_ext_v2di' ar rs libratpoints.a sift.o init.o sturm.o find_points.o ar: creating libratpoints.a gcc main.c -o ratpoints -I/projects/antenna_eng/tools/sage-4.1/local/ include -Wall -O2 -fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -DUSE_SSE -L/ projects/antenna_eng/tools/sage-4.1/local/lib -lgmp -lm -L. - lratpoints ./libratpoints.a(find_points.o)(.text+0x2ac8): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x2e24): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x3205): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x33d7): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x3728): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(sift.o)(.text+0x633): more undefined references to `__builtin_ia32_vec_ext_v2di' follow collect2: ld returned 1 exit status make[2]: *** [ratpoints] Error 1 make[2]: Leaving directory `/projects/antenna_eng/tools/sage-4.1/spkg/ build/ratpoints-2.1.2.p2/src' Build failed. Trying without SSE2 instructions. make[2]: Entering directory `/projects/antenna_eng/tools/sage-4.1/spkg/ build/ratpoints-2.1.2.p2/src' gcc main.c -o ratpoints -I/projects/antenna_eng/tools/sage-4.1/local/ include -Wall -O2 -fPIC -DRATPOINTS_MAX_BITS_IN_PRIME=7 -L/projects/ antenna_eng/tools/sage-4.1/local/lib -lgmp -lm -L. -lratpoints ./libratpoints.a(find_points.o)(.text+0x2ac8): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x2e24): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x3205): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x33d7): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(find_points.o)(.text+0x3728): In function `find_points_work': : undefined reference to `__builtin_ia32_vec_ext_v2di' ./libratpoints.a(sift.o)(.text+0x633): more undefined references to `__builtin_ia32_vec_ext_v2di' follow collect2: ld returned 1 exit status make[2]: *** [ratpoints] Error 1 make[2]: Leaving directory `/projects/antenna_eng/tools/sage-4.1/spkg/ build/ratpoints-2.1.2.p2/src' Error building ratpoints real 0m1.850s user 0m1.536s sys 0m0.172s sage: An error occurred while installing ratpoints-2.1.2.p2 Please email sage-devel http://groups.google.com/group/sage-devel explaining the problem and send the relevant part of of /projects/antenna_eng/tools/sage-4.1/install.log. Describe your computer, operating system, etc. If you want to try to fix the problem, yourself *don't* just cd to /projects/antenna_eng/tools/sage-4.1/spkg/build/ratpoints-2.1.2.p2 and type 'make'. Instead type "/projects/antenna_eng/tools/sage-4.1/sage -sh" in order to set all environment variables correctly, then cd to /projects/antenna_eng/tools/sage-4.1/spkg/build/ratpoints-2.1.2.p2 (When you are done debugging, you can type "exit" to leave the subshell.) make[1]: *** [installed/ratpoints-2.1.2.p2] Error 1 make[1]: Leaving directory `/projects/antenna_eng/tools/sage-4.1/spkg' real 83m42.516s user 47m44.411s sys 10m1.541s Error building Sage. Contents of /etc/redhat-release: ----------------------------------------------- Red Hat Enterprise Linux AS release 4 (Nahant Update 5) Contents of /proc/cpuinfo: --------------------------------------- processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 6 cpu MHz : 3000.003 cache size : 4096 KB physical id : 0 siblings : 2 core id : 0 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 10 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 syscall lm pni monitor ds_cpl est tm2 cx16 xtpr bogomips : 6004.09 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 6 cpu MHz : 3000.003 cache size : 4096 KB physical id : 3 siblings : 2 core id : 6 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 10 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 syscall lm pni monitor ds_cpl est tm2 cx16 xtpr bogomips : 6000.03 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 2 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 6 cpu MHz : 3000.003 cache size : 4096 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 10 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 syscall lm pni monitor ds_cpl est tm2 cx16 xtpr bogomips : 5999.99 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 15 model name : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz stepping : 6 cpu MHz : 3000.003 cache size : 4096 KB physical id : 3 siblings : 2 core id : 7 cpu cores : 2 fpu : yes fpu_exception : yes cpuid level : 10 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 syscall lm pni monitor ds_cpl est tm2 cx16 xtpr bogomips : 6000.03 clflush size : 64 cache_alignment : 64 address sizes : 36 bits physical, 48 bits virtual power management: --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
