Opened 9 years ago
Closed 5 years ago
#51366 closed defect (worksforme)
grass7 @7.0.2 Configure error - unable to locate LAPACK lib
Reported by: | njeinstein | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | mojca (Mojca Miklavec), Veence (Vincent) | |
Port: | grass7 |
Description
When trying to install GRASS7, I run into the configuration error, "Unable to locate LAPACK library." I've tried manually uninstalling and reinstalling LAPACK (3.6.0_1), which itself installs without hitch.
I'm running El Capitan (v 10.11.4), and have Xcode version 7.3.1.
Please see attached log file and list of currently-installed ports.
Thanks!
Attachments (2)
Change History (9)
Changed 9 years ago by njeinstein
comment:2 Changed 9 years ago by mf2k (Frank Schima)
Cc: | njeinstein@… removed |
---|
As reporter, you do not need to Cc yourself.
comment:4 Changed 8 years ago by mojca (Mojca Miklavec)
Cc: | vince@… added |
---|---|
Version: | 2.3.4 |
I tried the following change:
-
Portfile
84 84 --with-opengl=osx \ 85 85 --with-opencl=yes \ 86 86 --with-blas \ 87 --with -lapack=no\87 --without-lapack \ 88 88 --with-readline \ 89 89 --with-readline-includes=${prefix}/include/readline \ 90 90 --with-readline-libs=${prefix}/lib \ … … 134 134 135 135 variant atlas description {Use Atlas for BLAS/LAPACK} { 136 136 depends_lib-append port:atlas 137 # configure.args-append --with-libblas=${prefix}/lib/libtatlas.dylib 138 # configure.args-append --with-liblapack=${prefix}/lib/libtatlas.dylib 137 configure.args-replace --without-lapack --with-lapack 138 configure.args-append --with-lapack-includes=${prefix}/include 139 configure.args-append --with-lapack-libs=${prefix}/lib 139 140 } 140 141 141 142 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.
comment:5 Changed 5 years ago by mf2k (Frank Schima)
Is this still a problem in the current version (7.8.3)?
comment:6 Changed 5 years ago by nilason (Nicklas Larsson)
I think not. If I understand the reported issue correct it is based on +atlas
variant which was replaced with +openblas
:
https://github.com/macports/macports-ports/commit/216ccac434fb61d04a79762b82d3059c96d75c63
Compiling with openblas went fine:
$ port installed ... grass7 @7.8.3_0+gui+openblas+postgresql10+python37+zstd (active) ...
comment:7 Changed 5 years ago by mf2k (Frank Schima)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
OK, thank you. I'll close it then.
Error log