[GRASS-user] Building 8.2.1: not finding OpenBLASS

I'm trying to build 8.2.1 on Slackware64-15.0. My configuration file is:
./configure \
--enable-64bit \
--with-libs=/usr/lib64 \
--with-postgres \
--with-postgres-includes=/usr/include/postgresql/server/ \
--with-postgres-libs=/usr/lib64/postgresql/14/lib/ \
--with-sqlite \
--with-sqlite-includes=/usr/include/ \
--with-sqlite-libs=/usr/lib/ \
--with-cairo \
--with-blas \
--with-lapack \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2 \
--with-cxx \
--with-geos \
--with-gdal \
--with-nls \
--with-python3 \
--with-pthread \
--with-proj-share=/usr/share/proj \
--with-wxwidgets \
--enable-largefile \
--with-openmp \
--with-x \
--with-pdal=/usr/bin/pdal \
--with-libLAS

After checking for needed components the script stops telling me it cannot
locate a BLAS library.

Here:
# ls /usr/lib64 | grep blas
libgslcblas.so@
libgslcblas.so.0@
libgslcblas.so.0.0.0*
liblas.so@
liblas.so.2.4.0*
liblas.so.3@
liblas_c.so@
liblas_c.so.2.4.0*
liblas_c.so.3@
liblaszip.so@
liblaszip.so.6@
liblaszip.so.6.0.0*
libopenblas.so@
libopenblas.so.0@
libopenblasp-r0.3.12.so*

What have I done incorrectly?

TIA,

Rich

Rich,

On Wed, Apr 26, 2023 at 12:20 AM Rich Shepard <rshepard@appl-ecosys.com> wrote:

I'm trying to build 8.2.1 on Slackware64-15.0. My configuration file is:
./configure \
--enable-64bit \
--with-libs=/usr/lib64 \
--with-postgres \
--with-postgres-includes=/usr/include/postgresql/server/ \
--with-postgres-libs=/usr/lib64/postgresql/14/lib/ \
--with-sqlite \
--with-sqlite-includes=/usr/include/ \
--with-sqlite-libs=/usr/lib/ \
--with-cairo \
--with-blas \
--with-lapack \
--with-freetype \
--with-freetype-includes=/usr/include/freetype2 \
--with-cxx \
--with-geos \
--with-gdal \
--with-nls \
--with-python3 \
--with-pthread \
--with-proj-share=/usr/share/proj \
--with-wxwidgets \
--enable-largefile \
--with-openmp \
--with-x \
--with-pdal=/usr/bin/pdal \
--with-libLAS

After checking for needed components the script stops telling me it cannot
locate a BLAS library.

Please check "config.log" for the error message.

Markus

Rich,

I cannot find any support for OpenBLAS in configure. Maybe, you can try symlinking libopenblas.so to libblas.so. I use Slackware64-15 too, but I just use BLAS.

Thanks,
Huidae


Huidae Cho, Ph.D., GISP
GRASS GIS Developer
https://idea.isnew.info/
Sent from my phone

On Tue, Apr 25, 2023, 4:44 PM Markus Neteler <neteler@osgeo.org> wrote:

Rich,

On Wed, Apr 26, 2023 at 12:20 AM Rich Shepard <rshepard@appl-ecosys.com> wrote:

I’m trying to build 8.2.1 on Slackware64-15.0. My configuration file is:
./configure
–enable-64bit
–with-libs=/usr/lib64
–with-postgres
–with-postgres-includes=/usr/include/postgresql/server/
–with-postgres-libs=/usr/lib64/postgresql/14/lib/
–with-sqlite
–with-sqlite-includes=/usr/include/
–with-sqlite-libs=/usr/lib/
–with-cairo
–with-blas
–with-lapack
–with-freetype
–with-freetype-includes=/usr/include/freetype2
–with-cxx
–with-geos
–with-gdal
–with-nls
–with-python3
–with-pthread
–with-proj-share=/usr/share/proj
–with-wxwidgets
–enable-largefile
–with-openmp
–with-x
–with-pdal=/usr/bin/pdal
–with-libLAS

After checking for needed components the script stops telling me it cannot
locate a BLAS library.

Please check “config.log” for the error message.

Markus


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

On Wed, 26 Apr 2023, Markus Neteler wrote:

Please check "config.log" for the error message.

Markus,

My apologies. I've not had a project needing grass over the past few years
so I forgot about it.

The file's attached. It shows the usual errors and warnings I've seen when I
was grabbing the development builds (can't find those now), and BLAS begins
on line 3347. I don't see why configure can't find lblas, but I don't know
the code.

Thanks,

Rich

(attachments)

config.log (121 KB)

On Tue, 25 Apr 2023, Huidae Cho wrote:

I cannot find any support for OpenBLAS in configure. Maybe, you can try
symlinking libopenblas.so to libblas.so. I use Slackware64-15 too, but I
just use BLAS.

Huidae,

I thought that the line, `--with-blas` included OpenBLAS.

I chose OpenBLAS because the SBo SlackBuild page for grass (for a long
out-of-date 7.8.0; the maintainer hasn't responded to my request for an
update) says that OpenBLAS is optimized and includes LAPACK.

Regards,

Rich

Rich,

Checking the OpenBLAS package from http://www.slackware.com/~alien/slackbuilds/OpenBLAS/pkg64/15.0/, I think your OpenBLAS installation is somehow broken. doinst.sh should create symlinks for you automatically on installation, but you don’t have them in /usr/lib64 based on your grep. Maybe, you can try reinstalling it and see if you get /usr/lib64/libblas.so then. GRASS’s configure only checks for libblas.so, so it won’t be able to pick up libopenblas.so as is. The easiest fix would be just download the package and install it using installpkg. http://www.slackware.com/~alien/slackbuilds/OpenBLAS/pkg64/15.0/OpenBLAS-0.3.12-x86_64-1alien.txz

Yeah, unfortunately, SlackBuild for GRASS is still 7.8.0. Maybe, it’s no longer maintained if the maintainer hasn’t responded.

Thanks,
Huidae

On Tue, Apr 25, 2023 at 5:11 PM Rich Shepard <rshepard@appl-ecosys.com> wrote:

On Tue, 25 Apr 2023, Huidae Cho wrote:

I cannot find any support for OpenBLAS in configure. Maybe, you can try
symlinking libopenblas.so to libblas.so. I use Slackware64-15 too, but I
just use BLAS.

Huidae,

I thought that the line, --with-blas included OpenBLAS.

I chose OpenBLAS because the SBo SlackBuild page for grass (for a long
out-of-date 7.8.0; the maintainer hasn’t responded to my request for an
update) says that OpenBLAS is optimized and includes LAPACK.

Regards,

Rich


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Huidae Cho, Ph.D., GISP, /hidɛ t͡ɕo/, 조희대, 曺喜大
GRASS GIS Developer
https://idea.isnew.info/

On Tue, 25 Apr 2023, Huidae Cho wrote:

Checking the OpenBLAS package from
http://www.slackware.com/~alien/slackbuilds/OpenBLAS/pkg64/15.0/, I think
your OpenBLAS installation is somehow broken.

Hĭdae,

Okay. I'll remove the existing SBo OpenBLAS and replace it with ALIEN Bob's
package.

Results to follow.

Thanks,

Rich

On Tue, 25 Apr 2023, Huidae Cho wrote:

The easiest fix would be just download the package and install it using
installpkg.
http://www.slackware.com/~alien/slackbuilds/OpenBLAS/pkg64/15.0/OpenBLAS-0.3.12-x86_64-1alien.txz

Huidae,

That fixed the problem. The source configured, built, and installed as it
had always done in the past.

For the past many years I had a copy of the git repo and would pull changes
when I prepared to run grass and rebuilt and reinstalled from a clean source
tree.

I looked at the Download page on the web site but didn't see the dev source
github repo URL in the source code portion. Does one still exist? If so,
I'll make a new clone of it and continue working with the current source and
reporting issues in the infrequent times they bite me.

Thanks again,

Rich

Rich,

If you have used the Git repo before, the URL should be the same: https://github.com/OSGeo/grass

Thanks,
Huidae

···

Huidae Cho, Ph.D., GISP, /hidɛ t͡ɕo/, 조희대, 曺喜大
GRASS GIS Developer
https://idea.isnew.info/