[Numpy-discussion] failure building trunk with mingw

josef.pktd@gmai... josef.pktd@gmai...
Sun Nov 15 14:26:46 CST 2009


Are there new changes to the configuration needed?   mingw 3.4.5,
WindowsXP, Python 2.5.2

Python.h is not picked up anymore:

_configtest.c:1:20: Python.h: No such file or directory

Josef

C:\Josef\_progs\Subversion\numpy-trunk>setup.py bdist
Running from numpy source directory.
F2PY Version 2_7741
numpy\core\setup_common.py:86: MismatchCAPIWarning: API mismatch detected, the C
 API version numbers have to be updated. Current C api version is 3, with checks
um 59750b518272c8987f02d66445afd3f1, but recorded checksum for C API version 3 i
n codegen_dir/cversions.txt is bf22c0d05b31625d2a7015988d61ce5a. If functions we
re added in the C API, you have to update C_API_VERSION  in numpy\core\setup_com
mon.pyc.
  MismatchCAPIWarning)
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in C:/Programs/Intel/MKL/10.0.1.015/ia32/lib

  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in C:\Programs\Python25\lib
  libraries ptf77blas,ptcblas,atlas not found in C:\
  libraries ptf77blas,ptcblas,atlas not found in C:\Programs\Python25\libs
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in C:\Programs\Python25\lib
  libraries f77blas,cblas,atlas not found in C:\
  FOUND:
    libraries = ['f77blas', 'cblas', 'atlas']
    library_dirs = ['C:\\Programs\\Python25\\libs']
    language = c

C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\command\config.py:394: De
precationWarning:
+++++++++++++++++++++++++++++++++++++++++++++++++
Usage of get_output is deprecated: please do not
use it anymore, and avoid configuration checks
involving running executable on the target machine.
+++++++++++++++++++++++++++++++++++++++++++++++++

  DeprecationWarning)
No module named msvccompiler in numpy.distutils; trying from distutils
  FOUND:
    libraries = ['f77blas', 'cblas', 'atlas']
    library_dirs = ['C:\\Programs\\Python25\\libs']
    language = c
    define_macros = [('ATLAS_INFO', '"\\"?.?.?\\""')]

lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in C:/Programs/Intel/MKL/10.0.1.015/ia32/lib

  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in C:\Programs\Python25\lib
  libraries lapack_atlas not found in C:\Programs\Python25\lib
  libraries ptf77blas,ptcblas,atlas not found in C:\
  libraries lapack_atlas not found in C:\
  libraries ptf77blas,ptcblas,atlas not found in C:\Programs\Python25\libs
  libraries lapack_atlas not found in C:\Programs\Python25\libs
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in C:\Programs\Python25\lib
  libraries lapack_atlas not found in C:\Programs\Python25\lib
  libraries f77blas,cblas,atlas not found in C:\
  libraries lapack_atlas not found in C:\
  libraries lapack_atlas not found in C:\Programs\Python25\libs
numpy.distutils.system_info.atlas_info
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['C:\\Programs\\Python25\\libs']
    language = f77

No module named msvccompiler in numpy.distutils; trying from distutils
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['C:\\Programs\\Python25\\libs']
    language = f77
    define_macros = [('ATLAS_INFO', '"\\"?.?.?\\""')]

running bdist
running bdist_dumb
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
build_src
building py_modules sources
building library "npymath" sources
customize GnuFCompiler
Found executable C:\Programs\MinGW\bin\g77.exe
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
Found executable C:\Programs\MinGW\bin\g77.exe
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler using config
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

compile options: '-Inumpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy
\core\src\npymath -Inumpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\cor
e\include -c'
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Inumpy\core\src\private -Inumpy\c
ore\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -Inump
y\core\src\umath -Inumpy\core\include -c _configtest.c -o _configtest.o
Found executable C:\Programs\MinGW\bin\gcc.exe
g++ -mno-cygwin _configtest.o -lmsvcr71 -o _configtest.exe
Found executable C:\Programs\MinGW\bin\g++.exe
success!
removing: _configtest.c _configtest.o _configtest.exe
building extension "numpy.core._sort" sources
Generating build\src.win32-2.5\numpy\core\include/numpy\config.h
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

compile options: '-Inumpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy
\core\src\npymath -Inumpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\cor
e\include -c'
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Inumpy\core\src\private -Inumpy\c
ore\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -Inump
y\core\src\umath -Inumpy\core\include -c _configtest.c -o _configtest.o
g++ -mno-cygwin _configtest.o -lmsvcr71 -o _configtest.exe
success!
removing: _configtest.c _configtest.o _configtest.exe
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

compile options: '-Inumpy\core\src\private -Inumpy\core\src -Inumpy\core -Inumpy
\core\src\npymath -Inumpy\core\src\multiarray -Inumpy\core\src\umath -Inumpy\cor
e\include -c'
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Inumpy\core\src\private -Inumpy\c
ore\src -Inumpy\core -Inumpy\core\src\npymath -Inumpy\core\src\multiarray -Inump
y\core\src\umath -Inumpy\core\include -c _configtest.c -o _configtest.o
_configtest.c:1:20: Python.h: No such file or directory
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "C:\Josef\_progs\Subversion\numpy-trunk\setup.py", line 187, in <module>
    setup_package()
  File "C:\Josef\_progs\Subversion\numpy-trunk\setup.py", line 180, in setup_pac
kage
    configuration=configuration )
  File "C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\core.py", line 18
6, in setup
    return old_setup(**new_attr)
  File "C:\Programs\Python25\lib\distutils\core.py", line 151, in setup
    dist.run_commands()
  File "C:\Programs\Python25\lib\distutils\dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "C:\Programs\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Programs\Python25\lib\distutils\command\bdist.py", line 146, in run
    self.run_command(cmd_name)
  File "C:\Programs\Python25\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Programs\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Programs\Python25\lib\distutils\command\bdist_dumb.py", line 85, in r
un
    self.run_command('build')
  File "C:\Programs\Python25\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Programs\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\command\build.py"
, line 37, in run
    old_build.run(self)
  File "C:\Programs\Python25\lib\distutils\command\build.py", line 113, in run
    self.run_command(cmd_name)
  File "C:\Programs\Python25\lib\distutils\cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "C:\Programs\Python25\lib\distutils\dist.py", line 994, in run_command
    cmd_obj.run()
  File "C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\command\build_src
.py", line 152, in run
    self.build_sources()
  File "C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\command\build_src
.py", line 169, in build_sources
    self.build_extension_sources(ext)
  File "C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\command\build_src
.py", line 328, in build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "C:\Josef\_progs\Subversion\numpy-trunk\numpy\distutils\command\build_src
.py", line 385, in generate_sources
    source = func(extension, build_dir)
  File "numpy\core\setup.py", line 386, in generate_config_h
    moredefs, ignored = cocache.check_types(config_cmd, ext, build_dir)
  File "numpy\core\setup.py", line 41, in check_types
    out = check_types(*a, **kw)
  File "numpy\core\setup.py", line 246, in check_types
    "Cannot compiler 'Python.h'. Perhaps you need to "\
SystemError: Cannot compiler 'Python.h'. Perhaps you need to install python-dev|
python-devel.


More information about the NumPy-Discussion mailing list