Bug 1222079

Summary: Please install libcblas.a
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: atlasAssignee: Frantisek Kluknavsky <fkluknav>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: c.david86, dakingun, davids, fkluknav
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-20 14:33:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Škarvada 2015-05-15 17:15:01 UTC
Description of problem:
The libcblas.a is built, but not installed. Please install it. The header for cblas is already in the devel package, but it is unusable if there is no cblas library.

Version-Release number of selected component (if applicable):
atlas-3.10.2-1.fc23

How reproducible:
Always

Steps to Reproduce:
1. Check buildlog for libcblas.a
2. Check resultin RPMs for libcblas.a

Actual results:
libcblas is built but not packed to the RPM

Expected results:
libcblas is packed in the RPM

Additional info:

Comment 1 Jaroslav Škarvada 2015-05-15 17:15:54 UTC
It's blocking building of the hpl package on secondary arches.

Comment 2 Jaroslav Škarvada 2015-05-15 17:26:34 UTC
Also isn't possible to built the libs as shared?

Comment 3 Frantisek Kluknavsky 2015-05-19 15:53:21 UTC
Shared lib is built and shipped as customary in Fedora. Build log for x86_64 (https://kojipkgs.fedoraproject.org//packages/atlas/3.10.2/1.fc23/data/logs/x86_64/build.log) says:

"""
/usr/bin/gcc  -g -Wa,--noexecstack -fPIC -m64 -shared -o libsatlas.so.3.10  \
           \
           -Wl,-soname,"libsatlas.so.3" \
           -Wl,--whole-archive liblapack.a libf77blas.a libcblas.a libatlas.a /builddir/build/BUILD/ATLAS/liblapack_pic_pruned.a -Wl,--no-whole-archive -L/usr/lib/gcc/x86_64-redhat-linux/5.1.1 -lgfortran  -lc -lpthread -lm -lgcc
"""

Latest upstream decision is to link everything together and create only one big library to simplify linking. Actually there are two in Fedora, one single-threaded and one multithreaded, choose one (choose single-threaded if I can suggest).

You are right, atlas-static subpackage is useless with libcblas and other libraries missing.

Comment 4 Jaroslav Škarvada 2015-05-19 19:47:29 UTC
(In reply to Frantisek Kluknavsky from comment #3)
Thanks for info, I used libsatlas.so fallback on ARM.

Comment 5 Frantisek Kluknavsky 2015-05-20 14:33:21 UTC
http://koji.fedoraproject.org/koji/taskinfo?taskID=9805910
Included single-threaded interfaces.

Comment 6 Frantisek Kluknavsky 2015-05-24 21:39:04 UTC
Tried to benchmark the libraries to be sure that the correct optimal versions are packaged and not some artifacts from optimalization process. The results are not sure on my laptop. Could you please test that the static library gives the same performance as the dynamic library?

Comment 7 Jaroslav Škarvada 2015-05-25 09:34:48 UTC
Thanks.

Built-in check in hpl package returns the same results for both dynamic/static libraries and the non-optimized HPL benchmark also seems to return similar numbers.