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

Bug 708238

Summary: games-puzzle/rezerwar-0.4.2-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: PATCH, PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17761
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:rezerwar-0.4.2-r1:20200204-135711.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-02-04 17:11:04 UTC
cc -O2 -pipe -march=native -fno-common `sdl-config --cflags` -Wall  -c pipe.c
cc -O2 -pipe -march=native -fno-common `sdl-config --cflags` -Wall  -c bomb.c
cc -O2 -pipe -march=native -fno-common `sdl-config --cflags` -Wall  -c sfx.c
cc -Wl,-O1 -Wl,--as-needed main.o menus.o events.o level.o hiscore.o board.o cube.o text.o path.o memory.o fatal.o gfx.o strlcpy.o chimneys.o sky.o mole.o pipe.o bomb.o sfx.o -lSDL -lpthread -lSDL_mixer -o rezerwar
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: events.o:(.bss+0x8): multiple definition of `screen'; main.o:(.bss+0x10): first defined here
collect2: error: ld returned 1 exit status

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

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

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

  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.6
  [3]   python3.7 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *

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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Tue, 04 Feb 2020 12:28:48 +0000

emerge -qpvO games-puzzle/rezerwar
[ebuild  N    ] games-puzzle/rezerwar-0.4.2-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-04 17:11:08 UTC
Created attachment 611624 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-04 17:11:10 UTC
Created attachment 611626 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-04 17:11:13 UTC
Created attachment 611628 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-04 17:11:16 UTC
Created attachment 611630 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-04 17:11:19 UTC
Created attachment 611632 [details]
games-puzzle:rezerwar-0.4.2-r1:20200204-135711.log
Comment 6 Toralf Förster gentoo-dev 2020-02-04 17:11:22 UTC
Created attachment 611634 [details]
temp.tbz2
Comment 7 Larry the Git Cow gentoo-dev 2020-11-15 20:03:31 UTC
The bug has been closed via the following commit(s):

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

commit a0780ba5533643aba22dce01b8af5ea580425c6e
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2020-11-15 20:02:38 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2020-11-15 20:02:38 +0000

    games-puzzle/rezerwar: fix build with gcc10
    
    Use correct compiler and fix build on prefix
    
    Closes: https://bugs.gentoo.org/708238
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: David Seifert <soap@gentoo.org>

 .../rezerwar/files/rezerwar-0.4.2-gcc-CC.patch     | 12 +++++
 .../rezerwar/files/rezerwar-0.4.2-gcc10.patch      | 12 +++++
 games-puzzle/rezerwar/rezerwar-0.4.2-r2.ebuild     | 58 ++++++++++++++++++++++
 3 files changed, 82 insertions(+)