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

Bug 706976

Summary: games-board/polyglot-1.4.70b-r2 : fails to build with -fno-common or gcc-10
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Ulrich Müller <ulm>
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-board:polyglot-1.4.70b-r2:20200128-161805.log
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-01-28 18:52:55 UTC
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -c uci2uci.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -c util.c
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -fno-common -c xboard2uci.c
x86_64-pc-linux-gnu-gcc  -O2 -pipe -march=native -fno-common  -Wl,-O1 -Wl,--as-needed -o polyglot mainloop.o attack.o board.o book.o book_make.o book_merge.o colour.o engine.o epd.o fen.o gui.o game.o hash.o ini.o io.o line.o list.o main.o move.o move_do.o move_gen.o move_legal.o option.o parse.o pgheader.o pgn.o piece.o pipex_posix.o pipex_win32.o random.o san.o search.o square.o uci.o uci2uci.o util.o xboard2uci.o  -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: book_merge.o:(.bss+0x0): multiple definition of `pgheader_magic'; book_make.o:(.bss+0x0): first defined here
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: book_merge.o:(.bss+0x8): multiple definition of `pgheader_version'; book_make.o:(.bss+0x8): 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 <==
Tue, 28 Jan 2020 15:15:08 +0000

emerge -qpvO games-board/polyglot
[ebuild  N    ] games-board/polyglot-1.4.70b-r2
Comment 1 Toralf Förster gentoo-dev 2020-01-28 18:52:57 UTC
Created attachment 606954 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-01-28 18:53:00 UTC
Created attachment 606956 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-01-28 18:53:03 UTC
Created attachment 606958 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-01-28 18:53:06 UTC
Created attachment 606960 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-01-28 18:53:08 UTC
Created attachment 606962 [details]
games-board:polyglot-1.4.70b-r2:20200128-161805.log
Comment 6 Toralf Förster gentoo-dev 2020-01-28 18:53:11 UTC
Created attachment 606964 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-01-28 18:53:14 UTC
Created attachment 606966 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-01-28 21:24:44 UTC
The bug has been closed via the following commit(s):

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

commit 0ffcd31e40170e29a86eb0aef5798fff4a5549e8
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2020-01-28 21:23:45 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2020-01-28 21:24:19 +0000

    games-board/polyglot: Fix compilation with -fno-common.
    
    Closes: https://bugs.gentoo.org/706976
    Package-Manager: Portage-2.3.85, Repoman-2.3.20
    Signed-off-by: Ulrich Müller <ulm@gentoo.org>

 .../polyglot/files/polyglot-1.4.70b-no-common.patch        | 14 ++++++++++++++
 ...lyglot-1.4.70b-r2.ebuild => polyglot-1.4.70b-r3.ebuild} |  5 +++--
 2 files changed, 17 insertions(+), 2 deletions(-)