[SciPy-Dev] Problem building Scipy: unrecognized command line option "-mp"

Soppelsa Anton anton.soppelsa@igi.cnr...
Fri Aug 19 10:28:02 CDT 2011


Dear all,

I'm experiencing nasty problems building SciPy 0.9.0 on a amd64 machine 
running Linux using gcc and gfortran.

In particular I get an error by gfortran: f951: error: unrecognized 
command line option "-mp".

BTW, I noticed that the string "-openmp -mp 
-I/usr/local/vni/imsl/fnl600/lnxin100e64/include" comes always together 
(sometimes two times!?!).

I looked for the "-openmp" and/or "-mp" string in the entire numpy 
source code without being able to find it.

My questions are: from where does come these options? How can I disable 
the option -mp?

With this configuration I was able to build Python and NumPy, but not SciPy.

The details follow.

Sincerely,
   A. Soppelsa



[System]:

uname -a
Linux ra22.igi.cnr.it 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 
x86_64 x86_64 x86_64 GNU/Linux

cat /etc/*-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)

cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Xeon(R) CPU           E7330  @ 2.40GHz
stepping        : 11
cpu MHz         : 2400.093
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
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 
lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr lahf_lm
bogomips        : 4803.75
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

16x of them.

[Environment]:

export PATH=/usr/local/bin:/usr/bin:/bin
export LD_LIBRARY_PATH=/usr/lib64

I polished the PATH and LD_LIBRARY_PATH because distutil wasn't able to 
use gfortran after having correctly found it. (Drop distutils, please)

[Site.cfg]:

[DEFAULT]
#library_dirs = /usr/local/lib
#include_dirs = /usr/local/include
library_dirs = /home/soppelsa/local/lib
include_dirs = /home/soppelsa/local/include

# Optimized BLAS and LAPACK
# -------------------------
# Use the blas_opt and lapack_opt sections to give any settings that are
# required to link against your chosen BLAS and LAPACK, including the 
regular
# FORTRAN reference BLAS and also ATLAS. Some other sections still exist for
# linking against certain optimized libraries (e.g. [atlas], 
[lapack_atlas]),
# however, they are now deprecated and should not be used.
#
# These are typical configurations for ATLAS (assuming that the library and
# include directories have already been set in [DEFAULT]; the include 
directory
# is important for the BLAS C interface):
#

[blas_opt]
library_dirs = /usr/local/intel/mkl/10.1.0.015/lib/em64t/
#libraries = mkl_intel_lp64 mkl_intel_thread
libraries = mkl

[lapack_opt]
library_dirs = /usr/local/intel/mkl/10.1.0.015/lib/em64t/
#libraries = mkl_lapack mkl_core guide pthread
libraries = mkl_lapack

# UMFPACK
# -------
# The UMFPACK library is used in scikits.umfpack to factor large sparse 
matrices.
# It, in turn, depends on the AMD library for reordering the matrices for
# better performance.  Note that the AMD library has nothing to do with AMD
# (Advanced Micro Devices), the CPU company.
#
# UMFPACK is not needed for numpy or scipy.
#
#   http://www.cise.ufl.edu/research/sparse/umfpack/
#   http://www.cise.ufl.edu/research/sparse/amd/
#   http://scikits.appspot.com/umfpack
#
[amd]
#src_dirs = /home/soppelsa/local/src/AMD/Source
#include_dirs = /home/soppelsa/local/src/AMD/Include 
/home/soppelsa/local/src/UFconfig
#library_dirs = /home/soppelsa/local/src/AMD/Lib
amd_libs = amd

#
[umfpack]
#src_dirs = /home/soppelsa/local/src/UMFPACK/Source
#include_dirs = /home/soppelsa/local/src/UMFPACK/Include 
/home/soppelsa/local/src/UFconfig
#library_dirs = /home/soppelsa/local/src/UMFPACK/Lib
umfpack_libs = umfpack

# FFT libraries
# -------------
# There are two FFT libraries that we can configure here: FFTW (2 and 3) 
and djbfft.
# Note that these libraries are not needed for numpy or scipy.
#
#   http://fftw.org/
#   http://cr.yp.to/djbfft.html
#
# Given only this section, numpy.distutils will try to figure out which 
version
# of FFTW you are using.
#[fftw]
#libraries = fftw3
#
# For djbfft, numpy.distutils will look for either djbfft.a or libdjbfft.a .
#[djbfft]
#include_dirs = /usr/local/djbfft/include
#library_dirs = /usr/local/djbfft/lib


# MKL
#----
# For recent (9.0.21, for example) mkl, you need to change the names of the
# lapack library. Assuming you installed the mkl in /opt, for a 32 bits cpu:
# [mkl]
# library_dirs = /opt/intel/mkl/9.1.023/lib/32/
# lapack_libs = mkl_lapack
#
# For 10.*, on 32 bits machines:
[mkl]
library_dirs = /usr/local/intel/mkl/10.1.0.015/lib/em64t/
lapack_libs = mkl_lapack
mkl_libs = mkl, guide
#mkl_libs = mkl_intel_lp64 mkl_intel_thread mkl_lapack mkl_core guide 
pthread

[Build command and output]:

~/local/bin/python setup.py build --fcompiler=gnu95 --compiler=unix install
Warning: No configuration returned, assuming unavailable.blas_opt_info:
blas_mkl_info:
   FOUND:
     libraries = ['mkl', 'guide', 'pthread']
     library_dirs = ['/usr/local/intel/mkl/10.1.0.015/lib/em64t/']
     define_macros = [('SCIPY_MKL_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

   FOUND:
     libraries = ['mkl', 'guide', 'pthread']
     library_dirs = ['/usr/local/intel/mkl/10.1.0.015/lib/em64t/']
     define_macros = [('SCIPY_MKL_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

non-existing path in 'scipy/io': 'docs'
lapack_opt_info:
lapack_mkl_info:
mkl_info:
   FOUND:
     libraries = ['mkl', 'guide', 'pthread']
     library_dirs = ['/usr/local/intel/mkl/10.1.0.015/lib/em64t/']
     define_macros = [('SCIPY_MKL_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

   FOUND:
     libraries = ['mkl_lapack', 'mkl', 'guide', 'pthread']
     library_dirs = ['/usr/local/intel/mkl/10.1.0.015/lib/em64t/']
     define_macros = [('SCIPY_MKL_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

   FOUND:
     libraries = ['mkl_lapack', 'mkl', 'guide', 'pthread']
     library_dirs = ['/usr/local/intel/mkl/10.1.0.015/lib/em64t/']
     define_macros = [('SCIPY_MKL_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

umfpack_info:
amd_info:
   FOUND:
     libraries = ['amd']
     library_dirs = ['/home/soppelsa/local/lib']
     swig_opts = ['-I/home/soppelsa/local/include']
     define_macros = [('SCIPY_AMD_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

   FOUND:
     libraries = ['umfpack', 'amd']
     library_dirs = ['/home/soppelsa/local/lib']
     swig_opts = ['-I/home/soppelsa/local/include', 
'-I/home/soppelsa/local/include']
     define_macros = [('SCIPY_UMFPACK_H', None), ('SCIPY_AMD_H', None)]
     include_dirs = ['/home/soppelsa/local/include']

running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands 
--compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands 
--fcompiler options
running build_src
build_src
building py_modules sources
building library "dfftpack" sources
building library "fftpack" sources
building library "linpack_lite" sources
building library "mach" sources
building library "quadpack" sources
building library "odepack" sources
building library "dop" sources
building library "fitpack" sources
building library "odrpack" sources
building library "minpack" sources
building library "rootfind" sources
building library "superlu_src" sources
building library "arpack" sources
building library "qhull" sources
building library "sc_c_misc" sources
building library "sc_cephes" sources
building library "sc_mach" sources
building library "sc_toms" sources
building library "sc_amos" sources
building library "sc_cdf" sources
building library "sc_specfun" sources
building library "statlib" sources
building extension "scipy.cluster._vq" sources
building extension "scipy.cluster._hierarchy_wrap" sources
building extension "scipy.fftpack._fftpack" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.fftpack.convolve" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.integrate._quadpack" sources
building extension "scipy.integrate._odepack" sources
building extension "scipy.integrate.vode" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.integrate._dop" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.interpolate.interpnd" sources
building extension "scipy.interpolate._fitpack" sources
building extension "scipy.interpolate.dfitpack" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
   adding 
'build/src.linux-x86_64-2.7/scipy/interpolate/src/dfitpack-f2pywrappers.f' 
to sources.
building extension "scipy.interpolate._interpolate" sources
building extension "scipy.io.matlab.streams" sources
building extension "scipy.io.matlab.mio_utils" sources
building extension "scipy.io.matlab.mio5_utils" sources
building extension "scipy.lib.blas.fblas" sources
f2py options: ['skip:', ':']
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
   adding 
'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/lib/blas/fblas-f2pywrappers.f' 
to sources.
building extension "scipy.lib.blas.cblas" sources
   adding 'build/src.linux-x86_64-2.7/scipy/lib/blas/cblas.pyf' to sources.
f2py options: ['skip:', ':']
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.lib.lapack.flapack" sources
f2py options: ['skip:', ':']
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.lib.lapack.clapack" sources
   adding 'build/src.linux-x86_64-2.7/scipy/lib/lapack/clapack.pyf' to 
sources.
f2py options: ['skip:', ':']
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.lib.lapack.calc_lwork" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.lib.lapack.atlas_version" sources
building extension "scipy.linalg.fblas" sources
   adding 'build/src.linux-x86_64-2.7/scipy/linalg/fblas.pyf' to sources.
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
   adding 
'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/linalg/fblas-f2pywrappers.f' 
to sources.
building extension "scipy.linalg.cblas" sources
   adding 'build/src.linux-x86_64-2.7/scipy/linalg/cblas.pyf' to sources.
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.linalg.flapack" sources
   adding 'build/src.linux-x86_64-2.7/scipy/linalg/flapack.pyf' to sources.
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
   adding 
'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/linalg/flapack-f2pywrappers.f' 
to sources.
building extension "scipy.linalg.clapack" sources
   adding 'build/src.linux-x86_64-2.7/scipy/linalg/clapack.pyf' to sources.
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.linalg._flinalg" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.linalg.calc_lwork" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.linalg.atlas_version" sources
building extension "scipy.odr.__odrpack" sources
building extension "scipy.optimize._minpack" sources
building extension "scipy.optimize._zeros" sources
building extension "scipy.optimize._lbfgsb" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.optimize.moduleTNC" sources
building extension "scipy.optimize._cobyla" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.optimize.minpack2" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.optimize._slsqp" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.optimize._nnls" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.signal.sigtools" sources
building extension "scipy.signal.spline" sources
building extension "scipy.sparse.linalg.isolve._iterative" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.sparse.linalg.dsolve._superlu" sources
building extension "scipy.sparse.linalg.dsolve.umfpack.__umfpack" sources
   adding 'scipy/sparse/linalg/dsolve/umfpack/umfpack.i' to sources.
building extension "scipy.sparse.linalg.eigen.arpack._arpack" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
   adding 
'build/src.linux-x86_64-2.7/build/src.linux-x86_64-2.7/scipy/sparse/linalg/eigen/arpack/_arpack-f2pywrappers.f' 
to sources.
building extension "scipy.sparse.sparsetools._csr" sources
building extension "scipy.sparse.sparsetools._csc" sources
building extension "scipy.sparse.sparsetools._coo" sources
building extension "scipy.sparse.sparsetools._bsr" sources
building extension "scipy.sparse.sparsetools._dia" sources
building extension "scipy.sparse.sparsetools._csgraph" sources
building extension "scipy.spatial.qhull" sources
building extension "scipy.spatial.ckdtree" sources
building extension "scipy.spatial._distance_wrap" sources
building extension "scipy.special._cephes" sources
building extension "scipy.special.specfun" sources
f2py options: ['--no-wrap-functions']
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.special.orthogonal_eval" sources
building extension "scipy.special.lambertw" sources
building extension "scipy.stats.statlib" sources
f2py options: ['--no-wrap-functions']
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.stats.vonmises_cython" sources
building extension "scipy.stats.futil" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
building extension "scipy.stats.mvn" sources
f2py options: []
   adding 'build/src.linux-x86_64-2.7/fortranobject.c' to sources.
   adding 'build/src.linux-x86_64-2.7' to include_dirs.
   adding 'build/src.linux-x86_64-2.7/scipy/stats/mvn-f2pywrappers.f' to 
sources.
building extension "scipy.ndimage._nd_image" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
copying scipy/version.py -> build/lib.linux-x86_64-2.7/scipy
copying build/src.linux-x86_64-2.7/scipy/__config__.py -> 
build/lib.linux-x86_64-2.7/scipy
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
customize Gnu95FCompiler
Could not locate executable ifort
Found executable /usr/bin/gfortran
customize Gnu95FCompiler using build_clib
building 'dfftpack' library
compiling Fortran sources
Fortran f77 compiler: /usr/bin/gfortran -Wall -ffixed-form 
-fno-second-underscore -openmp -mp 
-I/usr/local/vni/imsl/fnl600/lnxin100e64/include -fPIC -O3 -funroll-loops
Fortran f90 compiler: ifort -openmp -mp 
-I/usr/local/vni/imsl/fnl600/lnxin100e64/include -openmp -mp 
-I/usr/local/vni/imsl/fnl600/lnxin100e64/include -fPIC -O3 -funroll-loops
Fortran fix compiler: ifort -Wall -ffixed-form -fno-second-underscore 
-openmp -mp -I/usr/local/vni/imsl/fnl600/lnxin100e64/include -openmp -mp 
-I/usr/local/vni/imsl/fnl600/lnxin100e64/include -fPIC -O3 -funroll-loops
compile options: 
'-I/home/soppelsa/local/lib/python2.7/site-packages/numpy/core/include -c'
gfortran:f77: scipy/fftpack/src/dfftpack/dffti.f
f951: error: unrecognized command line option "-mp"
f951: error: unrecognized command line option "-mp"
error: Command "/usr/bin/gfortran -Wall -ffixed-form 
-fno-second-underscore -openmp -mp 
-I/usr/local/vni/imsl/fnl600/lnxin100e64/include -fPIC -O3 
-funroll-loops 
-I/home/soppelsa/local/lib/python2.7/site-packages/numpy/core/include -c 
-c scipy/fftpack/src/dfftpack/dffti.f -o 
build/temp.linux-x86_64-2.7/scipy/fftpack/src/dfftpack/dffti.o" failed 
with exit status 1



More information about the SciPy-Dev mailing list