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

Bug 707238

Summary: games-emulation/gngb-20060309-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/16006
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-emulation:gngb-20060309-r1:20200129-124623.log
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 18:10:33 UTC
unzip.c:191:7: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  191 |     x = (uLong)i;
      |     ~~^~~~~~~~~~
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -DSDL_YUV -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -O3  -Wno-unused -funroll-loops -fstrength-reduce                           -ffast-math -falign-functions=2 -falign-jumps=2                           -falign-loops=2 -fomit-frame-pointer -Wall   -Wl,-O1 -Wl,--as-needed -o gngb cpu.o emu.o frame_skip.o interrupt.o main.o memory.o message.o rom.o serial.o sgb.o sound.o vram.o video_yuy2.o video_yuv.o video_yv12.o video_std.o video_gl.o menu.o fileio.o save.o unzip.o  -lz -lbz2 -lSDL -lpthread  -lSDL -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: emu.o:(.bss+0xb40): multiple definition of `conf'; cpu.o:(.bss+0x2c0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: emu.o:(.bss+0x8a0): multiple definition of `key'; cpu.o:(.bss+0x20): first defined here

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

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

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

  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:
*)	AdoptOpenJDK 8.242_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
ghc:
The Glorious Glasgow Haskell Compilation System, version 7.10.3

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 29 Jan 2020 11:46:22 +0000

emerge -qpvO games-emulation/gngb
[ebuild  N    ] games-emulation/gngb-20060309-r1  USE="-opengl"
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:10:36 UTC
Created attachment 608108 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:10:39 UTC
Created attachment 608110 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:10:42 UTC
Created attachment 608112 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:10:44 UTC
Created attachment 608114 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:10:48 UTC
Created attachment 608116 [details]
games-emulation:gngb-20060309-r1:20200129-124623.log
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:10:52 UTC
Created attachment 608118 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-29 18:10:56 UTC
Created attachment 608120 [details]
temp.tbz2
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2020-05-21 12:06:58 UTC
*** Bug 721104 has been marked as a duplicate of this bug. ***
Comment 9 Larry the Git Cow gentoo-dev 2020-06-01 16:31:46 UTC
The bug has been closed via the following commit(s):

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

commit 2a5854f61234dec10dc906a44e98b6316761b497
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-05-29 18:16:08 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2020-06-01 16:25:36 +0000

    games-emulation/gngb: fix GCC10 compilation
    
    Closes: https://bugs.gentoo.org/707238
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/16006
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 .../gngb/files/gngb-20060309-gcc10.patch           | 488 +++++++++++++++++++++
 games-emulation/gngb/gngb-20060309-r1.ebuild       |   4 +-
 2 files changed, 491 insertions(+), 1 deletion(-)