Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 789762

Summary: sys-cluster/ucx-1.10.0_rc5 - core/ucp_mm.c: error: mem_params.flags may be used uninitialized [-Werror=maybe-uninitialized]
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, ionen, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=790341
https://bugs.gentoo.org/show_bug.cgi?id=790332
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867, 732706    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
sys-cluster:ucx-1.10.0_rc5:20210512-212701.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2021-05-12 21:33:00 UTC
    inlined from ‘ucp_mpool_malloc’ at core/ucp_mm.c:633:14,
    inlined from ‘ucp_reg_mpool_malloc’ at core/ucp_mm.c:669:12:
core/ucp_mm.c:257:19: error: ‘mem_params.flags’ may be used uninitialized [-Werror=maybe-uninitialized]
  257 |         if (params->flags & UCP_MEM_MAP_NONBLOCK) {
      |             ~~~~~~^~~~~~~
core/ucp_mm.c: In function ‘ucp_reg_mpool_malloc’:
core/ucp_mm.c:629:26: note: ‘mem_params’ declared here

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j2-20210510-165205

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.1.0 *
clang version 12.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/12/bin
/usr/lib/llvm/12
12.0.0
Python 3.8.10
Available Rust versions:
  [1]   rust-bin-1.52.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.292_p10 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Wed May 12 21:05:28 UTC 2021

emerge -qpvO sys-cluster/ucx
[ebuild  N    ] sys-cluster/ucx-1.10.0_rc5  USE="numa openmp"
Comment 1 Toralf Förster gentoo-dev 2021-05-12 21:33:01 UTC
Created attachment 707751 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-05-12 21:33:02 UTC
Created attachment 707754 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-05-12 21:33:04 UTC
Created attachment 707757 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-05-12 21:33:05 UTC
Created attachment 707760 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-05-12 21:33:06 UTC
Created attachment 707763 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-05-12 21:33:08 UTC
Created attachment 707766 [details]
sys-cluster:ucx-1.10.0_rc5:20210512-212701.log
Comment 7 Toralf Förster gentoo-dev 2021-05-12 21:33:10 UTC
Created attachment 707769 [details]
temp.tar.bz2
Comment 8 Ionen Wolkens gentoo-dev 2021-05-13 06:46:43 UTC
Issue is -Werror but it does build fine with gcc10 still.
Comment 9 Larry the Git Cow gentoo-dev 2021-06-15 01:55:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1d3c9af5679ed8e493e188620dafde21c012a0f

commit e1d3c9af5679ed8e493e188620dafde21c012a0f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-06-15 01:52:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-06-15 01:54:25 +0000

    sys-cluster/ucx: drop -Werror
    
    Closes: https://bugs.gentoo.org/789762
    Closes: https://bugs.gentoo.org/790341
    Closes: https://bugs.gentoo.org/790332
    Signed-off-by: Sam James <sam@gentoo.org>

 .../ucx/files/ucx-1.10.0_rc5-drop-werror.patch     | 55 ++++++++++++++++++++++
 sys-cluster/ucx/ucx-1.10.0_rc5.ebuild              | 10 ++--
 2 files changed, 61 insertions(+), 4 deletions(-)