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

Bug 707264

Summary: games-puzzle/tetrinet-0.11-r1 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17513
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-puzzle:tetrinet-0.11-r1:20200129-155703.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 18:17:31 UTC
xwin.c:802:12: warning: variable ‘width’ set but not used [-Wunused-but-set-variable]
  802 |     int i, width;
      |            ^~~~~
cc -Wl,-O1 -Wl,--as-needed -o tetrinet sockets.o tetrinet.o tetris.o tty.o xwin.o -lncurses -ltinfo 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tetris.o:/var/tmp/portage/games-puzzle/tetrinet-0.11-r1/work/tetrinet-0.11/tetris.h:53: multiple definition of `piecedata'; tetrinet.o:/var/tmp/portage/games-puzzle/tetrinet-0.11-r1/work/tetrinet-0.11/tetris.h:53: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: tty.o:/var/tmp/portage/games-puzzle/tetrinet-0.11-r1/work/tetrinet-0.11/tetris.h:53: multiple definition of `piecedata'; tetrinet.o:/var/tmp/portage/games-puzzle/tetrinet-0.11-r1/work/tetrinet-0.11/tetris.h:53: first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-libressl-20200126-092715

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

  Please see the tracker bug for details.

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

clang:
clang version 9.0.1 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.40.0 *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.14.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 29 Jan 2020 15:06:24 +0000

emerge -qpvO games-puzzle/tetrinet
[ebuild  N    ] games-puzzle/tetrinet-0.11-r1  USE="ipv6"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:17:35 UTC
Created attachment 608286 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:17:38 UTC
Created attachment 608288 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:17:42 UTC
Created attachment 608290 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:17:44 UTC
Created attachment 608292 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:17:47 UTC
Created attachment 608294 [details]
games-puzzle:tetrinet-0.11-r1:20200129-155703.log
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:17:51 UTC
Created attachment 608296 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-09-20 21:37:09 UTC
The bug has been closed via the following commit(s):

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

commit 354a137aa65056969227cb7573d61682889c2c56
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2020-09-12 21:22:15 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-09-20 21:34:24 +0000

    games-puzzle/tetrinet: fix build with gcc 10
    
    Closes: https://github.com/gentoo/gentoo/pull/17513
    Closes: https://bugs.gentoo.org/707264
    Package-Manager: Portage-3.0.4, Repoman-2.3.23
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 .../tetrinet/files/tetrinet-0.11-fnocommon.patch   | 11 +++++++
 games-puzzle/tetrinet/tetrinet-0.11-r2.ebuild      | 37 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)