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

Bug 534056

Summary: app-emulation/bochs-2.6 USE=debugger - ld: gui/libgui.a(gtk_enh_dbg_osdep.o): undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
Product: Gentoo Linux Reporter: nibon7
Component: Current packagesAssignee: Luca Barbato <lu_zero>
Status: RESOLVED TEST-REQUEST    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 372079    
Attachments: emerge info
build.log
bochs-libs.patch

Description nibon7 2014-12-31 03:23:03 UTC
Created attachment 392728 [details]
emerge info

make[1]: Entering directory '/var/tmp/portage/app-emulation/bochs-2.6/work/bochs-2.6/iodev/sound'
/bin/sh ../../libtool --mode=compile --tag CXX x86_64-pc-linux-gnu-g++ -c -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs -I./../../instrument/stubs -march=core-avx2 -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES   -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT  soundmod.cc -o soundmod.lo
mkdir .libs
 x86_64-pc-linux-gnu-g++ -c -I.. -I../.. -I./.. -I./../.. -I../../instrument/stubs -I./../../instrument/stubs -march=core-avx2 -O2 -pipe -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT soundmod.cc  -fPIC -DPIC -o .libs/soundmod.o
 /bin/sh ../../libtool --mode=link --tag CXX x86_64-pc-linux-gnu-g++ -module soundmod.lo  -o libbx_soundmod.la -rpath /usr/lib64
 x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtbeginS.o  .libs/soundmod.o  -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/crtn.o  -Wl,-soname -Wl,libbx_soundmod.so.0 -o .libs/libbx_soundmod.so.0.0.0
 (cd .libs && rm -f libbx_soundmod.so.0 && ln -s libbx_soundmod.so.0.0.0 libbx_soundmod.so.0)
 (cd .libs && rm -f libbx_soundmod.so && ln -s libbx_soundmod.so.0.0.0 libbx_soundmod.so)
 creating libbx_soundmod.la
 (cd .libs && rm -f libbx_soundmod.la && ln -s ../libbx_soundmod.la libbx_soundmod.la)
 make[1]: Leaving directory '/var/tmp/portage/app-emulation/bochs-2.6/work/bochs-2.6/iodev/sound'
 echo done
 done
  * ERROR: app-emulation/bochs-2.6::gentoo failed (compile phase):
  *   emake failed
  *
  * If you need support, post the output of `emerge --info '=app-emulation/bochs-2.6::gentoo'`,
  * the complete build log and the output of `emerge -pqv '=app-emulation/bochs-2.6::gentoo'`.
  * The complete build log is located at '/var/tmp/portage/app-emulation/bochs-2.6/temp/build.log'.
  * The ebuild environment file is located at '/var/tmp/portage/app-emulation/bochs-2.6/temp/environment'.
  * Working directory: '/var/tmp/portage/app-emulation/bochs-2.6/work/bochs-2.6'
  * S: '/var/tmp/portage/app-emulation/bochs-2.6/work/bochs-2.6'

>>> Failed to emerge app-emulation/bochs-2.6, Log file:

>>>  '/var/tmp/portage/app-emulation/bochs-2.6/temp/build.log'

 * Messages for package app-emulation/bochs-2.6:

 * ERROR: app-emulation/bochs-2.6::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=app-emulation/bochs-2.6::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/bochs-2.6::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/bochs-2.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/bochs-2.6/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/bochs-2.6/work/bochs-2.6'
 * S: '/var/tmp/portage/app-emulation/bochs-2.6/work/bochs-2.6'
Comment 1 nibon7 2014-12-31 03:24:10 UTC
Created attachment 392730 [details]
build.log
Comment 2 nibon7 2014-12-31 06:53:20 UTC
Created attachment 392736 [details, diff]
bochs-libs.patch
Comment 3 wolfwood 2015-02-21 03:21:25 UTC
I also experience this with portage and with the source (on both gentoo and arch).  I similarly found the solution is to manually add -lpthread.
Comment 4 Pacho Ramos gentoo-dev 2016-05-28 08:28:05 UTC
please retry with 2.6.8