[MacPorts] #51366: grass7 @7.0.2 Configure error - unable to locate LAPACK lib
MacPorts
noreply at macports.org
Wed May 18 04:39:20 PDT 2016
#51366: grass7 @7.0.2 Configure error - unable to locate LAPACK lib
---------------------------+--------------------------------
Reporter: njeinstein@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: grass7 |
---------------------------+--------------------------------
Changes (by mojca@…):
* cc: vince@… (added)
* version: 2.3.4 =>
Comment:
I tried the following change:
{{{
#!patch
Index: Portfile
===================================================================
--- Portfile (revision 148791)
+++ Portfile (working copy)
@@ -84,7 +84,7 @@
--with-opengl=osx \
--with-opencl=yes \
--with-blas \
- --with-lapack=no \
+ --without-lapack \
--with-readline \
--with-readline-includes=${prefix}/include/readline \
--with-readline-libs=${prefix}/lib \
@@ -134,8 +134,9 @@
variant atlas description {Use Atlas for BLAS/LAPACK} {
depends_lib-append port:atlas
-# configure.args-append --with-libblas=${prefix}/lib/libtatlas.dylib
-# configure.args-append --with-
liblapack=${prefix}/lib/libtatlas.dylib
+ configure.args-replace --without-lapack --with-lapack
+ configure.args-append --with-lapack-includes=${prefix}/include
+ configure.args-append --with-lapack-libs=${prefix}/lib
}
livecheck.type regex
}}}
Please note that you then need to activate atlas:
{{{
sudo port -v configure grass7 +atlas
}}}
But it fails with the following test which I didn't investigate further:
{{{
configure:10856: checking for dsegv_
configure:10882: /usr/bin/clang -o conftest -pipe -Os -arch x86_64
-I/opt/local/include -L/opt/local/lib -L/opt/local/lib
-Wl,-headerpad_max_install_names -framework OpenCL -arch x86_64
conftest.c -lcblas -lf77blas -latlas 1>&5
Undefined symbols for architecture x86_64:
"_dsegv_", referenced from:
_main in conftest-wB0muu.o
}}}
Note that google "autocorrects" the search for `dsegv` into `dgesv`, so
this could be a typo in `configure.in` in grass7.
--
Ticket URL: <https://trac.macports.org/ticket/51366#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list