Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libopenblas.a missing when installing sci-libs/openblas
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
meitnerium
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 77

PostPosted: Fri Jun 16, 2023 4:04 pm    Post subject: libopenblas.a missing when installing sci-libs/openblas Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 2117

PostPosted: Fri Jun 16, 2023 6:02 pm    Post subject: Reply with quote

Does it really need a static library from openblas? See bug 762670.
Back to top
View user's profile Send private message
meitnerium
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 77

PostPosted: Fri Jun 16, 2023 7:36 pm    Post subject: Reply with quote

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. :x
_________________
Voici la solution : http://www.perdu.com/
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10729
Location: Somewhere over Atlanta, Georgia

PostPosted: Fri Jun 16, 2023 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
meitnerium
Tux's lil' helper
Tux's lil' helper


Joined: 12 Feb 2003
Posts: 77

PostPosted: Sun Jun 18, 2023 1:08 pm    Post subject: Reply with quote

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.

Quote:

A good starting point for learning how to write Gentoo ebuilds is in this Gentoo Wiki article: Basic guide to write Gentoo Ebuilds.


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum