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

Bug 706446

Summary: games-arcade/nibbles-0.0.4-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    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-arcade:nibbles-0.0.4-r1:20200126-140804.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-26 14:32:08 UTC
scoring.c:32:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
   32 |  fread(*highscores, 1, filelen, scorefile);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -Wl,-O1 -Wl,--as-needed player.o main.o loadMap.o cmdline.o ncdrawlib.o scoring.o -lncurses -ltinfo  -o nibbles
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cmdline.o:(.bss+0x0): multiple definition of `highscoref'; main.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: scoring.o:(.bss+0x0): multiple definition of `highscoref'; main.o:(.bss+0x0): first defined here

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-libressl-20200125-232521

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

  Please see the tracker bug for details.

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


llvm:
9.0.1
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7 (uninstalled)
  [3]   python3.6
  [4]   python2.7 (fallback)





repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 26 Jan 2020 13:06:36 +0000

emerge -qpvO games-arcade/nibbles
[ebuild  N    ] games-arcade/nibbles-0.0.4-r1
Comment 1 Toralf Förster gentoo-dev 2020-01-26 14:32:10 UTC
Created attachment 604636 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-26 14:32:13 UTC
Created attachment 604638 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-26 14:32:16 UTC
Created attachment 604640 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-26 14:32:18 UTC
Created attachment 604642 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-26 14:32:21 UTC
Created attachment 604644 [details]
games-arcade:nibbles-0.0.4-r1:20200126-140804.log
Comment 6 Toralf Förster gentoo-dev 2020-01-26 14:32:23 UTC
Created attachment 604646 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-01-26 15:17:14 UTC
The bug has been closed via the following commit(s):

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

commit d32a3e020d3d92ed7e98ebcd9b33e817c71a2d1e
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2020-01-26 15:17:01 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2020-01-26 15:17:08 +0000

    games-arcade/nibbles: tweak for gcc-10, bug #706446
    
    Reported-by: Toralf Förster
    Closes: https://bugs.gentoo.org/706446
    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../nibbles/files/nibbles-0.0.4-gcc-10.patch       | 22 ++++++++++++++++++++++
 games-arcade/nibbles/nibbles-0.0.4-r1.ebuild       |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)