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)

main.log (604.9 KB) - added by njeinstein 9 years ago.
Error log
installed_ports.txt (11.2 KB) - added by njeinstein 9 years ago.
Installed ports

Download all attachments as: .zip

Change History (9)

Changed 9 years ago by njeinstein

Attachment: main.log added

Error log

Changed 9 years ago by njeinstein

Attachment: installed_ports.txt added

Installed ports

comment:1 Changed 9 years ago by njeinstein

Cc: njeinstein@… added

Cc Me!

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Cc: njeinstein@… removed

As reporter, you do not need to Cc yourself.

comment:3 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: mojca@… added

Cc Me!

comment:4 Changed 8 years ago by mojca (Mojca Miklavec)

Cc: vince@… added
Version: 2.3.4

I tried the following change:

  • Portfile

     
    8484    --with-opengl=osx \
    8585    --with-opencl=yes \
    8686    --with-blas \
    87     --with-lapack=no \
     87    --without-lapack \
    8888    --with-readline \
    8989    --with-readline-includes=${prefix}/include/readline \
    9090    --with-readline-libs=${prefix}/lib \
     
    134134
    135135variant atlas description {Use Atlas for BLAS/LAPACK} {
    136136    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
    139140}
    140141
    141142livecheck.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: newclosed

OK, thank you. I'll close it then.

Note: See TracTickets for help on using tickets.