[Numpy-discussion] Installing numpy under cygwin

Olivia Cheronet cheronetolivia@yahoo....
Wed Nov 25 03:42:00 CST 2009


The crt0.o file was indeed missing. I have reinstalled cygwin from the cygwin setup.exe (as it seemed to be included therein), and it seems to have solved that.

However, I now get the error below.

Thanks,

Olivia

_____________________________________________________________________

Running from numpy source directory.
non-existing path in 'numpy/distutils': 'site.cfg'
F2PY Version 2
blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in /usr/local/lib
  libraries mkl,vml,guide not found in /usr/lib
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in /usr/local/lib
  libraries f77blas,cblas,atlas not found in /usr/lib
  NOT AVAILABLE

/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1383: 
UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
blas_info:
  libraries blas not found in /usr/local/lib
  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib']
    language = f77

  FOUND:
    libraries = ['blas']
    library_dirs = ['/usr/lib']
    define_macros = [('NO_ATLAS_INFO', 1)]
    language = f77

lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in /usr/local/lib
  libraries mkl,vml,guide not found in /usr/lib
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in /usr/local/lib
  libraries lapack_atlas not found in /usr/local/lib
  libraries f77blas,cblas,atlas not found in /usr/lib
  libraries lapack_atlas not found in /usr/lib
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/system_info.py:1290: 
UserWarning: 
    Atlas (http://math-atlas.sourceforge.net/) libraries not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [atlas]) or by setting
    the ATLAS environment variable.
  warnings.warn(AtlasNotFoundError.__doc__)
lapack_info:
  libraries lapack not found in /usr/local/lib
  FOUND:
    libraries = ['lapack']
    library_dirs = ['/usr/lib']
    language = f77

  FOUND:
    libraries = ['lapack', 'blas']
    library_dirs = ['/usr/lib']
    define_macros = [('NO_ATLAS_INFO', 1)]
    language = f77

running install
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
building py_modules sources
building library "npymath" sources
building extension "numpy.core._sort" sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/include/numpy/config.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/inc
lude/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/
numpy/__multiarray_api.h']
building extension "numpy.core.multiarray" sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar
raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config
.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.h', 
'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray_api.h']
building extension "numpy.core.umath" sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_ufunc_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__ufunc_api.
h' to sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/src/scalartypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/ar
raytypes.inc', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umath_funcs.inc'
, 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/umath_loops.inc', 'build/src.
cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h', 'build/src.cygwin-1.5
.25-i686-2.5/numpy/core/include/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i
686-2.5/numpy/core/include/numpy/__ufunc_api.h']
building extension "numpy.core.scalarmath" sources
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/config.h' to
 sources.
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/numpyconfig.
h' to sources.
executing numpy/core/code_generators/generate_numpy_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__multiarray
_api.h' to sources.
executing numpy/core/code_generators/generate_ufunc_api.py
  adding 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/numpy/__ufunc_api.
h' to sources.
numpy.core - nothing done with h_files = ['build/src.cygwin-1.5.25-i686-2.5/nump
y/core/include/numpy/config.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/inc
lude/numpy/numpyconfig.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/
numpy/__multiarray_api.h', 'build/src.cygwin-1.5.25-i686-2.5/numpy/core/include/
numpy/__ufunc_api.h']
building extension "numpy.core._dotblas" sources
building extension "numpy.core.umath_tests" sources
building extension "numpy.lib._compiled_base" sources
building extension "numpy.numarray._capi" sources
building extension "numpy.fft.fftpack_lite" sources
building extension "numpy.linalg.lapack_lite" sources
  adding 'numpy/linalg/lapack_litemodule.c' to sources.
  adding 'numpy/linalg/python_xerbla.c' to sources.
building extension "numpy.random.mtrand" sources
/cygdrive/c/cygwin/home/Global/numpy-1.3.0/numpy/distutils/command/config.py:39:
 DeprecationWarning: 
+++++++++++++++++++++++++++++++++++++++++++++++++
Usage of try_run is deprecated: please do not 
use it anymore, and avoid configuration checks 
involving running executable on the target machine.
+++++++++++++++++++++++++++++++++++++++++++++++++

  DeprecationWarning)
customize GnuFCompiler
Found executable /usr/bin/g77
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler
gnu: no Fortran 90 compiler found
gnu: no Fortran 90 compiler found
customize GnuFCompiler using config
C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prot
otypes

compile options: '-Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5
 -c'
gcc: _configtest.c
gcc _configtest.o -o _configtest.exe
_configtest.exe
failure.
removing: _configtest.c _configtest.o _configtest.exe
building data_files sources
running build_py
copying numpy/version.py -> build/lib.cygwin-1.5.25-i686-2.5/numpy
copying build/src.cygwin-1.5.25-i686-2.5/numpy/__config__.py -> build/lib.cygwin
-1.5.25-i686-2.5/numpy
copying build/src.cygwin-1.5.25-i686-2.5/numpy/distutils/__config__.py -> build/
lib.cygwin-1.5.25-i686-2.5/numpy/distutils
running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
building 'npymath' library
compiling C sources
C compiler: gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prot
otypes

compile options: '-Inumpy/core/include -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/
core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.
5 -c'
gcc: build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c
numpy/core/src/npy_math.c.src:186: error: parse error before '/' token
numpy/core/src/npy_math.c.src:186: error: parse error before '/' token
error: Command "gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-
prototypes -Inumpy/core/include -Ibuild/src.cygwin-1.5.25-i686-2.5/numpy/core/in
clude/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.5 -c bu
ild/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.c -o build/temp.cygwin-1.
5.25-i686-2.5/build/src.cygwin-1.5.25-i686-2.5/numpy/core/src/npy_math.o" failed
 with exit status 1



----- Original Message ----
> This is your problem: crt0.o is a file part of the C runtime, necessary
> to create any executable. This should have been installed at the same
> time as gcc, I would suggest reinstalling gcc on your cygwin. If this
> works, you should be able to compile a hello world from the command line,
> 
> cheers,
> 
> David



      


More information about the NumPy-Discussion mailing list