Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 this issue Jul 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@mmokrejs
Copy link

mmokrejs commented Jul 6, 2024

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

@mmokrejs mmokrejs added the bug Something isn't working label Jul 6, 2024
@neteler
Copy link
Member

neteler commented Jul 7, 2024

Which operating system are you using?

@mmokrejs
Copy link
Author

mmokrejs commented Jul 7, 2024

Gentoo Linux

@mmokrejs
Copy link
Author

mmokrejs commented Jul 7, 2024

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
Copy link
Contributor

marisn commented Jul 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants