Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722414 - app-text/pinfo-0.6.13 : /.../string_fortified.h: error: _builtin_strncpy specified bound depends on the length of the source argum
Summary: app-text/pinfo-0.6.13 : /.../string_fortified.h: error: _builtin_strncpy spec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jeroen Roovers (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2020-05-11 09:03 UTC by Toralf Förster
Modified: 2020-08-19 13:57 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.58 KB, text/plain)
2020-05-11 09:03 UTC, Toralf Förster
Details
app-text:pinfo-0.6.13:20200511-082538.log (app-text:pinfo-0.6.13:20200511-082538.log,21.72 KB, text/plain)
2020-05-11 09:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,318.76 KB, text/plain)
2020-05-11 09:04 UTC, Toralf Förster
Details
environment (environment,80.78 KB, text/plain)
2020-05-11 09:04 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,20.02 KB, application/x-bzip)
2020-05-11 09:04 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,12.78 KB, application/x-bzip)
2020-05-11 09:04 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.05 KB, application/x-bzip)
2020-05-11 09:04 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 2020-05-11 09:03:57 UTC
In function strncpy,
    inlined from make_tempfile at utils.c:869:2:
/usr/include/bits/string_fortified.h:106:10: error: __builtin_strncpy specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
  106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils.c: In function make_tempfile:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20200502-160513

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.1
 [2] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.8 (fallback)
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.43.1
  [2]   rust-1.43.1 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.252_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon 11 May 2020 07:05:55 AM UTC

emerge -qpvO app-text/pinfo
[ebuild  N    ] app-text/pinfo-0.6.13  USE="nls readline"
Comment 1 Toralf Förster gentoo-dev 2020-05-11 09:03:59 UTC
Created attachment 638068 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-11 09:04:02 UTC
Created attachment 638070 [details]
app-text:pinfo-0.6.13:20200511-082538.log
Comment 3 Toralf Förster gentoo-dev 2020-05-11 09:04:05 UTC
Created attachment 638072 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-05-11 09:04:09 UTC
Created attachment 638074 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-05-11 09:04:13 UTC
Created attachment 638076 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-11 09:04:15 UTC
Created attachment 638078 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-05-11 09:04:18 UTC
Created attachment 638080 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-08-19 13:52:37 UTC
The stringop-overflow warning is a false positive. -Werror set in configure.ac is the actual problem.
Comment 9 Larry the Git Cow gentoo-dev 2020-08-19 13:57:14 UTC
The bug has been closed via the following commit(s):

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

commit 0e2c5b910bf3067d91d357a68d5b7a185a7a32be
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2020-08-19 13:53:46 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2020-08-19 13:57:11 +0000

    app-text/pinfo: Filter out -Werror
    
    Package-Manager: Portage-3.0.3, Repoman-3.0.0
    Closes: https://bugs.gentoo.org/692366
    Closes: https://bugs.gentoo.org/722414
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 app-text/pinfo/pinfo-0.6.13.ebuild | 3 +++
 app-text/pinfo/pinfo-99999.ebuild  | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)