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

Bug 699886

Summary: dev-util/rr-5.2.0-r1 : 32/tgkill.c:7:12: error: static declaration of tgkill follows non-static declaration
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED FIXED    
Severity: normal CC: lu_zero, mudler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
dev-util:rr-5.2.0-r1:20191111-201828.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2019-11-11 20:30:58 UTC
FAILED: CMakeFiles/tgkill_32.dir/32/tgkill.c.o 
/usr/bin/x86_64-pc-linux-gnu-gcc -DRR_VERSION=\"5.2.0\" -I/var/tmp/portage/dev-util/rr-5.2.0-r1/work/rr-5.2.0/include -I/var/tmp/portage/dev-util/rr-5.2.0-r1/work/rr-5.2.0/third-party/proc-service -I/var/tmp/portage/dev-util/rr-5.2.0-r1/work/rr-5.2.0/third-party/brotli/include -I.  -O2 -pipe -march=native -msse2 -D__MMX__ -D__SSE__ -D__SSE2__ -D__USE_LARGEFILE64 -pthread -g3 -Wstrict-prototypes -std=gnu11  -pthread   -m32 -Wall -Wextra  -O0 -DDEBUG -UNDEBUG -MD -MT CMakeFiles/tgkill_32.dir/32/tgkill.c.o -MF CMakeFiles/tgkill_32.dir/32/tgkill.c.o.d -o CMakeFiles/tgkill_32.dir/32/tgkill.c.o -c 32/tgkill.c
32/tgkill.c:7:12: error: static declaration of ‘tgkill’ follows non-static declaration
    7 | static int tgkill(int tgid, int tid, int sig) {
      |            ^~~~~~
In file included from /usr/include/signal.h:374,

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl_test-20191019-011637

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
  [4]   pypy (fallback)

Available Rust versions:
  [1]   rust-1.38.0 *
java-config:
The following VMs are available for generation-2:
1)	IcedTea JDK 3.13.0 [icedtea-8]
*)	IcedTea JDK 3.13.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-8 
  [2]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 11 Nov 2019 20:06:08 +0000

emerge -qpvO dev-util/rr
[ebuild  N    ] dev-util/rr-5.2.0-r1  USE="multilib test" PYTHON_TARGETS="python2_7"
Comment 1 Toralf Förster gentoo-dev 2019-11-11 20:31:01 UTC
Created attachment 595794 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-11-11 20:31:04 UTC
Created attachment 595796 [details]
dev-util:rr-5.2.0-r1:20191111-201828.log
Comment 3 Toralf Förster gentoo-dev 2019-11-11 20:31:07 UTC
Created attachment 595798 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-11-11 20:31:10 UTC
Created attachment 595800 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-11-11 20:31:14 UTC
Created attachment 595802 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-11-11 20:31:17 UTC
Created attachment 595804 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2019-11-11 20:31:20 UTC
Created attachment 595806 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2019-11-12 07:53:28 UTC
The bug has been closed via the following commit(s):

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

commit 19ea6e50e8dfbdc76287fae73a75add53c08c391
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2019-11-12 07:53:07 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2019-11-12 07:53:21 +0000

    dev-util/rr: tweak build for glibc-2.30, bug #699886
    
    The build failed as:
    ```
    tgkill.c:7:12: error: static declaration of ‘tgkill’
      follows non-static declaration
        7 | static int tgkill(int tgid, int tid, int sig) {
          |            ^~~~~~
    ```
    
    Backport upstream glibc-2.30 fix as-is.
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/699886
    Package-Manager: Portage-2.3.79, Repoman-2.3.18
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 dev-util/rr/files/rr-5.2.0-tgkill-glibc-2.30.patch | 35 ++++++++++++++++++++++
 dev-util/rr/rr-5.2.0-r1.ebuild                     |  1 +
 2 files changed, 36 insertions(+)