Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124668 - dev-libs/glib-2.8.5: autoconf fails to find pthread
Summary: dev-libs/glib-2.8.5: autoconf fails to find pthread
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 10:32 UTC by Adam Carheden
Modified: 2006-04-02 07:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/tmp/portage/glib-2.8.5/work/glib-2.8.5/config.log (config.log,160.05 KB, application/octet-stream)
2006-03-02 10:34 UTC, Adam Carheden
Details
/var/tmp/portage/glib-2.8.5/work/glib-2.8.5/config.log (config.log,158.53 KB, application/octet-stream)
2006-03-02 11:35 UTC, Adam Carheden
Details
config.log (config.log,157.60 KB, text/plain)
2006-04-02 07:39 UTC, Sebastian Flothow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Carheden 2006-03-02 10:32:39 UTC
Steps to reproduce:
1) Untar stage3-pentium4-2005.1-r1.tar.bz2 somewhere
2) Untar some portage snapshot (I used portage-20060223.tar.bz2)
2) Chroot
3) emerge --sync
4) emerge --metadata # It's in my build script, but probably unrelated.
5) emerge glib
6) Note the following error:
checking for pthread_create/pthread_join... no
checking for pthread_create/pthread_join in -lpthread... no
checking for pthread_create/pthread_join in -lpthread32... no
checking for pthread_create/pthread_join in -lpthreads... no
checking for pthread_create/pthread_join in -lthread... no
checking for pthread_create/pthread_join in -ldce... no
configure: error: I can't find the libraries for the thread implementation
                posix. Please choose another thread implementation or
                provide information on your thread implementation.
                You can also run 'configure --disable-threads'
                to compile without thread support.

/var/tmp/portage/glib-2.8.5/work/glib-2.8.5/config.log will follow in an attachment.

And emerge --info:

Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11.4-20a-bigsmp_32master_20051128b i686)
=================================================================
System uname: 2.6.11.4-20a-bigsmp_32master_20051128b i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode expat foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Adam Carheden 2006-03-02 10:34:25 UTC
Created attachment 81123 [details]
/var/tmp/portage/glib-2.8.5/work/glib-2.8.5/config.log
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 10:41:39 UTC
Your toolchain is outdated. Reopen if this is reproducible with latest stable gcc/glibc/binutils...
Comment 3 Adam Carheden 2006-03-02 11:33:08 UTC
(In reply to comment #2)
> Your toolchain is outdated. Reopen if this is reproducible with latest stable
> gcc/glibc/binutils...
> 
Yes, it still happens with the latest version of stuff. Below output from the machine on which I originally had the problem. It should be basically the same except I've run `emerge --update --deep world`, and it has the PGI Fortran compiler installed, which glib's autoconf detects.

 emerge -t gcc glibc binutils
[ebuild   R   ] sys-devel/binutils-2.16.1
[ebuild   R   ] sys-libs/glibc-2.3.5-r2
[ebuild   R   ] sys-devel/gcc-3.4.5

emerge --info 
Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.11.4-20a-bigsmp_32master_20051128b i686)
=================================================================
System uname: 2.6.11.4-20a-bigsmp_32master_20051128b i686 Intel(R) Xeon(TM) CPU 3.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-Os -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/cluster_packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 crypt cups eds emboss encode esd expat fam foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 hal idn imlib ipv6 java jpeg kde lcms ldap libg++ libwww mad mikmod mng motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline sdl spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY

config.log will be attached.
Comment 4 Adam Carheden 2006-03-02 11:35:03 UTC
Created attachment 81131 [details]
/var/tmp/portage/glib-2.8.5/work/glib-2.8.5/config.log
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-02 11:36:06 UTC
(In reply to comment #3)
> Yes, it still happens with the latest version of stuff.

> [ebuild   R   ] sys-devel/gcc-3.4.5

Yeah, you just didn't switch your gcc at all.

> Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2,

Read out gcc upgrading guide: http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 6 Sebastian Flothow 2006-04-02 07:38:20 UTC
I'm having the very same problem with glib-2.8.6, and I'm actually in the process of upgrading my gcc as per the instructions. Configure says:

checking for thread implementation... posix
checking thread related cflags... -D_REENTRANT
checking for pthread_create/pthread_join... no
checking for pthread_create/pthread_join in -lpthread... no
checking for pthread_create/pthread_join in -lpthread32... no
checking for pthread_create/pthread_join in -lpthreads... no
checking for pthread_create/pthread_join in -lthread... no
checking for pthread_create/pthread_join in -ldce... no
configure: error: I can't find the libraries for the thread implementation
                posix. Please choose another thread implementation or
                provide information on your thread implementation.
                You can also run 'configure --disable-threads'
                to compile without thread support.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/glib-2.8.6/work/glib-2.8.6/config.log

!!! ERROR: dev-libs/glib-2.8.6 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

I'm attaching the config.log. I also tried re-emerging glibc and lowering my CFLAGS, to no avail.
Comment 7 Sebastian Flothow 2006-04-02 07:39:45 UTC
Created attachment 83712 [details]
config.log