bugfix of gcc 10
This commit is contained in:
parent
87431d0897
commit
f9672c47c9
12
bugfix-of-gcc-10.patch
Normal file
12
bugfix-of-gcc-10.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Nur perftest-4.2-old/src/raw_ethernet_resources.c perftest-4.2/src/raw_ethernet_resources.c
|
||||||
|
--- perftest-4.2-old/src/raw_ethernet_resources.c 2018-05-06 19:58:57.000000000 +0800
|
||||||
|
+++ perftest-4.2/src/raw_ethernet_resources.c 2021-08-03 15:00:40.000000000 +0800
|
||||||
|
@@ -54,7 +54,7 @@
|
||||||
|
#include "raw_ethernet_resources.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
-struct perftest_parameters* duration_param;
|
||||||
|
+extern struct perftest_parameters* duration_param;
|
||||||
|
|
||||||
|
int check_flow_steering_support(char *dev_name)
|
||||||
|
{
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: perftest
|
Name: perftest
|
||||||
Version: 4.2
|
Version: 4.2
|
||||||
Release: 6
|
Release: 7
|
||||||
License: GPLv2 or BSD
|
License: GPLv2 or BSD
|
||||||
Summary: RDMA Performance Testing Tools
|
Summary: RDMA Performance Testing Tools
|
||||||
Url: https://github.com/linux-rdma/perftest
|
Url: https://github.com/linux-rdma/perftest
|
||||||
@ -10,6 +10,8 @@ Source: https://github.com/linux-rdma/%{name}/releases/download/V4.2-0.8
|
|||||||
BuildRequires: gcc libibverbs-devel >= 1.2.0 librdmacm-devel >= 1.0.21 libibumad-devel >= 1.3.10.2
|
BuildRequires: gcc libibverbs-devel >= 1.2.0 librdmacm-devel >= 1.0.21 libibumad-devel >= 1.3.10.2
|
||||||
Obsoletes: openib-perftest < 1.3
|
Obsoletes: openib-perftest < 1.3
|
||||||
|
|
||||||
|
Patch0001: bugfix-of-gcc-10.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Perftest is a collection of simple tools for testing bandwidth and latency over RDMA connections.
|
Perftest is a collection of simple tools for testing bandwidth and latency over RDMA connections.
|
||||||
|
|
||||||
@ -18,7 +20,7 @@ Perftest is a collection of simple tools for testing bandwidth and latency over
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
%make_build CFLAGS+="-fPIC -g -Wall -D_GNU_SOURCE -O3 -fcommon"
|
%make_build CFLAGS+="-fPIC -g -Wall -D_GNU_SOURCE -O3"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
|
for file in ib_{atomic,read,send,write}_{lat,bw} raw_ethernet_{lat,bw}; do
|
||||||
@ -30,6 +32,9 @@ done
|
|||||||
%_bindir/*
|
%_bindir/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue 3 Aug 2021 Shenmei Tu <tushenmei@huawei.com> - 4.2-7
|
||||||
|
- bugfix-of-gcc-10.patch
|
||||||
|
|
||||||
* Fri 30 July 2021 Shenmei Tu <tushenmei@huawei.com> - 4.2-6
|
* Fri 30 July 2021 Shenmei Tu <tushenmei@huawei.com> - 4.2-6
|
||||||
- bug fix of multiple definition
|
- bug fix of multiple definition
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user