Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jun 2010 13:02:29 +0200
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-ports@FreeBSD.org
Subject:   math/gmm++: gmm::SuperLU_solve() triggers an error (/usr/local/include/gmm/gmm_superlu_interface.h:198)
Message-ID:  <4C078BC5.5040504@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C078BC5.5040504>