/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./common/libpioneers_a-driver.o: in function `set_ui_driver': driver.c:(.text+0x0): multiple definition of `set_ui_driver'; libpioneers.a(libpioneers_a-driver.o):driver.c:(.text+0x0): first defined here /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ./common/libpioneers_a-driver.o:(.bss+0x0): multiple definition of `driver'; libpioneers.a(libpioneers_a-driver.o):(.bss+0x0): first defined here collect2: error: ld returned 1 exit status rdlibtool: exec error upon slbt_exec_link_create_executable(), line 1614: (see child process error messages). ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-20210316-100935 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10.2.0 * clang version 11.1.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/11/bin /usr/lib/llvm/11 11.1.0 Python 3.8.8 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) * Available Rust versions: [1] rust-1.50.0 * The following VMs are available for generation-2: 1) IcedTea JDK 3.17.1 [icedtea-8] 2) IcedTea JDK 3.16.0 [icedtea-bin-8] 3) OpenJDK 8.282_p08 [openjdk-8] *) AdoptOpenJDK 8.282_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] icedtea-8 [2] icedtea-bin-8 [3] openjdk-8 [4] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Thu Mar 25 19:35:49 UTC 2021 emerge -qpvO games-board/pioneers [ebuild N ] games-board/pioneers-15.5 USE="nls -dedicated -help"
Created attachment 693699 [details] emerge-info.txt
Created attachment 693702 [details] emerge-history.txt
Created attachment 693705 [details] environment
Created attachment 693708 [details] etc.portage.tar.bz2
Created attachment 693711 [details] games-board:pioneers-15.5:20210325-201547.log
Created attachment 693714 [details] logs.tar.bz2
Created attachment 693717 [details] temp.tar.bz2
Not sure if -fno-common blocker is right here, using -fcommon doesn't fix this and also only happens with slibtool.
Created attachment 706545 [details, diff] Build fix for slibtool This happens because the build tries to link against libpioneers.a and libpioneers_a-driver.o even though the former already provides against the latter. I am not sure what bug upstream was trying to fix, but their fix is not correct. I attached a patch that fixes the build.
I reported this upstream with the attached patch. https://sourceforge.net/p/pio/patches/680/
Upstream reporting: the issue has been fixed with the proposed patch by orbea. It will be part of the next release (15.7). PS: Gentoo only has 15.5 (from 2018-03-14), the latest release of Pioneers is 15.6 from 2020-08-02
Keywords: PATCH UPSTREAM
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25e9ca17fb3b7e7c9f2554e642614b83330fda9b commit 25e9ca17fb3b7e7c9f2554e642614b83330fda9b Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2021-05-14 14:22:55 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2021-05-14 15:37:51 +0000 games-board/pioneers: Version bump to 15.6 Upstream-PR: https://sourceforge.net/p/pio/patches/680/ Thanks-to: orbea <orbea@riseup.net> Closes: https://bugs.gentoo.org/778248 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> games-board/pioneers/Manifest | 1 + .../pioneers/files/pioneers-15.6-slibtool.patch | 27 ++++++++++++ games-board/pioneers/pioneers-15.6.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 76 insertions(+)