x86_64-pc-linux-gnu-g++ -std=gnu++11 -O2 -pipe -march=native -fno-diagnostics-color -mno-ms-bitfields -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -o dosbox dosbox.o cpu/libcpu.a debug/libdebug.a dos/libdos.a fpu/libfpu.a hardware/libhardware.a gui/libgui.a ints/libints.a misc/libmisc.a shell/libshell.a hardware/mame/libmame.a hardware/serialport/libserial.a libs/decoders/libdecoders.a libs/gui_tk/libgui_tk.a libs/nuked/libnuked.a libs/ppscale/libppscale.a -L/usr/lib64 -lSDL2 -lpng -lz /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: gui/libgui.a(sdl_mapper.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[3]: *** [Makefile:428: dosbox] Error 1 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-20200801-132524 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-10.2.0 * clang version 10.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.1 Available Python interpreters, in order of preference: [1] python3.7 [2] python3.9 (fallback) [3] python3.8 (fallback) [4] python3.6 (fallback) [5] python2.7 (fallback) [6] pypy3 (fallback) Available Ruby profiles: [1] ruby25 (with Rubygems) * Available Rust versions: [1] rust-bin-1.45.2 * The Glorious Glasgow Haskell Compilation System, version 8.8.4 timestamp(s) of HEAD at this tinderbox image: /var/db/repos/gentoo Fri Aug 7 01:35:29 AM UTC 2020 emerge -qpvO games-emulation/dosbox-staging [ebuild N ] games-emulation/dosbox-staging-0.75.0 USE="-alsa -debug -dynrec -opengl -opus"
Created attachment 653510 [details] emerge-info.txt
Created attachment 653512 [details] emerge-history.txt
Created attachment 653514 [details] environment
Created attachment 653516 [details] etc.portage.tbz2
Created attachment 653518 [details] games-emulation:dosbox-staging-0.75.0:20200807-025416.log
Created attachment 653520 [details] logs.tbz2
Created attachment 653522 [details] temp.tbz2
This is due to a missing -lpthread at the linking stage.
This is triggered with USE="-alsa", -lpthread linking should probably be moved out of a conditional there
*** Bug 738120 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b94739c84fec1e575996b979cdbda9bd7cb462b commit 5b94739c84fec1e575996b979cdbda9bd7cb462b Author: Bernard Cafarelli <voyageur@gentoo.org> AuthorDate: 2020-08-20 12:35:29 +0000 Commit: Bernard Cafarelli <voyageur@gentoo.org> CommitDate: 2020-08-20 12:35:42 +0000 games-emulation/dosbox-staging: 0.75.1 bump Also fix compilation with USE=-alsa Closes: https://bugs.gentoo.org/736234 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org> games-emulation/dosbox-staging/Manifest | 1 + .../dosbox-staging/dosbox-staging-0.75.1.ebuild | 49 ++++++++++++++++++++++ .../files/dosbox-staging-0.75.1-pthread.patch | 11 +++++ 3 files changed, 61 insertions(+)