/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: libraries/asmjit/libasmjit.a(virtmem.cpp.o): in function `asmjit::VirtMem_openAnonymousMemory(int*, bool)': virtmem.cpp:(.text+0x24c): undefined reference to `shm_open' /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: virtmem.cpp:(.text+0x268): undefined reference to `shm_unlink' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma-libressl-20190913-195803 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.37.0 * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.13.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm repository timestamp: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Thu, 19 Sep 2019 23:26:16 +0000 emerge -qpvO games-fps/gzdoom [ebuild U ] games-fps/gzdoom-4.2.1 [4.2.0] USE="gtk nonfree openmp -gtk2"
Created attachment 590404 [details] emerge-info.txt
Created attachment 590406 [details] emerge-history.txt
Created attachment 590408 [details] environment
Created attachment 590410 [details] etc.portage.tbz2
Created attachment 590412 [details] games-fps:gzdoom-4.2.1:20190920-004401.log.bz2
Created attachment 590414 [details] logs.tbz2
Created attachment 590416 [details] temp.tbz2
*** Bug 695196 has been marked as a duplicate of this bug. ***
I'm not able to reproduce this but I think it may be due to the linking order. Could you try this again but when it fails, rerun the failing command manually, moving -lrt to after libraries/asmjit/libasmjit.a in the list.
(In reply to James Le Cuirot from comment #9) > I'm not able to reproduce this but I think it may be due to the linking > order. Could you try this again but when it fails, rerun the failing command > manually, moving -lrt to after libraries/asmjit/libasmjit.a in the list. After configure phase adding that change to /var/tmp/portage/games-fps/gzdoom-4.2.1/work/gzdoom-4.2.1_build/build.ninja works. How to change that in the source as normal patch or sed before configure?
I'm having trouble recreating this error as well. It seems like something wrong with the GZDoom CMake configuration. Are you able to verify whether the same error occurs with the vanilla GZDoom 4.2.1 release (https://github.com/coelckers/gzdoom/archive/g4.2.1.tar.gz) without the Gentoo patches. That should let us know if the problem is something that needs to be fixed upstream.
It's okay, I understand the problem. The linking order is wrong and I'll prepare a patch when I get a minute. Whether it affects you or not probably depends on USE flags but not necessarily against this package.
Created attachment 591134 [details, diff] Patch against gzdoom Please try this patch before I send it upstream.
Ping? I really don't want to send this upstream if I'm not sure whether it helps.
(In reply to James Le Cuirot from comment #13) > Created attachment 591134 [details, diff] [details, diff] > Patch against gzdoom > > Please try this patch before I send it upstream. works
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3faf4a588314618d2747164741de1918205ffbf3 commit 3faf4a588314618d2747164741de1918205ffbf3 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2019-10-24 20:36:30 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2019-10-24 20:36:30 +0000 games-fps/gzdoom: Version bump to 4.2.3 The shm_open issue with libasmjit has gone away, at least temporarily, because upstream have reverted to an older version that doesn't use librt. Closes: https://bugs.gentoo.org/695192 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: James Le Cuirot <chewi@gentoo.org> games-fps/gzdoom/Manifest | 2 +- .../gzdoom-4.2.1-Introduce-the-BUILD_NONFREE-option.patch | 15 +++++++-------- .../gzdoom/{gzdoom-4.2.1.ebuild => gzdoom-4.2.3.ebuild} | 5 +++-- 3 files changed, 11 insertions(+), 11 deletions(-)