math/gmm++: gmm::SuperLU_solve() triggers an error (/usr/local/include/gmm/gmm_superlu_interface.h:198)

O. Hartmann ohartman at zedat.fu-berlin.de
Thu Jun 3 11:02:29 UTC 2010


Hello out there.

I try to compile the scientific planetary softwarepackage ISIS3 (from 
USGS) on a FreeBSD 8.1-BETA1/amd64 box. This task performed well prior 
to several ports-updates that ran into the repository last weeks. I do 
not know whether gmm++/superLU was one of them.

I receive the following error compiling 
src/base/objs/LeastSquares/LeastSquares.cpp (recent ISIS 3.2.0):

/usr/local/include/gmm/gmm_superlu_interface.h: In function 'void 
gmm::SuperLU_solve(const MAT&, const VECTX&, const VECTB&, double&, int) 
[with MAT = gmm::row_matrix<gmm::rsvector<double> >, VECTX = 
std::vector<double, std::allocator<double> >, VECTB = 
gmm::tab_ref_with_origin<__gnu_cxx: __normal_iterator<const double*, 
std::vector<double, std::allocator<double> > >, 
gmm::dense_matrix<double> >]':
LeastSquares.cpp:436:   instantiated from here
/usr/local/include/gmm/gmm_superlu_interface.h:198: error: invalid cast 
from type 'std::vector<unsigned int, std::allocator<unsigned int> >' to 
  ype 'int*'
/usr/local/include/gmm/gmm_superlu_interface.h:198: error: invalid cast 
from type 'std::vector<unsigned int, std::allocator<unsigned int> >' to 
  ype 'int*'
gmake[4]: *** [LeastSquares.o] Error 1

Well, my abilities in C++ are very little. Maybe there is something 
wrong in the LeastSquares.cpp-routine causing this error:

...
gmm::SuperLU_solve(Asquare,x,gmm::mat_const_col(bAtrans,0),recond,perm);
...

Can anyon help, please, or should I file a PR?
Please CC/email me directly, I'm not regular subscriber of the list.

Regards and thanks in advance,
Oliver


More information about the freebsd-ports mailing list