Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 686100 - sys-fabric/libmlx5-1.0.1 : /.../string_fortified.h:106:10: error: _builtin_strncpy specified bound 1024 equals destination size [-Werror=stringop-truncation]
Summary: sys-fabric/libmlx5-1.0.1 : /.../string_fortified.h:106:10: error: _builtin_st...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: werror 643122 gcc-9
  Show dependency tree
 
Reported: 2019-05-16 13:10 UTC by Toralf Förster
Modified: 2020-11-15 23:23 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.45 KB, text/plain)
2019-05-16 13:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,208.07 KB, text/plain)
2019-05-16 13:10 UTC, Toralf Förster
Details
environment (environment,86.00 KB, text/plain)
2019-05-16 13:10 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.77 KB, application/x-bzip)
2019-05-16 13:10 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.32 KB, application/x-bzip)
2019-05-16 13:10 UTC, Toralf Förster
Details
sys-fabric:libmlx5-1.0.1:20190516-125322.log (sys-fabric:libmlx5-1.0.1:20190516-125322.log,10.25 KB, text/plain)
2019-05-16 13:10 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,22.19 KB, application/x-bzip)
2019-05-16 13:10 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-05-16 13:10:11 UTC
In function 'strncpy',
    inlined from 'mlx5_local_cpu_set' at src/mlx5.c:201:3:
/usr/include/bits/string_fortified.h:106:10: error: '__builtin_strncpy' specified bound 1024 equals destination size [-Werror=stringop-truncation]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-desktop-gnome_20190510-222703

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.1
 [2] x86_64-pc-linux-gnu-9.1.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.34.1 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.12.0 [icedtea-8]
*)	IcedTea JDK 3.12.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

emerge -qpvO sys-fabric/libmlx5
[ebuild  N    ] sys-fabric/libmlx5-1.0.1
Comment 1 Toralf Förster gentoo-dev 2019-05-16 13:10:14 UTC
Created attachment 576912 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-05-16 13:10:17 UTC
Created attachment 576914 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-05-16 13:10:20 UTC
Created attachment 576916 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-05-16 13:10:22 UTC
Created attachment 576918 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-05-16 13:10:25 UTC
Created attachment 576920 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-05-16 13:10:28 UTC
Created attachment 576922 [details]
sys-fabric:libmlx5-1.0.1:20190516-125322.log
Comment 7 Toralf Förster gentoo-dev 2019-05-16 13:10:31 UTC
Created attachment 576924 [details]
temp.tbz2
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2020-01-19 16:30:12 UTC
Same for x86.
Comment 9 Larry the Git Cow gentoo-dev 2020-11-15 23:23:48 UTC
The bug has been closed via the following commit(s):

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

commit e33ca0f6b29eb486f137e70f371b9571e151a8ff
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2020-11-15 23:23:31 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-15 23:23:31 +0000

    sys-fabric/libmlx5: disable static libs and Werror
    
    Closes: https://bugs.gentoo.org/686100
    Closes: https://bugs.gentoo.org/732220
    Closes: https://github.com/gentoo/gentoo/pull/18272
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: David Seifert <soap@gentoo.org>

 sys-fabric/libmlx5/libmlx5-1.0.1.ebuild | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)