[Scipy-tickets] [SciPy] #738: Illegal Instruction

SciPy scipy-tickets@scipy....
Tue Sep 16 12:57:44 CDT 2008


#738: Illegal Instruction
----------------------------+-----------------------------------------------
 Reporter:  bernardo_rocha  |        Owner:  somebody
     Type:  defect          |       Status:  new     
 Priority:  normal          |    Milestone:          
Component:  Other           |      Version:          
 Severity:  normal          |   Resolution:          
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by scholl):

 You are right the sse2 instruction set is selected when building scipy.
 The scipy build uses "-march=pentium-m" instead of something like
 "-march=generic" or "-march=native" (furthermore the scipy build seems to
 ignore the CFLAGS environment variable, which I guess to be the reason why
 the binary package shows the same problem). "-mtune=pentium-m" is for
 centrino processors, which have a sse2 unit, as documentated at
 http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/i386-and-
 x86_002d64-Options.html#i386-and-x86_002d64-Options

 As far as I can see the problem lies in numpy's distutils implementation,
 which has no case for a Pentium III mobile cpu. More specifically this is
 distutils/fcompiler/gnu.py:250, where the wrong "-march" parameter is
 selected. Applying the attached patch should fix the problem (I am waiting
 for the scipy build to complete).

 BTW, is there a way to specify the cflags on the setup.py command line?

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/738#comment:4>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list