[Numpy-discussion] cannot build numpy from trunk
Nils Wagner
nwagner at iam.uni-stuttgart.de
Sun Apr 5 05:21:38 EDT 2009
Hi all,
I cannot build numpy from trunk
compile options: '-Inumpy/core/src -Inumpy/core/include
-I/usr/include/python2.6 -c'
gcc: _configtest.c
_configtest.c:1: warning: conflicting types for built-in
function asin
_configtest.c:2: warning: conflicting types for built-in
function cos
_configtest.c:3: warning: conflicting types for built-in
function log
_configtest.c:4: warning: conflicting types for built-in
function fabs
_configtest.c:5: warning: conflicting types for built-in
function tanh
_configtest.c:6: warning: conflicting types for built-in
function atan
_configtest.c:7: warning: conflicting types for built-in
function acos
_configtest.c:8: warning: conflicting types for built-in
function floor
_configtest.c:9: warning: conflicting types for built-in
function fmod
_configtest.c:10: warning: conflicting types for built-in
function sqrt
_configtest.c:11: warning: conflicting types for built-in
function cosh
_configtest.c:12: warning: conflicting types for built-in
function modf
_configtest.c:13: warning: conflicting types for built-in
function sinh
_configtest.c:14: warning: conflicting types for built-in
function frexp
_configtest.c:15: warning: conflicting types for built-in
function exp
_configtest.c:16: warning: conflicting types for built-in
function tan
_configtest.c:17: warning: conflicting types for built-in
function ceil
_configtest.c:18: warning: conflicting types for built-in
function log10
_configtest.c:19: warning: conflicting types for built-in
function sin
_configtest.c:20: warning: conflicting types for built-in
function ldexp
/usr/bin/gcc _configtest.o -o _configtest
_configtest.o: In function `main':
/home/nwagner/svn/numpy/_configtest.c:44: undefined
reference to `sin'
/home/nwagner/svn/numpy/_configtest.c:45: undefined
reference to `cos'
/home/nwagner/svn/numpy/_configtest.c:46: undefined
reference to `tan'
/home/nwagner/svn/numpy/_configtest.c:47: undefined
reference to `sinh'
/home/nwagner/svn/numpy/_configtest.c:48: undefined
reference to `cosh'
/home/nwagner/svn/numpy/_configtest.c:49: undefined
reference to `tanh'
/home/nwagner/svn/numpy/_configtest.c:50: undefined
reference to `fabs'
/home/nwagner/svn/numpy/_configtest.c:51: undefined
reference to `floor'
/home/nwagner/svn/numpy/_configtest.c:52: undefined
reference to `ceil'
/home/nwagner/svn/numpy/_configtest.c:53: undefined
reference to `sqrt'
/home/nwagner/svn/numpy/_configtest.c:54: undefined
reference to `log10'
/home/nwagner/svn/numpy/_configtest.c:55: undefined
reference to `log'
/home/nwagner/svn/numpy/_configtest.c:56: undefined
reference to `exp'
/home/nwagner/svn/numpy/_configtest.c:57: undefined
reference to `asin'
/home/nwagner/svn/numpy/_configtest.c:58: undefined
reference to `acos'
/home/nwagner/svn/numpy/_configtest.c:59: undefined
reference to `atan'
/home/nwagner/svn/numpy/_configtest.c:60: undefined
reference to `fmod'
collect2: ld returned 1 exit status
_configtest.o: In function `main':
/home/nwagner/svn/numpy/_configtest.c:44: undefined
reference to `sin'
/home/nwagner/svn/numpy/_configtest.c:45: undefined
reference to `cos'
/home/nwagner/svn/numpy/_configtest.c:46: undefined
reference to `tan'
/home/nwagner/svn/numpy/_configtest.c:47: undefined
reference to `sinh'
/home/nwagner/svn/numpy/_configtest.c:48: undefined
reference to `cosh'
/home/nwagner/svn/numpy/_configtest.c:49: undefined
reference to `tanh'
/home/nwagner/svn/numpy/_configtest.c:50: undefined
reference to `fabs'
/home/nwagner/svn/numpy/_configtest.c:51: undefined
reference to `floor'
/home/nwagner/svn/numpy/_configtest.c:52: undefined
reference to `ceil'
/home/nwagner/svn/numpy/_configtest.c:53: undefined
reference to `sqrt'
/home/nwagner/svn/numpy/_configtest.c:54: undefined
reference to `log10'
/home/nwagner/svn/numpy/_configtest.c:55: undefined
reference to `log'
/home/nwagner/svn/numpy/_configtest.c:56: undefined
reference to `exp'
/home/nwagner/svn/numpy/_configtest.c:57: undefined
reference to `asin'
/home/nwagner/svn/numpy/_configtest.c:58: undefined
reference to `acos'
/home/nwagner/svn/numpy/_configtest.c:59: undefined
reference to `atan'
/home/nwagner/svn/numpy/_configtest.c:60: undefined
reference to `fmod'
collect2: ld returned 1 exit status
failure.
removing: _configtest.c _configtest.o
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 "/home/nwagner/svn/numpy/numpy/distutils/core.py",
line 184, in setup
return old_setup(**new_attr)
File "/usr/lib64/python2.6/distutils/core.py", line
152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line
975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line
995, in run_command
cmd_obj.run()
File
"/home/nwagner/svn/numpy/numpy/distutils/command/install.py",
line 49, in run
r = old_install.run(self)
File
"/usr/lib64/python2.6/distutils/command/install.py", line
582, in run
self.run_command('build')
File "/usr/lib64/python2.6/distutils/cmd.py", line 333,
in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.6/distutils/dist.py", line
995, in run_command
cmd_obj.run()
File
"/home/nwagner/svn/numpy/numpy/distutils/command/build.py",
line 37, in run
old_build.run(self)
File "/usr/lib64/python2.6/distutils/command/build.py",
line 134, in run
self.run_command(cmd_name)
File "/usr/lib64/python2.6/distutils/cmd.py", line 333,
in run_command
self.distribution.run_command(command)
File "/usr/lib64/python2.6/distutils/dist.py", line
995, in run_command
cmd_obj.run()
File
"/home/nwagner/svn/numpy/numpy/distutils/command/build_src.py",
line 130, in run
self.build_sources()
File
"/home/nwagner/svn/numpy/numpy/distutils/command/build_src.py",
line 147, in build_sources
self.build_extension_sources(ext)
File
"/home/nwagner/svn/numpy/numpy/distutils/command/build_src.py",
line 250, in build_extension_sources
sources = self.generate_sources(sources, ext)
File
"/home/nwagner/svn/numpy/numpy/distutils/command/build_src.py",
line 307, in generate_sources
source = func(extension, build_dir)
File "numpy/core/setup.py", line 297, in
generate_config_h
check_math_capabilities(config_cmd, moredefs,
mathlibs)
File "numpy/core/setup.py", line 126, in
check_math_capabilities
" available (the list is %s)." %
str(MANDATORY_FUNCS))
SystemError: One of the required function to build numpy
is not available (the list is ['sin', 'cos', 'tan',
'sinh', 'cosh', 'tanh', 'fabs', 'floor', 'ceil', 'sqrt',
'log10', 'log', 'exp', 'asin', 'acos', 'atan', 'fmod',
'modf', 'frexp', 'ldexp']).
Nils
More information about the NumPy-Discussion
mailing list