diff --git a/UCT-UD-fixed-compilation-by-gcc8.patch b/UCT-UD-fixed-compilation-by-gcc8.patch new file mode 100644 index 0000000..6f8ee20 --- /dev/null +++ b/UCT-UD-fixed-compilation-by-gcc8.patch @@ -0,0 +1,23 @@ +commit 851a26c3e553f88386658129ad2d4dca060e164c +Author: Sergey Oblomov +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 { diff --git a/openucx.changes b/openucx.changes index a94271d..9a67b2b 100644 --- a/openucx.changes +++ b/openucx.changes @@ -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 diff --git a/openucx.spec b/openucx.spec index aadfe0c..32a5053 100644 --- a/openucx.spec +++ b/openucx.spec @@ -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