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

Bug 707232

Summary: games-board/biloba-0.9.3-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/17785
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 705764    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
games-board:biloba-0.9.3-r1:20200129-102742.log
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-29 18:08:45 UTC
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Biloba\" -DPACKAGE_TARNAME=\"biloba\" -DPACKAGE_VERSION=\"0.9.3\" -DPACKAGE_STRING=\"Biloba\ 0.9.3\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"biloba\" -DVERSION=\"0.9.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -I. -I../include -DMYDATADIR=\"/usr/share/biloba\"    -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -c -o server.o server.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Biloba\" -DPACKAGE_TARNAME=\"biloba\" -DPACKAGE_VERSION=\"0.9.3\" -DPACKAGE_STRING=\"Biloba\ 0.9.3\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"biloba\" -DVERSION=\"0.9.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -I. -I../include -DMYDATADIR=\"/usr/share/biloba\"    -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -c -o widget.o widget.c
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"Biloba\" -DPACKAGE_TARNAME=\"biloba\" -DPACKAGE_VERSION=\"0.9.3\" -DPACKAGE_STRING=\"Biloba\ 0.9.3\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"biloba\" -DVERSION=\"0.9.3\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -I. -I../include -DMYDATADIR=\"/usr/share/biloba\"    -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall -c -o replay.o replay.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -Wall  -Wl,-O1 -Wl,--as-needed -o biloba board.o main.o utils.o tile.o pawn.o logic.o player.o arrow.o local_input.o options.o font.o net.o netops.o llist.o game.o computer.o help.o msg.o sound.o server.o widget.o replay.o -lm -lSDL_image -lSDL_mixer  -lSDL -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o:(.bss+0x0): multiple definition of `screen'; board.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: utils.o:(.bss+0x10): multiple definition of `screen'; board.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 *

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 09:06:25 +0000

emerge -qpvO games-board/biloba
[ebuild  N    ] games-board/biloba-0.9.3-r1
Comment 1 Toralf Förster gentoo-dev 2020-01-29 18:08:49 UTC
Created attachment 608066 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-29 18:08:52 UTC
Created attachment 608068 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-29 18:08:56 UTC
Created attachment 608070 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-29 18:09:01 UTC
Created attachment 608072 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-29 18:09:06 UTC
Created attachment 608074 [details]
games-board:biloba-0.9.3-r1:20200129-102742.log
Comment 6 Toralf Förster gentoo-dev 2020-01-29 18:09:09 UTC
Created attachment 608076 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-29 18:09:13 UTC
Created attachment 608078 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-10-15 18:51:31 UTC
The bug has been closed via the following commit(s):

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

commit 695d9059933b729bb333cfe00e0223f632ae32ca
Author:     Alexey Sokolov <sokolov@google.com>
AuthorDate: 2020-10-04 23:42:52 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-15 18:51:26 +0000

    games-board/biloba: fix build with gcc 10
    
    Closes: https://bugs.gentoo.org/707232
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 games-board/biloba/biloba-0.9.3-r2.ebuild          | 48 ++++++++++++++++++++++
 games-board/biloba/files/biloba-0.9.3-gcc-10.patch | 30 ++++++++++++++
 2 files changed, 78 insertions(+)