[SciPy-dev] scipy_distutuils build problem on Intel P4 running x86_64 Linux

Brett Olivier bgoli at sun.ac.za
Mon Oct 17 02:39:22 CDT 2005


Hi

I've been trying to build SciPy/newSciPy SVN versions on an Intel P4 (model 
640) using Mandrake Linux x86_64 with GCC 3.4.4. And get the following error 
messages:

building 'mach' library
compiling Fortran sources
g77(f77) options: '-Wall -fno-second-underscore -fPIC -O3 -funroll-loops 
-march=pentium4 -mmmx -msse2 -msse -malign-double -fomit-frame-pointer'
creating build/temp.linux-x86_64-2.4/Lib/special/mach
compile options: '-c'
g77:f77: Lib/special/mach/i1mach.f
Lib/special/mach/i1mach.f:0: error: CPU you selected does not support x86-64 
instruction set
Lib/special/mach/i1mach.f:0: error: CPU you selected does not support x86-64 
instruction set
Lib/special/mach/i1mach.f:0: error: -malign-double makes no sense in the 64bit 
mode
Lib/special/mach/i1mach.f:0: error: CPU you selected does not support x86-64 
instruction set
Lib/special/mach/i1mach.f:0: error: CPU you selected does not support x86-64 
instruction set
Lib/special/mach/i1mach.f:0: error: -malign-double makes no sense in the 64bit 
mode
removed Lib/__svn_version__.py

My workaround so far has been to modify gnufcompiler.py/gnu.py so that:

line 164:
elif cpu.is_PentiumIV():
    opt.append('-march=nocona')
    #opt.append('-march=pentium4')

line 201:
if cpu.is_Intel():
    opt.extend(['-fomit-frame-pointer'])
    #opt.extend(['-malign-double','-fomit-frame-pointer'])

I've included /proc/cpuinfo is included at the end of this message and I'll be 
happy to provide more information/testing.

Thanks.
Brett

/proc/cpuinfo for Intel 640 P4
===================
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 4
model name	:               Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping	: 3
cpu MHz		: 3211.536
cache size	: 2048 KB
physical id	: 0
siblings	: 2
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
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 nx lm pni monitor 
ds_cpl est cid cx16 xtpr
bogomips	: 6340.60
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 48 bits virtual
power management:

-- 
Brett G. Olivier
Postdoctoral Fellow
Triple-J Group for Molecular Cell Physiology
Stellenbosch University
bgoli at sun dot ac dot za   http://glue.jjj.sun.ac.za/~bgoli
Tel +27-21-8082704  Fax +27-21-8085863  Mobile +27-82-7329306
 




More information about the Scipy-dev mailing list