[GRASS-dev] [GRASS GIS] #3759: Grass V.Krige/v.kriging add on install missing libraries

#3759: Grass V.Krige/v.kriging add on install missing libraries
-------------------------+-------------------------
Reporter: fanfanchart | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.6.1
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Hi,

When installing the add on v.krige and running it, the error message (see
below) indicates that

https://grass.osgeo.org/grass74/manuals/addons/
--> Windows log files
     --> vector/v.kriging FAILED log
        -->
http://wingrass.fsv.cvut.cz/grass74/x86/addons/latest/logs/v.kriging.log

" #error GRASS GIS is not configured with BLAS (la.h cannot be included)
"

This means that the LAPACK/BLAS numerical libraries are apparently not
installed/activated on the wingrass server on which the WinGRASS
addons are built.

see below:
https://trac.osgeo.org/grass/browser/grass/branches/releasebranch_7_4/mswindows/osgeo4w/package.sh#L168

for the compilation configuration of winGRASS:

168 LDFLAGS="-L$PWD/mswindows/osgeo4w/lib -lz" ./configure \
169 --host=$conf_host \
170 --with-libs="$PWD/mswindows/osgeo4w/lib "\
171 --with-includes=$OSGEO4W_ROOT_MSYS/include \
172 --libexecdir=$OSGEO4W_ROOT_MSYS/bin \
173 --prefix=$OSGEO4W_ROOT_MSYS/apps/grass \
174 --bindir=$OSGEO4W_ROOT_MSYS/bin \
175 --includedir=$OSGEO4W_ROOT_MSYS/include \
176 --without-x \
177 --with-cxx \
178 --enable-shared \
179 --enable-largefile \
180 --with-fftw \
181 --with-freetype \
182 --with-proj-share=$OSGEO4W_ROOT_MSYS/share/proj \
183 --with-gdal=$PWD/mswindows/osgeo4w/gdal-config \
184 --with-geos=$PWD/mswindows/osgeo4w/geos-config \
185 --with-sqlite \
186 --with-regex \
187 --with-nls \
188
--with-freetype-includes=$OSGEO4W_ROOT_MSYS/include/freetype2 \
189 --with-odbc \
190 --with-cairo \
191 --with-postgres \
192 --with-opengl=windows \
193 --with-bzlib $conf_opts

and see addon compilation log:
(https://wingrass.fsv.cvut.cz/grass77/x86_64/addons/grass-7.7.svn/logs/v.kriging.log)

"C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/la.h:17:2:
error: #error GRASS GIS is not configured with BLAS (la.h cannot be
included)
  #error GRASS GIS is not configured with BLAS (la.h cannot be included)
   ^
C:/msys64/usr/src/grass_trunk/dist.x86_64-w64-mingw32/include/grass/la.h:21:2:
error: #error GRASS GIS is not configured with LAPACK (la.h cannot be
included)
  #error GRASS GIS is not configured with LAPACK (la.h cannot be included)
   ^
In file included from geostat.c:1:0:
local_proto.h:24:2: warning: #warning G_matrix_product() not compiled;
requires GRASS GIS compiled and installed with BLAS library support
[-Wcpp]
  #warning G_matrix_product() not compiled; requires GRASS GIS compiled and
installed with BLAS library support"

open an enhancement ticket to include BLAS into winGRASS.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3759&gt;
GRASS GIS <https://grass.osgeo.org>

#3759: Grass V.Krige/v.kriging add on install missing libraries
--------------------------+-------------------------
  Reporter: fanfanchart | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords:
       CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Changes (by martinl):

* component: Default => Addons
* milestone: 7.6.1 =>

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3759#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>

#3759: v.kriging add on install missing BLAS libraries on Windows
--------------------------+----------------------------
  Reporter: fanfanchart | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords: v.kriging BLAS
       CPU: Unspecified | Platform: MSWindows
--------------------------+----------------------------
Changes (by marisn):

* keywords: => v.kriging BLAS
* platform: Unspecified => MSWindows

Comment:

This issue does not affect v.krige as it serves as a fronted for R.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3759#comment:2&gt;
GRASS GIS <https://grass.osgeo.org>

#3759: v.kriging add on install missing BLAS libraries on Windows
--------------------------+----------------------------
  Reporter: fanfanchart | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords: v.kriging BLAS
       CPU: Unspecified | Platform: MSWindows
--------------------------+----------------------------

Comment (by hellik):

Replying to [comment:1 martinl]:

[https://github.com/msys2/msys2/wiki/Packages msys2] (as building
environment) has following packages:

{{{
mingw/mingw-w64-openblas 0.3.0-1
An optimized BLAS library based on GotoBLAS2 1.13 BSD, providing optimized
blas, lapack, and cblas (mingw-w64)

mingw/mingw-w64-lapack 3.8.0-1
Linear Algebra PACKage (mingw-w64)
}}}

or including it in OSGeo4W as we need it then when running GRASSß

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3759#comment:3&gt;
GRASS GIS <https://grass.osgeo.org>

#3759: v.kriging add on install missing BLAS libraries on Windows
--------------------------+----------------------------
  Reporter: fanfanchart | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone:
Component: Addons | Version: unspecified
Resolution: | Keywords: v.kriging BLAS
       CPU: Unspecified | Platform: MSWindows
--------------------------+----------------------------

Comment (by hellik):

Replying to [comment:3 hellik]:
> Replying to [comment:1 martinl]:
>
> [https://github.com/msys2/msys2/wiki/Packages msys2] (as building
environment) has following packages:
>
> {{{
> mingw/mingw-w64-openblas 0.3.0-1
> An optimized BLAS library based on GotoBLAS2 1.13 BSD, providing
optimized blas, lapack, and cblas (mingw-w64)
>
> mingw/mingw-w64-lapack 3.8.0-1
> Linear Algebra PACKage (mingw-w64)
> }}}
>
> or including it in OSGeo4W as we need it then when running GRASSß

[https://icl.cs.utk.edu/lapack-for-windows/lapack/ lapack for windows]

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3759#comment:4&gt;
GRASS GIS <https://grass.osgeo.org>