[SciPy-dev] Problems using Weave

eric eric at scipy.org
Tue Jan 22 12:19:24 CST 2002


Thanks Andreas.


Looks like some lists escaped some of the changes that were made in the last
release.  I added the necessary macro definitions to cxx_info.py in the CVS.

I'll make new tar-balls and upload them to the web-site shortly.

eric

----- Original Message -----
From: "Andreas Lorenz" <andreas.frankfurt at gmx.de>
To: <scipy-dev at scipy.org>
Sent: Tuesday, January 22, 2002 1:15 PM
Subject: [SciPy-dev] Problems using Weave


> 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
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev
>





More information about the Scipy-dev mailing list