Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2018 06:42:56 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Rainer Hurling <rhurlin@gwdg.de>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: math/suitesparse is broken
Message-ID:  <20180501134256.GA25793@troutmask.apl.washington.edu>
In-Reply-To: <7c29e5ba-a0b2-85f5-1aec-80487664aed6@gwdg.de>
References:  <20180501034022.GA25448@troutmask.apl.washington.edu> <7c29e5ba-a0b2-85f5-1aec-80487664aed6@gwdg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, May 01, 2018 at 08:39:42AM +0200, Rainer Hurling wrote:
> Am 01.05.2018 um 05:40 schrieb Steve Kargl:
> > Can someone fix math/suitesparse?
> > 
> > % make config
> >   <Select Netlib BLAS>
> > 
> > % make 
> > ...
> > 
> > h/suitesparse/work/SuiteSparse/lib/libcholmod.so.3.0.12 -lm -lamd -lcolamd -lsuitesparseconfig -lccolamd -lcamd -L/usr/local/lib -lmetis  -Wl,-rpath=/usr/local/lib/gcc7  -L/usr/local/lib/gcc7 -B/usr/local/bin -L/usr/local/lib -fstack-protector -Wl,-rpath=/usr/local/lib/gcc7 -L/usr/local/lib/gcc7 -llapack -lopenblas
> > /usr/local/bin/ld: cannot find -lopenblas
> > collect2: error: ld returned 1 exit status
> > gmake[5]: *** [Makefile:544: /usr/ports/math/suitesparse/work/SuiteSparse/lib/libcholmod.so.3.0.12] Error 1
> > gmake[5]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse/CHOLMOD/Lib'
> > gmake[4]: *** [Makefile:31: library] Error 2
> > gmake[4]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse/CHOLMOD/Lib'
> > gmake[3]: *** [Makefile:14: all] Error 2
> > gmake[3]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse/CHOLMOD'
> > gmake[2]: *** [Makefile:21: go] Error 2
> > gmake[2]: Leaving directory '/usr/ports/math/suitesparse/work/SuiteSparse'
> > *** Error code 2
> > 
> > openblas is not Netlib BLAS.
> > 
> 
> Hi Steve,
> 
> For this error it should be sufficient to deinstall the old port.
> before you build and install the new one. In some cases, there are
> further breaks [1].
> 

It is uninstalled.  Transitioning from perl 5.24 to 5.26 caused
numerous ports to be deleted.  I've looked at the files in
math/suitesparse/work.  This port now requires openblas as there
is a hardcoded -lopenblas in one of its *.mk files or one needs
to manually edit *.mk.

% cd work
% find . -type f | xargs grep lopenblas
% nedit ./SuiteSparse_shared/SuiteSparse_config/SuiteSparse_config.mk
% cd ..
% make
% make install

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow



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