Jaap Spies wrote:
Dr. David Kirkby wrote:
I get the following problem when trying to make a 64-bit build of Sage
on Open Solaris (Intel Xeon processor). I would add the build of ATLAS
failed, so I had to just skip that.
[...]
The problem is probably a 32 vs 64 bit issue. See the spkg-install:
CFLAGS and friends are not correctly used:
# numpy's distutils is buggy and runs a conftest without
# taking CFLAGS into account. With 64 bit OSX this results
I patched the spkg-install file using the gcc_fake trick generally
when SAGE64="yes"
assuming /usr/bin/gcc is used:
sage subshell$ cat gcc_fake
#!/bin/bash
/usr/bin/gcc -m64 $@
building now failed because of my flawed python :(
compile options: '-Inumpy/core/src -Inumpy/core/include
-I/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/include/python2.6 -c'
gcc: _configtest.c
success!
removing: _configtest.c _configtest.o
File: build/src.solaris-2.11-i86pc-2.6/numpy/core/include/numpy/numpyconfig.h
#define NPY_SIZEOF_SHORT 2
#define NPY_SIZEOF_INT 4
#define NPY_SIZEOF_LONG 8
#define NPY_SIZEOF_FLOAT 4
#define NPY_SIZEOF_DOUBLE 8
#define NPY_SIZEOF_LONGDOUBLE 16
#define NPY_SIZEOF_PY_INTPTR_T 8
#define NPY_SIZEOF_PY_LONG_LONG 8
#define NPY_SIZEOF_LONGLONG 8
#define NPY_NO_SMP 0
#define NPY_HAVE_DECL_ISNAN
#define NPY_HAVE_DECL_ISINF
#define NPY_HAVE_DECL_SIGNBIT
#define NPY_HAVE_DECL_ISFINITE
#define NPY_USE_C99_FORMATS 1
#define NPY_INLINE inline
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif
EOF
adding
'build/src.solaris-2.11-i86pc-2.6/numpy/core/include/numpy/numpyconfig.h' to
sources.
numpy/core/code_generators/genapi.py:9: DeprecationWarning: the md5 module is
deprecated; use hashlib instead
import md5
Traceback (most recent call last):
File "setup.py", line 172, in <module>
setup_package()
File "setup.py", line 165, in setup_package
configuration=configuration )
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/core.py",
line 184, in setup
return old_setup(**new_attr)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/core.py",
line 152, in setup
dist.run_commands()
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/dist.py",
line 975, in run_commands
self.run_command(cmd)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/dist.py",
line 995, in run_command
cmd_obj.run()
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/command/install.py",
line 49, in run
r = old_install.run(self)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/command/install.py",
line 577, in run
self.run_command('build')
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/dist.py",
line 995, in run_command
cmd_obj.run()
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/command/build.py",
line 37, in run
old_build.run(self)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/command/build.py",
line 134, in run
self.run_command(cmd_name)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/cmd.py",
line 333, in run_command
self.distribution.run_command(command)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/distutils/dist.py",
line 995, in run_command
cmd_obj.run()
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/command/build_src.py",
line 130, in run
self.build_sources()
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/command/build_src.py",
line 147, in build_sources
self.build_extension_sources(ext)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/command/build_src.py",
line 250, in build_extension_sources
sources = self.generate_sources(sources, ext)
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/spkg/build/numpy-1.3.0.p3/src/numpy/distutils/command/build_src.py",
line 307, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 416, in generate_api
m = __import__(module_name)
File "numpy/core/code_generators/generate_numpy_api.py", line 2, in <module>
import genapi
File "numpy/core/code_generators/genapi.py", line 9, in <module>
import md5
File "/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/md5.py",
line 10, in <module>
from hashlib import md5
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/hashlib.py", line
136, in <module>
md5 = __get_builtin_constructor('md5')
File
"/export/home/jaap/Downloads/sage-4.3.1.alpha0.old/local/lib/python/hashlib.py",
line 63, in __get_builtin_constructor
import _md5
ImportError: No module named _md5
Error building numpy.
/export/home/jaap/Downloads/sage-4.3.1.alpha0.old
sage subshell$
Jaap
Jaap
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org