View previous topic :: View next topic |
Author |
Message |
meitnerium Tux's lil' helper
Joined: 12 Feb 2003 Posts: 77
|
Posted: Fri Jun 16, 2023 4:04 pm Post subject: libopenblas.a missing when installing sci-libs/openblas |
|
|
Hi,
I wanted to install a software named gamess on my gentoo server. The installation ask for location of libopenblas64.a or libopenblas.a file.
I installed sci-libs/openblas-0.3.21-r1::gentoo, but the libopenblas.a doesn't exist on my system. Do I have to symlink a file?
Thank you for your help _________________ Voici la solution : http://www.perdu.com/ |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2117
|
Posted: Fri Jun 16, 2023 6:02 pm Post subject: |
|
|
Does it really need a static library from openblas? See bug 762670. |
|
Back to top |
|
|
meitnerium Tux's lil' helper
Joined: 12 Feb 2003 Posts: 77
|
Posted: Fri Jun 16, 2023 7:36 pm Post subject: |
|
|
sam_ wrote: | Does it really require a static library from OpenBLAS? See bug 762670. |
Thank you for your reply. I have come across this bug. Unfortunately, the user mentioned an alternative installation method without providing further information.
The GAMESS installation script requests the location of either the libopenblas64.a or libopenblas.a file. Without the static file, the script will not function properly.
Perhaps the user utilized a different library such as ATLAS or MKL. I am currently attempting to install using MKL, but I am encountering other issues with the script. _________________ Voici la solution : http://www.perdu.com/ |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10729 Location: Somewhere over Atlanta, Georgia
|
Posted: Fri Jun 16, 2023 9:36 pm Post subject: |
|
|
The openblas ebuild does create the .a file: it's a necessary intermediary on the way to creating the .so file. So one Band-Aid for this problem is to emerge sci-libs/openblas with FEATURES="keepwork" and harvest the .a file. For example: Code: | FEATURES=keepwork emerge -v openblas
find /var/tmp/portage/sci-libs/openblas*/work -name 'libopenblas.a' | That'll give you a pathname to feed your manual install script for GAMESS. After that install is complete, the work directory can be safely removed: Code: | ebuild $(equery which openblas) clean | But the Gentoo way would be to create a modified ebuild for openblas that had a "static" USE flag that affects the src_install() phase to put the .a file into /usr/lib64. The modified ebuild would go into your local overlay (and would supercede the ebuild in the gentoo repo). That's where an ebuild for GAMESS would go as well.
A good starting point for learning how to write Gentoo ebuilds is in this Gentoo Wiki article: Basic guide to write Gentoo Ebuilds.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
meitnerium Tux's lil' helper
Joined: 12 Feb 2003 Posts: 77
|
Posted: Sun Jun 18, 2023 1:08 pm Post subject: |
|
|
Thank you, John, for your invaluable assistance. Following your insightful suggestion:
John R. Graham wrote: | So one Band-Aid for this problem is to emerge sci-libs/openblas with FEATURES="keepwork" and harvest the .a file. For example: Code: | FEATURES=keepwork emerge -v openblas
find /var/tmp/portage/sci-libs/openblas*/work -name 'libopenblas.a' |
|
I successfully compiled gamess using the provided instructions:
Code: |
FEATURES=keepwork emerge -v openblas
find /var/tmp/portage/sci-libs/openblas*/work -name 'libopenblas.a'
/var/tmp/portage/sci-libs/openblas-0.3.21-r1/work/OpenBLAS-0.3.21/libopenblas.a
mkdir /opt/lib
cp /var/tmp/portage/sci-libs/openblas-0.3.21-r1/work/OpenBLAS-0.3.21/libopenblas.a /opt/lib
|
Subsequently, by specifying the file location of libopenblas.a in the gamess installation script as "/opt/lib," the process proceeded flawlessly.
Although several users have already created ebuilds for gamess, the source code is consistently named gamess-current.tar.gz, regardless of the version, which complicates maintenance. Consequently, I prefer to perform a manual installation.
Once again, thank you for your invaluable assistance. _________________ Voici la solution : http://www.perdu.com/ |
|
Back to top |
|
|
|