!6 fix failure caused by GCC upgrade to GCC-10
From: @aslfjk Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
6c5a5759a2
33
qrupdate-gcc10.patch
Normal file
33
qrupdate-gcc10.patch
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
From 9acdea766fe924c4a43a627653a6f48bc26dbe95 Mon Sep 17 00:00:00 2001
|
||||||
|
From: root <root@localhost.localdomain>
|
||||||
|
Date: Mon, 2 Aug 2021 11:35:55 +0800
|
||||||
|
Subject: [PATCH] qrupdate-gcc10
|
||||||
|
|
||||||
|
---
|
||||||
|
test/utils.f | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/utils.f b/test/utils.f
|
||||||
|
index 5cffb51..cdc6941 100644
|
||||||
|
--- a/test/utils.f
|
||||||
|
+++ b/test/utils.f
|
||||||
|
@@ -60,14 +60,14 @@ c
|
||||||
|
|
||||||
|
subroutine crandg(m,n,x,ldx)
|
||||||
|
integer m,n,ldx
|
||||||
|
- complex x(ldx,*)
|
||||||
|
+ real x(ldx,*)
|
||||||
|
external srandg
|
||||||
|
call srandg(2*m,n,x,2*ldx)
|
||||||
|
end subroutine
|
||||||
|
|
||||||
|
subroutine zrandg(m,n,x,ldx)
|
||||||
|
integer m,n,ldx
|
||||||
|
- double complex x(ldx,*)
|
||||||
|
+ double precision x(ldx,*)
|
||||||
|
external srandg
|
||||||
|
call drandg(2*m,n,x,2*ldx)
|
||||||
|
end subroutine
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -1,11 +1,13 @@
|
|||||||
Name: qrupdate
|
Name: qrupdate
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A Fortran library for fast updates of QR and Cholesky decompositions
|
Summary: A Fortran library for fast updates of QR and Cholesky decompositions
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: http://qrupdate.sourceforge.net/
|
URL: http://qrupdate.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: qrupdate-gcc10.patch
|
||||||
|
|
||||||
BuildRequires: gcc-gfortran
|
BuildRequires: gcc-gfortran
|
||||||
|
|
||||||
BuildRequires: openblas-devel
|
BuildRequires: openblas-devel
|
||||||
@ -24,6 +26,7 @@ This package contains the development libraries for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%autosetup -p1
|
||||||
# Modify install location
|
# Modify install location
|
||||||
sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile
|
sed -i 's|$(PREFIX)/lib/|$(DESTDIR)%{_libdir}/|g' src/Makefile
|
||||||
|
|
||||||
@ -50,5 +53,8 @@ make test FC=gfortran FFLAGS="%{optflags} -fimplicit-none -funroll-loops" BLAS="
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 02 2021 wangyong<wangyong187@huawei.com> - 1.1.2-2
|
||||||
|
- Fix build error caused by GCC upgrade to GCC-10
|
||||||
|
|
||||||
* Tue May 05 2020 Hubble Zhu <zhuhengbo1@huawei.com> - 1.1.2-1
|
* Tue May 05 2020 Hubble Zhu <zhuhengbo1@huawei.com> - 1.1.2-1
|
||||||
- First release.
|
- First release.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user