From: Todd V. <tve...@ex...> - 2001-01-26 23:16:14
|
Hi Thorsten, The problem with DECcxx is a known bug in the EDG front end. Use make -k and ignore the failed parts of the testsuite. Blitz should still be usable but not reductions. The problem with gcc might be fixed by using the gnu binutils; see README.binutils. Cheers, Todd Thorsten Steube wrote: > > > Hi, > > I have some problems compiling the Blitz++ test suite files. I used > both the DECcxx and GNU gcc compiler but both failed (on different > sources). > Can someone please help me. I'm sure it's only a stupid mistake > (especially with the gcc). > > > Here is the compiler output: > > > 1) DIGITAL C++ V6.1-027 on DIGITAL UNIX V4.0 (Rev. 1229) > compiling /minsumpow.cpp > > ---------------------------------------------- > cxx -I./.. -DBZ_DISABLE_XOPEN_SOURCE -g -msg_display_tag -DBZ_DEBUG -c ./minsumpow.cpp > cxx: Error: ./minsumpow.cpp, line 20: template instantiation resulted in > unexpected function type of > "blitz::ReduceMaxIndexVector<blitz::_bz_ArrayExprReduce<blitz::_bz_Ar > rayExpr<blitz::_bz_ArrayExprUnaryOp<blitz::FastArrayIterator<blitz::A > rray<float, 2>::T_numtype, 2>, blitz::_bz_pow2<float>>>, 1, > blitz::ReduceSum<float, double>>::T_numtype, 1>::T_resulttype > (blitz::_bz_ArrayExpr<blitz::_bz_ArrayExprReduce<blitz::_bz_ArrayExpr > <blitz::_bz_ArrayExprUnaryOp<blitz::FastArrayIterator<blitz::Array<fl > oat, 2>::T_numtype, 2>, blitz::_bz_pow2<float>>>, 1, > blitz::ReduceSum<float, double>>>)" (the meaning of a name may have > changed since the template declaration -- the type of the template > is "blitz::ReduceMaxIndexVector<T_expr::T_numtype, > (int)T_expr::rank>::T_resulttype (blitz::_bz_ArrayExpr<P_expr>)") > (badtypfrominst) > detected during instantiation of "blitz::maxIndex" based on template > argument > <blitz::_bz_ArrayExprReduce<blitz::_bz_ArrayExpr<blitz::_bz > _ArrayExprUnaryOp<blitz::FastArrayIterator<blitz::Array<flo > at, 2>::T_numtype, 2>, blitz::_bz_pow2<float>>>, 1, > blitz::ReduceSum<float, double>>> at line 20 > TinyVector<int,1> N = maxIndex(sum(pow2(A),j)); > --------------------------------------------------^ > cxx: Error: ./../blitz/array/reduce.h, line 332: extern inline > function "blitz::maxIndex(blitz::_bz_ArrayExpr<P_expr>) [with > T_expr=blitz::_bz_ArrayExprReduce<blitz::_bz_ArrayExpr<blitz::_bz_Arr > ayExprUnaryOp<blitz::FastArrayIterator<blitz::Array<float, > 2>::T_numtype, 2>, blitz::_bz_pow2<float>>>, 1, > blitz::ReduceSum<float, double>>]" was referenced but not defined > (extinlnevdef) > BZ_DECL_ARRAY_FULL_REDUCE_INDEXVECTOR(maxIndex, ReduceMaxIndexVector) > ^ > cxx: Info: 2 errors detected in the compilation of "./minsumpow.cpp". > *** Exit 1 > Stop. > *** Exit 1 > Stop. > > --------------------------------------------------------- > -------------------------------------------------------- > > and a part of the gcc compiler output: > > 2) gcc 2.95.2 > > --------------------- > g++ -I./.. -ftemplate-depth-30 -g -DBZ_DEBUG -c ./wei-ku-1.cpp > as0: Warning: ./wei-ku-1.cpp, line 6: Line too long > mov $1,$1815)ZiZQ25blitzt16IndexPlaceholder1i3__5blitzRCX01RCQ25blitzt6ETBase1ZX11_Q25blitzt13_bz_ArrayExpr1ZQ25blitzt15_bz_ArrayExprOp3ZQ35blitzt6asExpr1ZX016T_exprZQ35blitzt6asExpr1ZX116T_exprZQ25blitzt8Multiply2ZQ45blitzt6asExpr1ZX016T_expr9T_numtypeZQ45blitzt6asExpr1ZX116T_expr9T_numtypeZiZQ25blitzt13_bz_ArrayExpr1ZQ25blitzt15_bz_ArrayExprOp3ZQ25blitzt21_bz_ArrayExprConstant1ZiZQ25blitzt16IndexPlaceholder1i1ZQ25blitzt8Multiply2ZiZiZQ25blitzt3Add2ZiZiZQ25blitzt13_bz_ArrayExpr1ZQ25blitzt15_bz_ArrayExprOp3ZQ25blitzt21_bz_ArrayExprConstant1ZiZQ25blitzt16IndexPlaceholder1i2ZQ25blitzt8Multiply2ZiZi_5blitzRCQ25blitzt13_bz_ArrayExpr1ZX01RCX11_Q25blitzt13_bz_ArrayExpr1ZQ25blitzt15_bz_ArrayExprOp3ZQ25blitzt13_bz_ArrayExpr1ZX01ZQ35blitzt6asExpr1ZX116T_exprZQ25blitzt3Add2ZQ2X019T_numtypeZQ45blitzt6asExpr1ZX116T_expr9T_numtype > > ... > as0: Warning: ./wei-ku-1.cpp, line 6: .ent/.end block never defined the > procedure name > ... > > repeated several times > > *** Exit 1 > Stop. > > ----------------------------- > > --------------------- blitz-support list -------------------------------- > * To subscribe/unsubscribe: use the handy web form at > http://oonumerics.org/blitz/lists.html > > -- Todd Veldhuizen tve...@ac... Indiana Univ. Comp. Sci. http://extreme.indiana.edu/~tveldhui/ --------------------- blitz-support list -------------------------------- * To subscribe/unsubscribe: use the handy web form at http://oonumerics.org/blitz/lists.html |