#12970: MPIR fails to build when CPU's architecture name doesn't match its
actual
capabilities
-----------------------------------------------+----------------------------
Reporter: kini | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone: sage-5.1
Component: packages | Resolution:
Keywords: mpir virtualbox yasm cflags | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
-----------------------------------------------+----------------------------
Comment (by vbraun):
In a 32-bit Virtualbox, the spkg from comment:9 it picked
{{{
Finally using the following settings:
CC=gcc
CFLAGS=-m32 -O2 -fomit-frame-pointer -mtune=corei7-avx -march=corei7-avx
-g
CPP=
CPPFLAGS=
CXX=g++
CXXFLAGS=
LDFLAGS= -Wl,-z,noexecstack
ABI=32
}}}
and dies in the vmovd AVX instruction:
{{{
[sage@sagevm sage]$ ./sage -gdb
----------------------------------------------------------------------
| Sage Version 5.0, Release Date: 2012-05-14 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
/home/sage/sage-5.0/local/bin/sage-ipython
GNU gdb (GDB) Fedora (7.3.50.20110722-13.fc16)
Copyright (C) 2011 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 "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/sage/sage-5.0/local/bin/python...done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Python 2.7.2 (default, May 21 2012, 00:38:32)
[GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux3
Type "help", "copyright", "credits" or "license" for more information.
Program received signal SIGILL, Illegal instruction.
0x00470191 in __gmpz_set_str (x=0x1523ab4, str=<optimized out>, base=10)
at set_str.c:110
110 set_str.c: No such file or directory.
in set_str.c
Missing separate debuginfos, use: debuginfo-install
atlas-3.8.4-1.fc16.i686 glibc-2.14.90-24.fc16.6.i686 keyutils-
libs-1.5.2-1.fc16.i686 krb5-libs-1.9.3-1.fc16.i686
libcom_err-1.41.14-2.fc15.i686 libgcc-4.6.3-2.fc16.i686
libselinux-2.1.6-6.fc16.i686 libstdc++-4.6.3-2.fc16.i686 ncurses-
libs-5.9-2.20110716.fc16.i686 openssl-1.0.0i-1.fc16.i686
(gdb) dis
(gdb) disassemble
Dump of assembler code for function __gmpz_set_str:
[...]
0x00470189 <+393>: jne 0x470158 <__gmpz_set_str+344>
0x0047018b <+395>: mov -0x54(%ebp),%ecx
0x0047018e <+398>: sub -0x44(%ebp),%ecx
=> 0x00470191 <+401>: vmovd %ecx,%xmm0
0x00470195 <+405>: vmovq %xmm0,-0x30(%ebp)
0x0047019a <+410>: fildll -0x30(%ebp)
0x0047019d <+413>: mov 0x10(%ebp),%edx
0x004701a0 <+416>: mov -0x50(%ebx),%esi
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12970#comment:12>
Sage <http://www.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.