[SciPy-dev] Problems using Weave
Andreas Lorenz
andreas.frankfurt at gmx.de
Tue Jan 22 13:15:52 EST 2002
Hi everyone,
I have installed Numeric + Weave. But when I Try to run the binary_search.py
example I get the following error:
Binary search for 50000 items in 100000 length list of integers:
speed in python: 1.38124608994
speed of bisect: 1.17039096355
speed up: 1.18
running build_ext
building 'sc_2c6cc4f1f91a224f83f8465d7fb0b46a4' extension
gcc -D_FILE_OFFSET_BITS=64 -DHAVE_LARGEFILE_SUPPORT -O2 -mcpu=i486
-march=i486 -
fPIC -I/home/ude6/Python/weave-0.2.1/weave -I/usr/include/python2.1 -c
/home/ude
6/.python21_compiled/sc_2c6cc4f1f91a224f83f8465d7fb0b46a4.cpp -o
/tmp/python21_i
ntermediate/sc_2c6cc4f1f91a224f83f8465d7fb0b46a4.o
/home/ude6/.python21_compiled/sc_2c6cc4f1f91a224f83f8465d7fb0b46a4.cpp: In
funct
ion `struct PyObject * compiled_func(PyObject *, PyObject *)':
/home/ude6/.python21_compiled/sc_2c6cc4f1f91a224f83f8465d7fb0b46a4.cpp:530:
impl
icit declaration of function `int convert_to_list(...)'
Traceback (most recent call last):
File "binary_search.py", line 161, in ?
search_compare(a,n)
File "binary_search.py", line 126, in search_compare
c_int_search(a,i)
File "binary_search.py", line 56, in c_int_search
return inline_tools.inline(code,['seq','t'],verbose = 2)
File "../inline_tools.py", line 321, in inline
auto_downcast = auto_downcast,
File "../inline_tools.py", line 415, in compile_function
verbose=verbose, **kw)
File "../ext_tools.py", line 349, in compile
verbose = verbose, **kw)
File "../build_tools.py", line 194, in build_extension
setup(name = module_name, ext_modules = [ext],verbose=verb)
File "/var/tmp/python-root//usr/lib/python2.1/distutils/core.py", line 157,
in
setup
build_tools.CompileError: error: command 'gcc' failed with exit status 1
Any suggestions???
Andreas Lorenz
More information about the SciPy-Dev
mailing list