Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708066 - games-arcade/pacmanarena-0.15-r1 : fails to build with -fno-common or gcc-10
Summary: games-arcade/pacmanarena-0.15-r1 : fails to build with -fno-common or gcc-10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: -fno-common
  Show dependency tree
 
Reported: 2020-02-03 18:52 UTC by Toralf Förster
Modified: 2020-09-21 21:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.67 KB, text/plain)
2020-02-03 18:52 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,270.81 KB, text/plain)
2020-02-03 18:52 UTC, Toralf Förster
Details
environment (environment,70.78 KB, text/plain)
2020-02-03 18:52 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,41.10 KB, application/x-bzip)
2020-02-03 18:52 UTC, Toralf Förster
Details
games-arcade:pacmanarena-0.15-r1:20200203-173010.log (games-arcade:pacmanarena-0.15-r1:20200203-173010.log,18.49 KB, text/plain)
2020-02-03 18:52 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.44 KB, application/x-bzip)
2020-02-03 18:52 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.88 KB, application/x-bzip)
2020-02-03 18:52 UTC, Toralf Förster
Details
no-common.patch (pacmanarena-no-common.patch,280 bytes, patch)
2020-02-20 02:23 UTC, Samuel Bauer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-02-03 18:52:15 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-common -Wall -g  -pthread -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I./include -DDATADIR="\"/usr/share/pacmanarena\"" -o pacman main.c file.o bomb.o particle.o shot.o audio.o map.o object.o math.o gfx.o game.o player.o ghost.o menu.o input.o screen.o render.o render_bomb.o render_player.o render_ghost.o render_map.o render_particle.o render_shot.o net.o -Wl,-O1 -Wl,--as-needed  -lSDL -lpthread -lSDL_mixer -lSDL_net -lGL -lGLU -lm
main.c:20:19: warning: ‘cvsid’ defined but not used [-Wunused-const-variable=]
   20 | static const char cvsid[] =
      |                   ^~~~~
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: player.o:/var/tmp/portage/games-arcade/pacmanarena-0.15-r1/work/pacman/./include/input.h:25: multiple definition of `keyboard_map'; game.o:/var/tmp/portage/games-arcade/pacmanarena-0.15-r1/work/pacman/./include/input.h:25: first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: menu.o:/var/tmp/portage/games-arcade/pacmanarena-0.15-r1/work/pacman/./include/input.h:25: multiple definition of `keyboard_map'; game.o:/var/tmp/portage/games-arcade/pacmanarena-0.15-r1/work/pacman/./include/input.h:25: 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
ghc:
The Glorious Glasgow Haskell Compilation System, version 8.0.2

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 03 Feb 2020 16:27:02 +0000

emerge -qpvO games-arcade/pacmanarena
[ebuild  N    ] games-arcade/pacmanarena-0.15-r1
Comment 1 Toralf Förster gentoo-dev 2020-02-03 18:52:18 UTC
Created attachment 611478 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-03 18:52:21 UTC
Created attachment 611480 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-02-03 18:52:23 UTC
Created attachment 611482 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-02-03 18:52:26 UTC
Created attachment 611484 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-02-03 18:52:29 UTC
Created attachment 611486 [details]
games-arcade:pacmanarena-0.15-r1:20200203-173010.log
Comment 6 Toralf Förster gentoo-dev 2020-02-03 18:52:32 UTC
Created attachment 611488 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-02-03 18:52:35 UTC
Created attachment 611490 [details]
temp.tbz2
Comment 8 Samuel Bauer 2020-02-20 02:23:20 UTC
Created attachment 614598 [details, diff]
no-common.patch

Fix included
Comment 9 jospezial 2020-08-15 14:32:33 UTC
(In reply to Samuel Bauer from comment #8)
> Created attachment 614598 [details, diff] [details, diff]
> no-common.patch
> 
> Fix included

patch works. Thanks.
Comment 10 Larry the Git Cow gentoo-dev 2020-09-21 21:14:44 UTC
The bug has been closed via the following commit(s):

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

commit a229976dffa2a8ae85c872761b15918a04280ddc
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2020-09-13 22:42:01 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2020-09-21 21:14:13 +0000

    games-arcade/pacmanarena: fix build on gcc 10
    
    Fix removing of -g from CFLAGS
    
    Closes: https://bugs.gentoo.org/708066
    Package-Manager: Portage-3.0.4, Repoman-2.3.23
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 .../files/pacmanarena-0.15-fnocommon.patch         | 15 ++++++
 .../pacmanarena/pacmanarena-0.15-r2.ebuild         | 59 ++++++++++++++++++++++
 2 files changed, 74 insertions(+)