Accepting request 591499 from home:NMoreyChaisemartin:branches:science:HPC

- Add UCT-UD-fixed-compilation-by-gcc8.patch to fix compilation
  with GCC8 (bsc#1084635)

OBS-URL: https://build.opensuse.org/request/show/591499
OBS-URL: https://build.opensuse.org/package/show/science:HPC/openucx?expand=0&rev=17
This commit is contained in:
Nicolas Morey-Chaisemartin 2018-03-27 13:06:52 +00:00 committed by Git OBS Bridge
parent 936151ea1e
commit 37de8011ef
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,23 @@
commit 851a26c3e553f88386658129ad2d4dca060e164c
Author: Sergey Oblomov <sergeyo@mellanox.com>
Date: Mon Mar 19 07:25:32 2018 +0200
UCT/UD: fixed compilation by gcc8
- removed 'packed' attribute from uct_ud_send_skb_inl_t structure
diff --git src/uct/ib/ud/base/ud_def.h src/uct/ib/ud/base/ud_def.h
index 0ccc0bb8495a..44d50ec643f8 100644
--- src/uct/ib/ud/base/ud_def.h
+++ src/uct/ib/ud/base/ud_def.h
@@ -172,8 +172,8 @@ typedef struct uct_ud_zcopy_desc {
typedef struct uct_ud_send_skb_inl {
uct_ud_send_skb_t super;
- uct_ud_neth_t neth;
-} UCS_S_PACKED uct_ud_send_skb_inl_t;
+ uct_ud_neth_t neth; /* placeholder for super.neth, should not be used directly */
+} uct_ud_send_skb_inl_t;
typedef struct uct_ud_recv_skb {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Mar 27 07:12:37 UTC 2018 - nmoreychaisemartin@suse.com
- Add UCT-UD-fixed-compilation-by-gcc8.patch to fix compilation
with GCC8 (bsc#1084635)
-------------------------------------------------------------------
Sat Jan 20 15:40:43 UTC 2018 - jengelh@inai.de

View File

@ -28,6 +28,7 @@ Url: http://openucx.org/
#Git-Web: https://github.com/openucx/ucx
Source: https://github.com/openucx/ucx/releases/download/v%version/ucx-%version.tar.gz
Patch1: openucx-s390x-support.patch
Patch2: UCT-UD-fixed-compilation-by-gcc8.patch
BuildRequires: autoconf >= 2.63
BuildRequires: automake >= 1.10
BuildRequires: binutils-devel
@ -127,6 +128,7 @@ underlying hardware.
%prep
%setup -qn ucx-%version
%patch -P 1 -p1
%patch2
%build
autoreconf -fi