[SciPy-user] using with with blitz: errors

Evan Monroig evan.monroig at gmail.com
Sat Dec 31 00:52:13 CST 2005


Hi,

I am trying to use weave to speed up my code with inline c++ code, but 
I can't find any working sample.

I found a very simple one [1] to return the trace of a matrix, but 
I can't find how to incorporate the c++ code. I attached the compile 
errors. I also tried to remove the "type_converters" parameter in inline 
and change the array parentheses () into brackets [], then it compiles 
but gives wrong results...

I am running on Ubuntu with
python2.4-scipy-core=0.3.2-2ubuntu1
python2.4-scipy=0.3.2-3ubuntu2
python2.4-numeric=23.8-4
python2.4-numeric-ext=23.8-4
blitz++=1:0.8-4 (just in case)

gcc version is 4.0.2

Any ideas?

Evan

[1] http://amath.colorado.edu/faculty/fperez/python/weave_examples.html

ps: here is the code that I ran
----
import scipy
from weave import converters, inline

def trace(mat):
    """Return the trace of a matrix.
    """
    nrow,ncol = mat.shape
    code = \
""" 
double tr=0.0;

for(int i=0;i<nrow;++i)
    tr += mat(i,i);
return_val = tr;
"""
    return inline(code,['mat','nrow','ncol'],
                  type_converters = converters.blitz)

M = scipy.rand(3,3)
trace(M)
----
-------------- next part --------------
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:87: erreur: conflicting declaration ?round_toward_neg_infinity?
/usr/include/c++/4.0.2/limits:162: erreur: ?std::round_toward_neg_infinity? has a previous declaration as ?std::float_round_style std::round_toward_neg_infinity?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:90: erreur: multiple definition of ?enum std::float_denorm_style?
/usr/include/c++/4.0.2/limits:171: erreur: d?finition pr?c?dente ici
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:91: erreur: conflicting declaration ?denorm_indeterminate?
/usr/include/c++/4.0.2/limits:174: erreur: ?std::denorm_indeterminate? has a previous declaration as ?std::float_denorm_style std::denorm_indeterminate?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:92: erreur: conflicting declaration ?denorm_absent?
/usr/include/c++/4.0.2/limits:176: erreur: ?std::denorm_absent? has a previous declaration as ?std::float_denorm_style std::denorm_absent?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:93: erreur: conflicting declaration ?denorm_present?
/usr/include/c++/4.0.2/limits:178: erreur: ?std::denorm_present? has a previous declaration as ?std::float_denorm_style std::denorm_present?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:310: erreur: redefinition of ?class std::numeric_limits<_Tp>?
/usr/include/c++/4.0.2/limits:286: erreur: previous definition of ?class std::numeric_limits<_Tp>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:317: erreur: redefinition of ?class std::numeric_limits<bool>?
/usr/include/c++/4.0.2/limits:316: erreur: previous definition of ?class std::numeric_limits<bool>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:324: erreur: redefinition of ?class std::numeric_limits<char>?
/usr/include/c++/4.0.2/limits:370: erreur: previous definition of ?class std::numeric_limits<char>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:329: erreur: redefinition of ?class std::numeric_limits<signed char>?
/usr/include/c++/4.0.2/limits:421: erreur: previous definition of ?class std::numeric_limits<signed char>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:334: erreur: redefinition of ?class std::numeric_limits<unsigned char>?
/usr/include/c++/4.0.2/limits:472: erreur: previous definition of ?class std::numeric_limits<unsigned char>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:348: erreur: redefinition of ?class std::numeric_limits<short int>?
/usr/include/c++/4.0.2/limits:574: erreur: previous definition of ?class std::numeric_limits<short int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:353: erreur: redefinition of ?class std::numeric_limits<short unsigned int>?
/usr/include/c++/4.0.2/limits:625: erreur: previous definition of ?class std::numeric_limits<short unsigned int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:358: erreur: redefinition of ?class std::numeric_limits<int>?
/usr/include/c++/4.0.2/limits:676: erreur: previous definition of ?class std::numeric_limits<int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:363: erreur: redefinition of ?class std::numeric_limits<unsigned int>?
/usr/include/c++/4.0.2/limits:727: erreur: previous definition of ?class std::numeric_limits<unsigned int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:368: erreur: redefinition of ?class std::numeric_limits<long int>?
/usr/include/c++/4.0.2/limits:778: erreur: previous definition of ?class std::numeric_limits<long int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:373: erreur: redefinition of ?class std::numeric_limits<long unsigned int>?
/usr/include/c++/4.0.2/limits:829: erreur: previous definition of ?class std::numeric_limits<long unsigned int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:399: erreur: redefinition of ?class std::numeric_limits<float>?
/usr/include/c++/4.0.2/limits:982: erreur: previous definition of ?class std::numeric_limits<float>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:421: erreur: redefinition of ?class std::numeric_limits<double>?
/usr/include/c++/4.0.2/limits:1039: erreur: previous definition of ?class std::numeric_limits<double>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:443: erreur: redefinition of ?class std::numeric_limits<long double>?
/usr/include/c++/4.0.2/limits:1096: erreur: previous definition of ?class std::numeric_limits<long double>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h: In instantiation of ?blitz::SliceInfo<double, int, int, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection>?:
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:705:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur: ?blitz::ArraySectionInfo<int>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur:   trying to instantiate ?template<class T> T blitz::operator+(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur: ?blitz::ArraySectionInfo<int>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur:   trying to instantiate ?template<class T> T blitz::operator+(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur: ?blitz::ArraySectionInfo<int>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur:   trying to instantiate ?template<class T> T blitz::operator+(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h: In static member function ?static typename blitz::NumericTypeTraits<typename T_expr1::T_numtype>::T_sumtype blitz::_bz_meta_vectorProduct<N, I>::f(const T_expr1&) [with T_expr1 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:127:   instantiated from ?typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:520:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h: In static member function ?static typename blitz::NumericTypeTraits<typename T_expr1::T_numtype>::T_sumtype blitz::_bz_meta_vectorProduct<N, I>::f(const T_expr1&) [with T_expr1 = blitz::TinyVector<int, 2>, int N = 2, int I = 1]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111:   instantiated from ?static typename blitz::NumericTypeTraits<typename T_expr1::T_numtype>::T_sumtype blitz::_bz_meta_vectorProduct<N, I>::f(const T_expr1&) [with T_expr1 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:127:   instantiated from ?typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:520:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h: In static member function ?static typename blitz::promote_trait<typename T_expr1::T_numtype, typename T_expr2::T_numtype>::T_promote blitz::_bz_meta_vectorDot<N, I>::f(const T_expr1&, const T_expr2&) [with T_expr1 = blitz::TinyVector<int, 2>, T_expr2 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:106:   instantiated from ?typename blitz::promote_trait<T1_orig, T2_orig>::T_promote blitz::dot(const blitz::TinyVector<T_numtype1, N_length>&, const blitz::TinyVector<T_numtype2, N_length>&) [with T_numtype1 = int, T_numtype2 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:994:   instantiated from ?int blitz::Array<T, N>::dataOffset() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:998:   instantiated from ?const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.h:142:   instantiated from ?blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:970:   instantiated from ?blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:127:   instantiated from ?blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=(const blitz::Array<T, N>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.cc:352:   instantiated from ?blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:530:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h: In static member function ?static typename blitz::promote_trait<typename T_expr1::T_numtype, typename T_expr2::T_numtype>::T_promote blitz::_bz_meta_vectorDot<N, I>::f(const T_expr1&, const T_expr2&) [with T_expr1 = blitz::TinyVector<int, 2>, T_expr2 = blitz::TinyVector<int, 2>, int N = 2, int I = 1]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112:   instantiated from ?static typename blitz::promote_trait<typename T_expr1::T_numtype, typename T_expr2::T_numtype>::T_promote blitz::_bz_meta_vectorDot<N, I>::f(const T_expr1&, const T_expr2&) [with T_expr1 = blitz::TinyVector<int, 2>, T_expr2 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:106:   instantiated from ?typename blitz::promote_trait<T1_orig, T2_orig>::T_promote blitz::dot(const blitz::TinyVector<T_numtype1, N_length>&, const blitz::TinyVector<T_numtype2, N_length>&) [with T_numtype1 = int, T_numtype2 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:994:   instantiated from ?int blitz::Array<T, N>::dataOffset() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:998:   instantiated from ?const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.h:142:   instantiated from ?blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:970:   instantiated from ?blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:127:   instantiated from ?blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=(const blitz::Array<T, N>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.cc:352:   instantiated from ?blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:530:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
cc1plus: attention : l'option de la ligne de commande "-Wstrict-prototypes" est valide pour Ada/C/ObjC mais pas pour C++
Dans le fichier inclus ? partir de /usr/include/python2.4/Python.h:8,
          ? partir de /home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:4:
/usr/include/python2.4/pyconfig.h:835:1: attention : ? _POSIX_C_SOURCE ? red?fini
Dans le fichier inclus ? partir de /usr/include/c++/4.0.2/i486-linux-gnu/bits/os_defines.h:39,
          ? partir de /usr/include/c++/4.0.2/i486-linux-gnu/bits/c++config.h:35,
          ? partir de /usr/include/c++/4.0.2/string:44,
          ? partir de /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/blitz.h:153,
          ? partir de /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:154,
          ? partir de /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array.h:94,
          ? partir de /home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:3:
/usr/include/features.h:150:1: attention : ceci est la localisation d'une pr?c?dente d?finition
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:82: erreur: multiple definition of ?enum std::float_round_style?
/usr/include/c++/4.0.2/limits:156: erreur: d?finition pr?c?dente ici
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:83: erreur: conflicting declaration ?round_indeterminate?
/usr/include/c++/4.0.2/limits:158: erreur: ?std::round_indeterminate? has a previous declaration as ?std::float_round_style std::round_indeterminate?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:84: erreur: conflicting declaration ?round_toward_zero?
/usr/include/c++/4.0.2/limits:159: erreur: ?std::round_toward_zero? has a previous declaration as ?std::float_round_style std::round_toward_zero?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:85: erreur: conflicting declaration ?round_to_nearest?
/usr/include/c++/4.0.2/limits:160: erreur: ?std::round_to_nearest? has a previous declaration as ?std::float_round_style std::round_to_nearest?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:86: erreur: conflicting declaration ?round_toward_infinity?
/usr/include/c++/4.0.2/limits:161: erreur: ?std::round_toward_infinity? has a previous declaration as ?std::float_round_style std::round_toward_infinity?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:87: erreur: conflicting declaration ?round_toward_neg_infinity?
/usr/include/c++/4.0.2/limits:162: erreur: ?std::round_toward_neg_infinity? has a previous declaration as ?std::float_round_style std::round_toward_neg_infinity?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:90: erreur: multiple definition of ?enum std::float_denorm_style?
/usr/include/c++/4.0.2/limits:171: erreur: d?finition pr?c?dente ici
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:91: erreur: conflicting declaration ?denorm_indeterminate?
/usr/include/c++/4.0.2/limits:174: erreur: ?std::denorm_indeterminate? has a previous declaration as ?std::float_denorm_style std::denorm_indeterminate?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:92: erreur: conflicting declaration ?denorm_absent?
/usr/include/c++/4.0.2/limits:176: erreur: ?std::denorm_absent? has a previous declaration as ?std::float_denorm_style std::denorm_absent?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:93: erreur: conflicting declaration ?denorm_present?
/usr/include/c++/4.0.2/limits:178: erreur: ?std::denorm_present? has a previous declaration as ?std::float_denorm_style std::denorm_present?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:310: erreur: redefinition of ?class std::numeric_limits<_Tp>?
/usr/include/c++/4.0.2/limits:286: erreur: previous definition of ?class std::numeric_limits<_Tp>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:317: erreur: redefinition of ?class std::numeric_limits<bool>?
/usr/include/c++/4.0.2/limits:316: erreur: previous definition of ?class std::numeric_limits<bool>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:324: erreur: redefinition of ?class std::numeric_limits<char>?
/usr/include/c++/4.0.2/limits:370: erreur: previous definition of ?class std::numeric_limits<char>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:329: erreur: redefinition of ?class std::numeric_limits<signed char>?
/usr/include/c++/4.0.2/limits:421: erreur: previous definition of ?class std::numeric_limits<signed char>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:334: erreur: redefinition of ?class std::numeric_limits<unsigned char>?
/usr/include/c++/4.0.2/limits:472: erreur: previous definition of ?class std::numeric_limits<unsigned char>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:348: erreur: redefinition of ?class std::numeric_limits<short int>?
/usr/include/c++/4.0.2/limits:574: erreur: previous definition of ?class std::numeric_limits<short int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:353: erreur: redefinition of ?class std::numeric_limits<short unsigned int>?
/usr/include/c++/4.0.2/limits:625: erreur: previous definition of ?class std::numeric_limits<short unsigned int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:358: erreur: redefinition of ?class std::numeric_limits<int>?
/usr/include/c++/4.0.2/limits:676: erreur: previous definition of ?class std::numeric_limits<int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:363: erreur: redefinition of ?class std::numeric_limits<unsigned int>?
/usr/include/c++/4.0.2/limits:727: erreur: previous definition of ?class std::numeric_limits<unsigned int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:368: erreur: redefinition of ?class std::numeric_limits<long int>?
/usr/include/c++/4.0.2/limits:778: erreur: previous definition of ?class std::numeric_limits<long int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:373: erreur: redefinition of ?class std::numeric_limits<long unsigned int>?
/usr/include/c++/4.0.2/limits:829: erreur: previous definition of ?class std::numeric_limits<long unsigned int>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:399: erreur: redefinition of ?class std::numeric_limits<float>?
/usr/include/c++/4.0.2/limits:982: erreur: previous definition of ?class std::numeric_limits<float>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:421: erreur: redefinition of ?class std::numeric_limits<double>?
/usr/include/c++/4.0.2/limits:1039: erreur: previous definition of ?class std::numeric_limits<double>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/limits-hack.h:443: erreur: redefinition of ?class std::numeric_limits<long double>?
/usr/include/c++/4.0.2/limits:1096: erreur: previous definition of ?class std::numeric_limits<long double>?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h: In instantiation of ?blitz::SliceInfo<double, int, int, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection>?:
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:705:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur: ?blitz::ArraySectionInfo<int>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur:   trying to instantiate ?template<class T> T blitz::operator+(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur: ?blitz::ArraySectionInfo<int>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur:   trying to instantiate ?template<class T> T blitz::operator+(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur: ?blitz::ArraySectionInfo<int>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:137: erreur:   trying to instantiate ?template<class T> T blitz::operator+(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h: In static member function ?static typename blitz::NumericTypeTraits<typename T_expr1::T_numtype>::T_sumtype blitz::_bz_meta_vectorProduct<N, I>::f(const T_expr1&) [with T_expr1 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:127:   instantiated from ?typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:520:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h: In static member function ?static typename blitz::NumericTypeTraits<typename T_expr1::T_numtype>::T_sumtype blitz::_bz_meta_vectorProduct<N, I>::f(const T_expr1&) [with T_expr1 = blitz::TinyVector<int, 2>, int N = 2, int I = 1]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111:   instantiated from ?static typename blitz::NumericTypeTraits<typename T_expr1::T_numtype>::T_sumtype blitz::_bz_meta_vectorProduct<N, I>::f(const T_expr1&) [with T_expr1 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:127:   instantiated from ?typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:520:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur: ?blitz::_bz_meta_vectorProduct<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:111: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h: In static member function ?static typename blitz::promote_trait<typename T_expr1::T_numtype, typename T_expr2::T_numtype>::T_promote blitz::_bz_meta_vectorDot<N, I>::f(const T_expr1&, const T_expr2&) [with T_expr1 = blitz::TinyVector<int, 2>, T_expr2 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:106:   instantiated from ?typename blitz::promote_trait<T1_orig, T2_orig>::T_promote blitz::dot(const blitz::TinyVector<T_numtype1, N_length>&, const blitz::TinyVector<T_numtype2, N_length>&) [with T_numtype1 = int, T_numtype2 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:994:   instantiated from ?int blitz::Array<T, N>::dataOffset() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:998:   instantiated from ?const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.h:142:   instantiated from ?blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:970:   instantiated from ?blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:127:   instantiated from ?blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=(const blitz::Array<T, N>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.cc:352:   instantiated from ?blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:530:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 0>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h: In static member function ?static typename blitz::promote_trait<typename T_expr1::T_numtype, typename T_expr2::T_numtype>::T_promote blitz::_bz_meta_vectorDot<N, I>::f(const T_expr1&, const T_expr2&) [with T_expr1 = blitz::TinyVector<int, 2>, T_expr2 = blitz::TinyVector<int, 2>, int N = 2, int I = 1]?:
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112:   instantiated from ?static typename blitz::promote_trait<typename T_expr1::T_numtype, typename T_expr2::T_numtype>::T_promote blitz::_bz_meta_vectorDot<N, I>::f(const T_expr1&, const T_expr2&) [with T_expr1 = blitz::TinyVector<int, 2>, T_expr2 = blitz::TinyVector<int, 2>, int N = 2, int I = 0]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:106:   instantiated from ?typename blitz::promote_trait<T1_orig, T2_orig>::T_promote blitz::dot(const blitz::TinyVector<T_numtype1, N_length>&, const blitz::TinyVector<T_numtype2, N_length>&) [with T_numtype1 = int, T_numtype2 = int, int N_length = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:994:   instantiated from ?int blitz::Array<T, N>::dataOffset() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:998:   instantiated from ?const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.h:142:   instantiated from ?blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:970:   instantiated from ?blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:127:   instantiated from ?blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=(const blitz::Array<T, N>&) [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.cc:352:   instantiated from ?blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype = double, int N_rank = 2]?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:530:   instantiated from ?blitz::Array<T, N>::Array(P_numtype*, blitz::TinyVector<int, N_destRank>, blitz::TinyVector<int, N_destRank>, blitz::preexistingMemoryPolicy, blitz::GeneralArrayStorage<N_rank>) [with P_numtype = double, int N_rank = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:654:   instantiated from ?blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T = double, int N = 2]?
/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp:694:   instantiated from here
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur: ?blitz::_bz_meta_vectorDot<2, 1>::<anonymous enum>? is/uses anonymous type
/usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:112: erreur:   trying to instantiate ?template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)?
Traceback (most recent call last):
  File "weavetest.py", line 20, in ?
    trace(M)
  File "weavetest.py", line 17, in trace
    type_converters = converters.blitz)
  File "/usr/lib/python2.4/site-packages/weave/inline_tools.py", line 335, in inline
    auto_downcast = auto_downcast,
  File "/usr/lib/python2.4/site-packages/weave/inline_tools.py", line 439, in compile_function
    verbose=verbose, **kw)
  File "/usr/lib/python2.4/site-packages/weave/ext_tools.py", line 340, in compile
    verbose = verbose, **kw)
  File "/usr/lib/python2.4/site-packages/weave/build_tools.py", line 274, in build_extension
    setup(name = module_name, ext_modules = [ext],verbose=verb)
  File "/usr/lib/python2.4/site-packages/scipy_distutils/core.py", line 73, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python2.4/distutils/core.py", line 166, in setup
    raise SystemExit, "error: " + str(msg)
weave.build_tools.CompileError: error: Command "g++ -pthread -fno-strict-aliasing -DNDEBUG -g -O3 -Wstrict-prototypes -fPIC -I/usr/lib/python2.4/site-packages/weave -I/usr/lib/python2.4/site-packages/weave/scxx -I/usr/lib/python2.4/site-packages/weave/blitz-20001213 -I/usr/include/python2.4 -c /home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.cpp -o /tmp/evan/python24_intermediate/compiler_fcf4821de2ee87a8ad4d6579aeaebbc9/home/evan/.python24_compiled/sc_92b558abbb3baf45c5de2284178e42075.o" failed with exit status 1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20051231/84306a30/attachment-0001.bin


More information about the SciPy-user mailing list