From: Ryan K. <rya...@gm...> - 2005-10-18 17:18:45
|
I am trying to use Blitz through the scipy weave interface and am having problems with gcc/g++4.0. I have installed Blitz++0.9. Weave is a way to write C++ code inline with python code to make python faster. An example that comes with weave and uses blitz works fine on ubuntu hoary 5.04 which uses gcc/g++3.3, but when I upgraded to ubuntu breezy 5.10 (which uses gcc/g++4.0) I get the following error while trying to run the example: ryan@ubuntu:/usr/lib/python2.4/site-packages/weave/examples$ python cast_copy_transpose.py Cast/Copy/Transposing (500,500)array 1 times speed in python: 18.8547210693 <weave: compiling> Compiling code... cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h: In instantiation of 'blitz::SliceInfo<float, int, int, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection>': /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:711: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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: 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/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:711: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:68: instantiated from 'typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:40= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:= 49: error: '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:= 49: error: 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:= 49: error: '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:= 49: error: 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 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 1]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:= 49: 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 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:68: instantiated from 'typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:40= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:= 49: error: '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:= 49: error: 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:= 49: error: '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:= 49: error: 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 =3D blitz::TinyVector<int, 2>, T_expr2 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:47: 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 =3D int, T_numtype2 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 5: instantiated from 'int blitz::Array<T, N>::dataOffset() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 9: instantiated from 'const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.= h:68: instantiated from 'blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:86= 1: instantiated from 'blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:60= : instantiated from 'blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=3D(const blitz::Array<T, N>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.c= c:271: instantiated from 'blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:41= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:50: error: '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:50: error: 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:50: error: '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:50: error: 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 =3D blitz::TinyVector<int, 2>, T_expr2 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 1]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:50: 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 =3D blitz::TinyVector<int, 2>, T_expr2 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:47: 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 =3D int, T_numtype2 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 5: instantiated from 'int blitz::Array<T, N>::dataOffset() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 9: instantiated from 'const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.= h:68: instantiated from 'blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:86= 1: instantiated from 'blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:60= : instantiated from 'blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=3D(const blitz::Array<T, N>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.c= c:271: instantiated from 'blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:41= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:50: error: '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:50: error: 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:50: error: '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:50: error: trying to instantiate 'template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)' cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h: In instantiation of 'blitz::SliceInfo<float, int, int, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection, blitz::nilArraySection>': /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:711: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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: 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/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:711: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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:7= 2: error: 'blitz::ArraySectionInfo<int>::<anonymous enum>' is/uses anonymous type /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/slice.h:7= 2: error: 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 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:68: instantiated from 'typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:40= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:= 49: error: '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:= 49: error: 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:= 49: error: '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:= 49: error: 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 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 1]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:= 49: 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 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:68: instantiated from 'typename blitz::NumericTypeTraits<P_numtype>::T_sumtype blitz::product(const blitz::TinyVector<P_numtype, N_length>&) [with T_numtype1 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:40= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/product.h:= 49: error: '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:= 49: error: 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:= 49: error: '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:= 49: error: 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 =3D blitz::TinyVector<int, 2>, T_expr2 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:47: 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 =3D int, T_numtype2 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 5: instantiated from 'int blitz::Array<T, N>::dataOffset() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 9: instantiated from 'const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.= h:68: instantiated from 'blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:86= 1: instantiated from 'blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:60= : instantiated from 'blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=3D(const blitz::Array<T, N>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.c= c:271: instantiated from 'blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:41= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:50: error: '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:50: error: 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:50: error: '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:50: error: 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 =3D blitz::TinyVector<int, 2>, T_expr2 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 1]': /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:50: 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 =3D blitz::TinyVector<int, 2>, T_expr2 =3D blitz::TinyVector<int, 2>, int N =3D 2, int I =3D 0]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/tvecglobs.h:47: 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 =3D int, T_numtype2 =3D int, int N_length =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 5: instantiated from 'int blitz::Array<T, N>::dataOffset() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:88= 9: instantiated from 'const P_numtype* __restrict__ blitz::Array<T, N>::data() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/fastiter.= h:68: instantiated from 'blitz::FastArrayIterator<T_numtype, N_rank>::FastArrayIterator(const blitz::Array<P_numtype, N_rank>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:86= 1: instantiated from 'blitz::FastArrayIterator<P_numtype, N_rank> blitz::Array<T, N>::beginFast() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/ops.cc:60= : instantiated from 'blitz::Array<P_numtype, N_rank>& blitz::Array<T, N>::operator=3D(const blitz::Array<T, N>&) [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array/methods.c= c:271: instantiated from 'blitz::Array<P_numtype, N_rank> blitz::Array<T, N>::copy() const [with P_numtype =3D float, int N_rank =3D 2]' /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/array-impl.h:41= 5: 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 =3D float, int N_rank =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:657: instantiated from 'blitz::Array<P_numtype, N_rank> convert_to_blitz(PyArrayObject*, const char*) [with T =3D float, int N =3D 2]' /home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp:699: instantiated from here /usr/lib/python2.4/site-packages/weave/blitz-20001213/blitz/meta/dot.h:50: error: '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:50: error: 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:50: error: '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:50: error: trying to instantiate 'template<class T> T blitz::operator*(const T&, blitz::_bz_meta_nullOperand)' Traceback (most recent call last): File "cast_copy_transpose.py", line 182, in ? compare(m,n) File "cast_copy_transpose.py", line 151, in compare b =3D cast_copy_transpose(type,a) File "cast_copy_transpose.py", line 97, in cast_copy_transpose results.append(_cast_copy_transpose(type,a)) File "cast_copy_transpose.py", line 36, in _cast_copy_transpose verbose =3D 1) File "../inline_tools.py", line 334, in inline auto_downcast =3D auto_downcast, File "../inline_tools.py", line 442, in compile_function verbose=3Dverbose, **kw) File "../ext_tools.py", line 353, in compile verbose =3D verbose, **kw) File "../build_tools.py", line 274, in build_extension setup(name =3D module_name, ext_modules =3D [ext],verbose=3Dverb) 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) 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/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.cpp -o /tmp/ryan/python24_intermediate/compiler_fcf4821de2ee87a8ad4d6579aeaebbc= 9/home/ryan/.python24_compiled/sc_5c49e1c55613478ab053d801e80379680.o" failed with exit status 1 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Can anyone help me with this? Thanks, Ryan |