#6246: SAGE_FAT_BINARY still doesn't work
----------------------+-----------------------------------------------------
 Reporter:  was       |       Owner:  tbd       
     Type:  defect    |      Status:  new       
 Priority:  critical  |   Milestone:  sage-4.0.2
Component:  build     |    Keywords:            
 Reviewer:            |      Author:            
   Merged:            |  
----------------------+-----------------------------------------------------
 I built a Sage-4.0.1 on sage.math (a 32-bit vmware machine actually) using
 the SAGE_FAT_BINARY environment variable.  This set MPIR's --enable-fat
 option (or should have!).    I then dropped the binary on cicero (on
 skynet), and it does *NOT* work at all.   The problem is definitely still
 MPIR.  This will have to get fixed soon.
 At least this nails down that MPIR is the problem, and gives me a
 straightforward testcase.

 {{{
 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 4.0.1, Release Date: 2009-06-06                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 The SAGE install tree may have moved.
 Regenerating Python.pyo and .pyc files that hardcode the install PATH
 (please wait at
 most a few minutes)...
 Do not interrupt this.
 /home/wstein/tmp/sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux/local/bin/sage-sage: line 198: 27278 Illegal instruction
 sage-ipython "$@" -i
 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$ ./sage -gdb
 ----------------------------------------------------------------------
 | Sage Version 4.0.1, Release Date: 2009-06-06                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 /home/wstein/tmp/sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux/local/bin/sage-ipython
 GNU gdb Fedora (6.8-23.fc9)
 Copyright (C) 2008 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "i386-redhat-linux-gnu"...
 [Thread debugging using libthread_db enabled]
 Python 2.5.4 (r254:67916, Jun  6 2009, 05:52:22)
 [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 [New Thread 0xb80b66c0 (LWP 27306)]

 Program received signal SIGILL, Illegal instruction.
 0x0018f1c9 in __gmpz_set_str () from /home/wstein/tmp/sage-4.0.1-linux-
 Debian_GNU_Linux_4.0_etch-sse2-i686-Linux/local/lib/libgmp.so.3
 Missing separate debuginfos, use: debuginfo-install glibc.i686
 (gdb) bt
 #0  0x0018f1c9 in __gmpz_set_str () from /home/wstein/tmp/sage-4.0.1
 -linux-Debian_GNU_Linux_4.0_etch-sse2-i686-Linux/local/lib/libgmp.so.3
 #1  0x006095d3 in initinteger () at sage/rings/integer.c:30705
 #2  0x080e020c in _PyImport_LoadDynamicModule (name=0xbfaabba7
 "sage.rings.integer",
     pathname=0xbfaaab33 "/home/wstein/tmp/sage-4.0.1-linux-
 Debian_GNU_Linux_4.0_etch-sse2-i686-Linux/local/lib/python2.5/site-
 packages/sage/rings/integer.so", fp=0x89ae5e8)
     at ./Python/importdl.c:53
 #3  0x080de075 in load_module (name=0xbfaabba7 "sage.rings.integer",
 fp=0x32,
     buf=0xbfaaab33 "/home/wstein/tmp/sage-4.0.1-linux-Debian_GNU_Linux_4
 .0_etch-sse2-i686-Linux/local/lib/python2.5/site-
 packages/sage/rings/integer.so", type=3, loader=0xe)
     at Python/import.c:1758
 #4  0x080de2f9 in import_submodule (mod=0xb7b581f4, subname=0xbfaabbb2
 "integer", fullname=0xbfaabba7 "sage.rings.integer") at
 Python/import.c:2400
 #5  0x080de7d4 in load_next (mod=0xb7b581f4, altmod=0xb7b581f4,
 p_name=<value optimized out>, buf=0xbfaabba7 "sage.rings.integer",
 p_buflen=0xbfaacba8) at Python/import.c:2220
 #6  0x080dea20 in import_module_level (name=0x0, globals=<value optimized
 out>, locals=<value optimized out>, fromlist=0xb8084c6c, level=-1) at
 Python/import.c:2008
 }}}

 I then rebuilt MPIR with "sage -f mpir-1.2.p2" and Sage starts up.  But
 then it *does* die on use of ATLAS:
 {{{
 Making script relocatable
 Finished installing mpir-1.2.p2.spkg
 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 4.0.1, Release Date: 2009-06-06                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage:
 sage:
 sage:
 sage:
 Exiting SAGE (CPU time 0m0.09s, Wall time 0m11.48s).
 Exiting spawned Gap process.
 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$
 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 4.0.1, Release Date: 2009-06-06                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: a = random_matrix(ZZ,150)
 sage: time a.det()
 /home/wstein/tmp/sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux/local/bin/sage-sage: line 198: 17808 Illegal instruction
 sage-ipython "$@" -i
 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$ cat /proc/cpuinfo
 processor       : 0
 vendor_id       : GenuineIntel
 cpu family      : 15
 model           : 2
 model name      : Intel(R) Pentium(R) 4 CPU 2.66GHz
 stepping        : 7
 cpu MHz         : 2666.188
 cache size      : 512 KB
 fdiv_bug        : no
 hlt_bug         : no
 f00f_bug        : no
 coma_bug        : no
 fpu             : yes
 fpu_exception   : yes
 cpuid level     : 2
 wp              : yes
 flags           : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca
 cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe up pebs bts
 bogomips        : 5332.37
 clflush size    : 64
 power management:

 [wst...@cicero sage-4.0.1-linux-Debian_GNU_Linux_4.0_etch-
 sse2-i686-Linux]$
 }}}

 So I think all the "SAGE_FAT_BINARY" stuff -- the atlas only using sse2,
 the MPIR building FAT -- absolutely none of it works at all.
 But again, now that there is a good test system in place (build on
 sage.math, test on cicero), this will be fixable.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6246>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
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-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to