[Numpy-discussion] #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)

Manos Pontikakis pontikakis at gmail.com
Tue Feb 26 11:18:59 EST 2008


Hello,

I am trying to install numpy 1.0.4 to the following machine:

$ uname -a
Linux myhostname 2.6.9-55.ELsmp #1 SMP Sat Apr 21 11:16:24 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux


and I am getting the error that appears in the subject of this email. It
appears that BLAS and LAPACK libraries cannot be found as well, but I think
numpy still shouldn't have problem with that. There must be some problem
with 64 bit. Please see the complete log.

-------------------------------------------------------------------------------------------
Running from numpy source directory.
F2PY Version 2_4422
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/sse2
  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/sse2
  libraries f77blas,cblas,atlas not found in /usr/lib
  NOT AVAILABLE

/.../numpy-1.0.4/numpy/distutils/system_info.py:1340: 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/sse2
  libraries lapack_atlas not found in /usr/lib/sse2
  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/sse2
  libraries lapack_atlas not found in /usr/lib/sse2
  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

/.../numpy-1.0.4/numpy/distutils/system_info.py:1247: 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
options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
options
running build_src
building py_modules sources
building extension "numpy.core.multiarray" sources
Generating build/src.linux-x86_64-2.5/numpy/core/config.h
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Could not locate executable f95
customize VastFCompiler
customize GnuFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Found executable /usr/bin/gfortran

customize G95FCompiler
Could not locate executable g95
don't know how to compile Fortran code on platform 'posix'
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -fPIC

compile options: '-I/.../python2.5 -Inumpy/core/src -Inumpy/core/include
-I/.../python2.5 -c'
gcc: _configtest.c
In file included from /.../python2.5/Python.h:57,
                 from _configtest.c:2:
*/.../python2.5/pyport.h:730:2: #error "LONG_BIT definition appears wrong
for platform (bad gcc/glibc config?)."*
_configtest.c: In function `main':
_configtest.c:50: warning: int format, different type arg (arg 3)
_configtest.c:57: warning: int format, different type arg (arg 3)
_configtest.c:72: warning: int format, different type arg (arg 3)
In file included from /.../python2.5/Python.h:57,
                 from _configtest.c:2:
*/.../python2.5/pyport.h:730:2: #error "LONG_BIT definition appears wrong
for platform (bad gcc/glibc config?)."*
_configtest.c: In function `main':
_configtest.c:50: warning: int format, different type arg (arg 3)
_configtest.c:57: warning: int format, different type arg (arg 3)
_configtest.c:72: warning: int format, different type arg (arg 3)
failure.
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 89, in <module>
    setup_package()
  File "setup.py", line 82, in setup_package
    configuration=configuration )
  File "/.../numpy-1.0.4/numpy/distutils/core.py", line 176, in setup
    return old_setup(**new_attr)
  File "/.../python2.5/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/.../python2.5/distutils/dist.py", line 974, in run_commands
    self.run_command(cmd)
  File "/.../python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/.../numpy-1.0.4/numpy/distutils/command/install.py", line 16, in
run
    r = old_install.run(self)
  File "/.../python2.5/distutils/command/install.py", line 506, in run
    self.run_command('build')
  File "/.../python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/.../python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/.../python2.5/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/.../python2.5/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/.../python2.5/distutils/dist.py", line 994, in run_command
    cmd_obj.run()
  File "/.../numpy-1.0.4/numpy/distutils/command/build_src.py", line 130, in
run
    self.build_sources()
  File "/.../numpy-1.0.4/numpy/distutils/command/build_src.py", line 147, in
build_sources
    self.build_extension_sources(ext)
  File "/.../numpy-1.0.4/numpy/distutils/command/build_src.py", line 250, in
build_extension_sources
    sources = self.generate_sources(sources, ext)
  File "/.../numpy-1.0.4/numpy/distutils/command/build_src.py", line 307, in
generate_sources
    source = func(extension, build_dir)
  File "numpy/core/setup.py", line 53, in generate_config_h
    raise SystemError,"Failed to test configuration. "\
SystemError: Failed to test configuration. See previous error messages for
more information.
-------------------------------------------------------------------------------------------

Is there a specific configuration that I should apply for 64 bit machines?

Thank you,
Manos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080226/1a46f741/attachment.html>


More information about the NumPy-Discussion mailing list