Hi,

I'm experiencing instruction set issues with the SAGe Linux i686 
binary tarball from

http://mirror.switch.ch/mirror/sagemath/linux/32bit/\
sage-4.1.1-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux.tar.gz

I've checked on two different platforms which have an almost 
identical Debian/Lenny installation: an Athlon-XP <athlon> and a 
Pentium-M <pentium>. (Platform details: see below, if more 
information is needed I'll be happy to provide.)

Compiling entirely from source worked for <athlon>, but I didn't try 
full source compilation on <pentium>.

After extracting the binary tarball, startup of SAGe yields:

<athlon>
--------------------------------------------------------------------
| Sage Version 4.1.1, Release Date: 2009-08-14                     |
| Type notebook() for the GUI, and license() for information.      |
--------------------------------------------------------------------

**********************************************************************
WARNING!  This Sage install was built on a machine that supports
instructions that are not available on this computer.  Sage will
likely fail with ILLEGAL INSTRUCTION errors! The following processor
flags were on the build machine but are not on this computer:

sse2

Email http://groups.google.com/group/sage-support for help.
To remove this warning and make Sage start, just delete
[...]
...and sage won't start up.


<pentium>
--------------------------------------------------------------------
| Sage Version 4.1.1, Release Date: 2009-08-14                     |
| 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.
Setting permissions of DOT_SAGE directory so only you can read and 
write it.
/home/me/sage-4.1.1-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux/local/bin/sage-sage:
 
line 199: 13714 Illegal instruction     sage-ipython "$@" -i



Next step for me was to follow the instructions in the FAQ under 
http://wiki.sagemath.org/faq#Otherquestions (first entry) to delete 
and rebuild MPIR and ATLAS as suggested on #sage-devel:

rm spkg/installed/mpir* spkg/installed/atlas*
make

While this worked for <pentium>, it resulted in the following 
configure error on <athlon>:


<athlon>
[...]
mpir-1.2.p4/src/assert.c
mpir-1.2.p4/src/cpuid.c
mpir-1.2.p4/src/AUTHORS
****************************************************
Host system
uname -a:
Linux excalibur 2.6.26-2-686 #1 SMP Wed Aug 19 06:06:52 UTC 2009 
i686 GNU/Linux
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 
4.3.2-1.1' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext 
--enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 
--program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug 
--enable-objc-gc --enable-mpfr --enable-targets=all --enable-cld 
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu 
--target=i486-linux-gnu
Thread model: posix
gcc version 4.3.2 (Debian 4.3.2-1.1)
****************************************************
checking build system type... k7-pc-linux-gnu
checking host system type... k7-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of 
Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -fomit-frame-pointer ... no, long 
long reliability test 1
checking compiler gcc -O2 -fomit-frame-pointer ... no, long long 
reliability test 1
configure: error: could not find a working compiler, see config.log 
for details
Failed to configure.

real    0m4.005s
user    0m1.664s
sys     0m1.016s
sage: An error occurred while installing mpir-1.2.p4
Please email sage-devel http://groups.google.com/group/sage-devel
[...]
make[1]: *** [installed/mpir-1.2.p4] Error 1
make[1]: Leaving directory 
`/home/me/sage-4.1.1-linux-Debian_GNU_Linux_5.0_lenny-i686-Linux/spkg'

real    0m39.191s
user    0m9.645s
sys     0m2.412s
Error building Sage.

This was, however, not a problem when compiling from source on 
<athlon>. I did not dive further into this problem since the source 
compilation worked for me.


As a bottomline, I would wish for a clear statement placed at some 
prominent place on the website giving a hint about which CPU 
attributes (instruction subsets) are needed to run the precompiled 
binaries. As for me, I was expecting a *-i686-Package to run on 
anything from Pentium-II upwards (at least, I did not expect an 
issue like this on an Athlon-XP or a Pentium-M).

Best regards,

        Christian



Platform details (more info available on request):

---<athlon>---

/proc/cpuinfo:
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 10
model name      : AMD Athlon(tm) XP 2500+
stepping        : 0
cpu MHz         : 1837.000
cache size      : 512 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr 
pge mca cmov pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow 
up
bogomips        : 3707.73
clflush size    : 32
power management: ts

/etc/debian_version:
5.0.3

Kernel:
2.6.26-2-686 #1 SMP i686 GNU/Linux  (Debian stock)

GCC:
gcc (Debian 4.3.2-1.1) 4.3.2

---</athlon>---


---<pentium>---

/proc/cpuinfo:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 13
model name      : Intel(R) Pentium(R) M processor 1.86GHz
stepping        : 8
cpu MHz         : 1866.000
cache size      : 2048 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 sep mtrr 
pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx 
bts est tm2
bogomips        : 3723.98
clflush size    : 64
power management:

/etc/debian_version:
5.0.3

Kernel:
2.6.27.31 #1 i686 GNU/Linux  (vanilla)

GCC:
gcc (Debian 4.3.2-1.1) 4.3.2

---</pentium>---

-- 
christian hilberg           *               computer science
hilb...@unix-ag.org         *         unix user group siegen
*       The best defense against logic is ignorance.       *

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to