OSGeo / grass

GRASS GIS - free and open-source geospatial processing engine
https://grass.osgeo.org
Other
819 stars 301 forks source link

[Bug] Details: d.barscale: error while loading shared libraries: libmkl_rt.so.2: cannot open shared object file: No such file or directory #3992

Open mmokrejs opened 1 month ago

mmokrejs commented 1 month ago

Describe the bug

Somehow the grass-8.3.2 and 8.4.0RC1 fails to compile for me and complain about supposedly unresolved library. The problem is I do not know which binary is at the culprit. Nevertheless, the build process should exit, instead of continuing.

To reproduce

The build.log.txt.gz contains somewhere this stretch and many similar ones:

python3.10 -m py_compile /var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/gui/wxpython/wxgui.py
make /var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/gui/wxpython/xml/module_items.xml
make[4]: Entering directory '/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/gui/wxpython'
Generating interface description for all modules...
GISRC=/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/demolocation/.grassrc84 GISBASE=/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu PATH="/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/bin:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/bin:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/scripts:$PATH" PYTHONPATH="/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/etc/python:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/bin:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/bin:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/scripts:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/lib:/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/lib:/mnt/nocrypt/var/tmp/portage/portage/sci-biology/ngs-2.11.2/image/usr/ngs/ngs-sdk/lib64:" LC_ALL=C LANG=C LANGUAGE=C python3.10 tools/build_modules_xml.py > /var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/dist.x86_64-pc-linux-gnu/gui/wxpython/xml/module_items.xml
Cannot parse interface for module d.barscale. Empty strings will be placed instead of description and keywords. Reason: Unable to fetch interface description for command '<d.barscale>'.

Details: <d.barscale: error while loading shared libraries: libmkl_rt.so.2: cannot open shared object file: No such file or directory
>
Cannot parse interface for module d.colortable. Empty strings will be placed instead of description and keywords. Reason: Unable to fetch interface description for command '<d.colortable>'.

Details: <d.colortable: error while loading shared libraries: libmkl_rt.so.2: cannot open shared object file: No such file or directory
>
Cannot parse interface for module d.erase. Empty strings will be placed instead of description and keywords. Reason: Unable to fetch interface description for command '<d.erase>'.

Details: <d.erase: error while loading shared libraries: libmkl_rt.so.2: cannot open shared object file: No such file or directory
>
Cannot parse interface for module d.font. Empty strings will be placed instead of description and keywords. Reason: Unable to fetch interface description for command '<d.font>'.

Details: <d.font: error while loading shared libraries: libmkl_rt.so.2: cannot open shared object file: No such file or directory
>
Cannot parse interface for module d.fontlist. Empty strings will be placed instead of description and keywords. Reason: Unable to fetch interface description for command '<d.fontlist>'.

...

>
make[4]: Leaving directory '/var/tmp/portage/sci-geosciences/grass-8.4.0_rc1/work/grass-8.4.0RC1/gui/wxpython'

System description

error.log.txt

neteler commented 1 month ago

Which operating system are you using?

mmokrejs commented 1 month ago

Gentoo Linux

mmokrejs commented 1 month ago

I got around the error while loading shared libraries: libmkl_rt.so.2: cannot open shared object file: No such file or directory by switching lapack from Intel MKL implementation to reference. The point is that the build system ignores the error and just continues.

marisn commented 1 month ago

Please double check that there is no problem with your environment (did eselect worked correctly?). I just installed Intel MKL on a Debian machine, compiled GRASS with BLAS/LAPACK enabled and was able to run r3.gwflow. According to the output of ldd, it was using libmkl_rt.so. Thus either disable BLAS/LAPACK (and lose some r3.* modules) or look for a misconfiguration in your environment.