Bug 1549262 - Link error after 'dnf upgrade' Lapack 3.8.0 upgraded from 3.7.1
Summary: Link error after 'dnf upgrade' Lapack 3.8.0 upgraded from 3.7.1
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lapack
Version: 27
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-26 20:26 UTC by Stephen Soliday
Modified: 2018-03-06 17:28 UTC (History)
3 users (show)

Fixed In Version: lapack-3.8.0-7.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-06 17:28:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Stephen Soliday 2018-02-26 20:26:42 UTC
Description of problem:

Experiencing link errors after 'dnf upgrade'

/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/liblapacke.so: undefined reference to `LAPACKE_dsytrf_aa_work'
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/liblapacke.so: undefined reference to `LAPACKE_ssytrf_aa_work'

Version-Release number of selected component (if applicable):

old (working) version: lapack-3.7.1-5.fc27.x86_64

new (failed) version: lapack-3.8.0-4.fc27.x86_64

How reproducible:

Performed the following steps 3 times with same results


Steps to Reproduce:
1.  cat /etc/redhat-release
2.  rpm -q lapack
3.  echo "int main(void) { return 0; }" > test.c
4.  gcc -o test test.c -lm -llapack -lblas -llapacke
5.  sudo dnf downgrade blas lapack
6.  rpm -q lapack
7.  gcc -o test test.c -lm -llapack -lblas -llapacke
8.  sudo dnf distro-sync blas lapack
9.  rpm -q lapack
10. gcc -o test test.c -lm -llapack -lblas -llapacke


Summary results:

Step  1: Fedora release 27 (Twenty Seven)
Step  2: lapack-3.8.0-4.fc27.x86_64
Step  4: link errors
Step  6: lapack-3.7.1-5.fc27.x86_64
Step  7: no link errors
Step  9: lapack-3.8.0-4.fc27.x86_64
Step 10: link errors


Actual results:

$ cat /etc/redhat-release
Fedora release 27 (Twenty Seven)
$ rpm -q lapack
lapack-3.8.0-4.fc27.x86_64
$ echo "int main(void) { return 0; }" > test.c
$ gcc -o test test.c -lm -llapack -lblas -llapacke
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/liblapacke.so: undefined reference to `LAPACKE_dsytrf_aa_work'
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/liblapacke.so: undefined reference to `LAPACKE_ssytrf_aa_work'
collect2: error: ld returned 1 exit status
$ sudo dnf downgrade blas lapack
Last metadata expiration check: 0:31:49 ago on Mon 26 Feb 2018 02:33:08 PM EST.
Dependencies resolved.
==============================================================================================================================================================================
 Package                                     Arch                                  Version                                        Repository                             Size
==============================================================================================================================================================================
Downgrading:
 blas                                        x86_64                                3.7.1-5.fc27                                   fedora                                403 k
 blas-devel                                  x86_64                                3.7.1-5.fc27                                   fedora                                 17 k
 lapack                                      x86_64                                3.7.1-5.fc27                                   fedora                                 11 M
 lapack-devel                                x86_64                                3.7.1-5.fc27                                   fedora                                 85 k

Transaction Summary
==============================================================================================================================================================================
Downgrade  4 Packages

Total download size: 11 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): blas-devel-3.7.1-5.fc27.x86_64.rpm                                                                                                     130 kB/s |  17 kB     00:00    
(2/4): blas-3.7.1-5.fc27.x86_64.rpm                                                                                                           1.6 MB/s | 403 kB     00:00    
(3/4): lapack-devel-3.7.1-5.fc27.x86_64.rpm                                                                                                   727 kB/s |  85 kB     00:00    
(4/4): lapack-3.7.1-5.fc27.x86_64.rpm                                                                                                         9.0 MB/s |  11 MB     00:01    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                         2.7 MB/s |  11 MB     00:04     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                      1/1 
  Downgrading      : blas-3.7.1-5.fc27.x86_64                                                                                                                             1/8 
  Running scriptlet: blas-3.7.1-5.fc27.x86_64                                                                                                                             1/8 
  Downgrading      : lapack-3.7.1-5.fc27.x86_64                                                                                                                           2/8 
  Running scriptlet: lapack-3.7.1-5.fc27.x86_64                                                                                                                           2/8 
  Downgrading      : blas-devel-3.7.1-5.fc27.x86_64                                                                                                                       3/8 
  Downgrading      : lapack-devel-3.7.1-5.fc27.x86_64                                                                                                                     4/8 
  Erasing          : lapack-devel-3.8.0-4.fc27.x86_64                                                                                                                     5/8 
  Erasing          : blas-devel-3.8.0-4.fc27.x86_64                                                                                                                       6/8 
  Erasing          : lapack-3.8.0-4.fc27.x86_64                                                                                                                           7/8 
  Running scriptlet: lapack-3.8.0-4.fc27.x86_64                                                                                                                           7/8 
  Erasing          : blas-3.8.0-4.fc27.x86_64                                                                                                                             8/8 
  Running scriptlet: blas-3.8.0-4.fc27.x86_64                                                                                                                             8/8 
Running as unit: run-r7dac431f910547c8899c375d4feb8091.service
Running as unit: run-re2e558b6373a4a419f72ecbecb37e962.service
  Verifying        : blas-3.7.1-5.fc27.x86_64                                                                                                                             1/8 
  Verifying        : lapack-3.7.1-5.fc27.x86_64                                                                                                                           2/8 
  Verifying        : blas-devel-3.7.1-5.fc27.x86_64                                                                                                                       3/8 
  Verifying        : lapack-devel-3.7.1-5.fc27.x86_64                                                                                                                     4/8 
  Verifying        : blas-3.8.0-4.fc27.x86_64                                                                                                                             5/8 
  Verifying        : blas-devel-3.8.0-4.fc27.x86_64                                                                                                                       6/8 
  Verifying        : lapack-3.8.0-4.fc27.x86_64                                                                                                                           7/8 
  Verifying        : lapack-devel-3.8.0-4.fc27.x86_64                                                                                                                     8/8 

Downgraded:
  blas.x86_64 3.7.1-5.fc27               blas-devel.x86_64 3.7.1-5.fc27               lapack.x86_64 3.7.1-5.fc27               lapack-devel.x86_64 3.7.1-5.fc27              

Complete!
$ rpm -q lapack
lapack-3.7.1-5.fc27.x86_64
$ gcc -o test test.c -lm -llapack -lblas -llapacke
$ sudo dnf distro-sync blas lapack
Last metadata expiration check: 0:32:39 ago on Mon 26 Feb 2018 02:33:08 PM EST.
Package blas-3.7.1-5.fc27.x86_64 is already installed, skipping.
Package lapack-3.7.1-5.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
==============================================================================================================================================================================
 Package                                     Arch                                  Version                                       Repository                              Size
==============================================================================================================================================================================
Upgrading:
 blas                                        x86_64                                3.8.0-4.fc27                                  updates                                427 k
 blas-devel                                  x86_64                                3.8.0-4.fc27                                  updates                                 25 k
 lapack                                      x86_64                                3.8.0-4.fc27                                  updates                                8.6 M
 lapack-devel                                x86_64                                3.8.0-4.fc27                                  updates                                 87 k

Transaction Summary
==============================================================================================================================================================================
Upgrade  4 Packages

Total download size: 9.1 M
Is this ok [y/N]: y
Downloading Packages:
(1/4): blas-devel-3.8.0-4.fc27.x86_64.rpm                                                                                                     6.2 kB/s |  25 kB     00:03    
(2/4): blas-3.8.0-4.fc27.x86_64.rpm                                                                                                           106 kB/s | 427 kB     00:04    
(3/4): lapack-devel-3.8.0-4.fc27.x86_64.rpm                                                                                                   746 kB/s |  87 kB     00:00    
(4/4): lapack-3.8.0-4.fc27.x86_64.rpm                                                                                                         1.7 MB/s | 8.6 MB     00:05    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                         1.0 MB/s | 9.1 MB     00:09     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                      1/1 
  Upgrading        : blas-3.8.0-4.fc27.x86_64                                                                                                                             1/8 
  Running scriptlet: blas-3.8.0-4.fc27.x86_64                                                                                                                             1/8 
  Upgrading        : lapack-3.8.0-4.fc27.x86_64                                                                                                                           2/8 
  Running scriptlet: lapack-3.8.0-4.fc27.x86_64                                                                                                                           2/8 
  Upgrading        : blas-devel-3.8.0-4.fc27.x86_64                                                                                                                       3/8 
  Upgrading        : lapack-devel-3.8.0-4.fc27.x86_64                                                                                                                     4/8 
  Cleanup          : lapack-devel-3.7.1-5.fc27.x86_64                                                                                                                     5/8 
  Cleanup          : blas-devel-3.7.1-5.fc27.x86_64                                                                                                                       6/8 
  Cleanup          : lapack-3.7.1-5.fc27.x86_64                                                                                                                           7/8 
  Running scriptlet: lapack-3.7.1-5.fc27.x86_64                                                                                                                           7/8 
  Cleanup          : blas-3.7.1-5.fc27.x86_64                                                                                                                             8/8 
  Running scriptlet: blas-3.7.1-5.fc27.x86_64                                                                                                                             8/8 
Running as unit: run-r4d2414007023477ba99bedefab65bab2.service
Running as unit: run-r5147bca7e9fa47278f3f5bb0c346f8c6.service
  Verifying        : blas-3.8.0-4.fc27.x86_64                                                                                                                             1/8 
  Verifying        : lapack-3.8.0-4.fc27.x86_64                                                                                                                           2/8 
  Verifying        : blas-devel-3.8.0-4.fc27.x86_64                                                                                                                       3/8 
  Verifying        : lapack-devel-3.8.0-4.fc27.x86_64                                                                                                                     4/8 
  Verifying        : blas-3.7.1-5.fc27.x86_64                                                                                                                             5/8 
  Verifying        : blas-devel-3.7.1-5.fc27.x86_64                                                                                                                       6/8 
  Verifying        : lapack-3.7.1-5.fc27.x86_64                                                                                                                           7/8 
  Verifying        : lapack-devel-3.7.1-5.fc27.x86_64                                                                                                                     8/8 

Upgraded:
  blas.x86_64 3.8.0-4.fc27               blas-devel.x86_64 3.8.0-4.fc27               lapack.x86_64 3.8.0-4.fc27               lapack-devel.x86_64 3.8.0-4.fc27              

Complete!
$ rpm -q lapack
lapack-3.8.0-4.fc27.x86_64
$ gcc -o test test.c -lm -llapack -lblas -llapacke
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/liblapacke.so: undefined reference to `LAPACKE_dsytrf_aa_work'
/usr/lib/gcc/x86_64-redhat-linux/7/../../../../lib64/liblapacke.so: undefined reference to `LAPACKE_ssytrf_aa_work'
collect2: error: ld returned 1 exit status
$ 

Expected results:

Expected that there should be no linking error before and after upgrade


Additional info:

Comment 1 Tom "spot" Callaway 2018-02-26 21:05:21 UTC
Good catch. They left two source files out of the lapacke Makefile in 3.8.0. I've got fixed builds going now.

Comment 2 Fedora Update System 2018-02-27 18:30:07 UTC
lapack-3.8.0-7.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-12cdd81d3f

Comment 3 Fedora Update System 2018-03-06 17:28:26 UTC
lapack-3.8.0-7.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.