checking thread safety of required library functions... no configure: error: *** Thread test program failed. Your platform is not thread-safe. *** Check the file 'config.log'for the exact reason. *** *** You can use the configure option --enable-thread-safety-force *** to force threads to be enabled. However, you must then run *** the program in src/tools/thread and add locking function calls *** to your applications to guarantee thread safety. !!! ERROR: dev-db/libpq-8.1.3-r1 failed. Portage 2.1_pre7-r5 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r1, 2.6.16 i686) ================================================================= System uname: 2.6.16 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.12.0_pre17 dev-lang/python: 2.3.5-r2, 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer noclean nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/u/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/u/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 apm arts atm avcodec avi bitmap-fonts browserplugin bzip2 cdr crypt cups curl dba dri dvd dvdr eds emboss encode exif exiscan exiscan-acl ffmpeg fftw firefox flac foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java javacomm javadoc javamail jikes joystick jpeg kde kerberos ladspa ldap libg++ libwww lmtp mad mikmod mono motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly objc ogg oggvorbis opengl oss pam pdflib perl png postgres ppds pppd python qt quicktime readline sasl sdl soundtouch spell ssl tcltk tcpd threads tiff truetype truetype-fonts type1-fonts usb vorbis win32codecs wxgtk1bitmap-fonts xerces xine xml xml2 xmlrpc xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nv video_cards_nvidia%" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
*** Bug 129728 has been marked as a duplicate of this bug. ***
Created attachment 84525 [details] config.log file showing failed thread testing
That is weird!! I am not a "hands-on" guy, but I decided to take a look on the e-build myself. AS I tried USE="threads" FEATURES="keeptemp keepwork noclean" emerge libpq The thing compiled flawlessly... There goes my emerge --info output: Portage 2.1_pre7-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r2 i686) ================================================================= System uname: 2.6.16-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre17 dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer " DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.las.ic.unicamp.br/pub/gentoo/ http://adelie.polymtl.ca/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.ngi.it http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.las.ic.unicamp.br/pub/gentoo/" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X aac acpi4linux alsa ansi apache2 apm ared aredmem arts atlas avantgo avi bcmath bcp berkdb binfilter bitmap-fonts blas blender-game bluetooth bootspla bzip2 bzlib calendar cddb cdinstall cdparanoia cdrom cgi chroot clanJavaScript clanVoice cli cln codecs cpdflib cpudetection crypt ctype cups curl curlwrappers dba dbm dbx dedicated delays dnd doc dri dv dvb dvd dvdread emacs emboss encode evo exif fbcon fbdev fftw firefox flatfile foomaticdb fortran freetype fs ftp gb gcj gd gif ginac glade glgd glibc-compat20 gmp gnuplot gpm gs gsl gtk gtk2 hdf hdf5 icon iconv icq imap imlib2 inifile innodb ipcs ipv6 isdnlog jabber jack-tmpfs java javacomm javadoc javascript jce jikes joystick jpeg jython kde ldap libg++ libgd libwww linuxthreads-tls live lua lzo mad mbox mcve memlimit mha mikmod mimencode mixer mmx mmxext motif mp3 mpeg mpeg2 mpeg4 mplayer msn mysql mysqlfriends mysqli mythtv ncurses net network nls nntp nptl nsplugin nvidia ocaml offensive ogg oggvorbis opengl pam pcntl pcre pda pdf pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php png posix postgres postgresql ppds pppd psyco pyste python qt quicktime readline real reflection rtc sasl sdl server session simplexml soap sockets speedo spell spl sqlite sqlite3 sse sse2 ssl sysvipc tcpd tga theora threads tidy tokenizer truetype truetype-fonts type1 type1-fonts usb v4l v4l2 vim-with-x vnc vorbis win32codecs wxwindows xanim xemacs xinerama xinetd xml xml2 xmlreader xmlrpc xmlwriter xmms xsl xv xvmc yahoo zip zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_vga video_cards_vesa video_cards_fbdev video_cards_nv video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Tried again, without the FEATURES... Compiled fine again. Right now, I have no answers...
Odd. I have the same problem on x86_64-pc-linux-gnu. Updating this via 'emerge world' makes it fail claiming the platform is not thread safe. However, doing it like this USE="threads" FEATURES="keeptemp keepwork noclean" emerge libpq compiles it fine. Could this be a problem with the environment? Or is the autoconf macro not yet mature enough to perform this test reliably across architectures...
Ran into the same issue. Was able to compile this by changing my CFLAGS from CFLAGS="-mcpu=athlon-mp -O3 -pipe" to CFLAGS="-O3 -pipe" Appears not to like -mcpu.
Switched (as I should have long ago) to -mtune=athlon-mp and that also works. (In reply to comment #6) > Ran into the same issue. Was able to compile this by changing my CFLAGS from > CFLAGS="-mcpu=athlon-mp -O3 -pipe" > to > CFLAGS="-O3 -pipe" > > Appears not to like -mcpu.
Closing. Looks like obsolete CFLAGS. Compiles fine for me with -march=pentium4 -O2 -mno-tls-direct-seg-refs
*** Bug 147585 has been marked as a duplicate of this bug. ***
*** Bug 176742 has been marked as a duplicate of this bug. ***
I just ran into this on an x86 system as well. Looks like -Os will trigger it. Reset to -O2 for this ebuild and it went fine. info: Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7ttvn-matt i686) ================================================================= System uname: Linux-2.6.27-gentoo-r7ttvn-matt-i686-Intel-R-_Xeon-TM-_CPU_3.20GHz-with-glibc2.0 Timestamp of tree: Mon, 16 Feb 2009 22:00:01 +0000 distcc 3.0 i686-pc-linux-gnu [enabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.4.4-r14, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.8 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache distcc distlocks fixpackages notitles parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ " LDFLAGS="-Wl,-O1" LINGUAS="en en_US en_US.UTF8 utf8 UTF-8" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="R X a52 aac aalib acl acpi activefilter adabas ads alsa amr animgif ao apache2 arts artworkextra async asyncns atm audacious audiofile autoipd automount avahi bash-completion bashlogger bcmath berkdb birdstep blender-game bluetooth bookmarks branding bsf bzip2 cairo calendar caps ccache cdb cdda cddb cdio cdparanoia cdr cgi cgraph chicken cjk cli cmdctrl cmdsubmenu concurrentmodphp cpudetection cracklib crypt cscope ctype cups curl curlwrappers cursors cutterlimit cutterqueue cuttime daap db2 dbase dbmaker dbus ddepgentry dell device-mapper dhcp dia disk-partition divx djvu dmx dolbyinrec dri dtaus dv dvb dvd dvdarchive dvdchapjump dvdr dvi dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer eap-tls elf encode epiphany escreen esd esoob etwin examples exif extra extras fam fastbuild fat fdftk ffmpeg fftw filter firebird firefox flac flatfile fltk flup fluxbox fontconfig fortran fpx freetds ftp fuse gadu gcj gcrypt gd gdbm gdm gedit geldkarte ggi gif glib glitz gmedia gmp gnome gnome-keyring gnome-print gnutls gphoto2 gpm graphtft graphviz gs gstreamer gtk gtk2 gtkhtml guile hal hardlinkcutter hash hbci hddtemp hdri hfs howl-compat icecast icons iconv icu ieee1394 ifp imagemagick imap imlib immqt inkjar iodbc ipod iptv ipv6 isdnlog ithreads ithreds jabber jack java javamail jbig jfs jms jmx jpeg jpeg2k json jumpplay justify kde kdm kerberos kolab ladspa lapack latex lcms ldap ldapsasl libcaca libedit libffi libnotify libsamplerate libssh2 libwww liemikuutio lircsettings livebuffer lm_sensors logitech-mouse logrotate lua mad mailwrapper mainmenuhooks mbox mcve md5sum mdnsresponder-compat menuorg mhash midi mikmod mime mmap mmx mmxext mng mod_python modperl modplug mono motif mp2 mp3 mp4 mpeg mplayer mppe-mppc msql mssql mtp mudflap musepack musicbrainz mysql mysqli mzscheme nas nautilus ncurses netbeans network network-cron networking networkmanager nextaw nfs njb nls nntp nodrm noepg nptl nptlonly nsplugin ntfs ntlm_unsupported_patch nvtv objc objc++ objc-gc ocaml octave odbc offensive ofx ogg openal openexr opengl openid openmp osdmaxitems pam pch pcre pdf perl pgsql php pic pike pinplugin plotutils plugins png portaudio postgres postscript povray ppds pppd proxy_http pulseaudio python q32 qt3 qt3support qt4 quicktime quotas quotes radius rar realmedia redland reflection reiser4 reiserfs remote rle samba scanner script sdl seamonkey sendmail sensord session settime sftp simplexml slang slp smi smp smux sndfile sni snmp soap sockets socks5 sortrecords soundex speex spell spl sqlite srp sse sse2 ssl startup-notification subtitles suid svg swat switchtimer sybase sybasect sysfs syslog sysvipc t1lib tcl tcpd tga theora threads threadsafe tidy tiff timercmd timerinfo timidity tk tls tokenizer toolbar tools tordns tracker truetype unicode urandom usb utempter validinput vcd vhosts vidix vim vim-pager vim-sintax vim-syntax vim-with-x visualization volctrl vorbis wareagleicon wavpack wddx webdav webdav-serf webkit win32codecs winbind wma wmf wmp wxwindows x264 x86 xattr xcb xcomposite xfce xfs xft xine xinetd xml xmldoclet xmlreader xmlrpc xmlwriter xorg xpm xsl xulrunner xvid xvmc yaepg yaz yellownet ziffy zip zlib" ALSA_CARDS="intel8x0 intel8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="cern_meta imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http substitute version mime mime_magic mem_cache log_config status speling setenvif rewrite include headers filter file_cache ext_filter expires env disk_cache dir deflate dav_lock dav_fs dav cache autoindex authz_user authz_owner authz_host alias actions auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile info logio negotiation unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_US.UTF8 utf8 UTF-8" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
same problem for me with a fresh new installation (stage3-2008.0, update, and emerge -e world) while emerging libpq-8.0.15 Portage 2.1.6.7 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r8-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9500_@_2.53GHz-with-glibc2.2.5 Timestamp of tree: Mon, 20 Apr 2009 06:00:01 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.4.4-r13, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -mmmx -msse -msse2 -msse3 -msse4.1 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -mmmx -msse -msse2 -msse3 -msse4.1 -pipe" DISTDIR="/var/tmp/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" LINGUAS="it" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/sunrise /usr/local/overlays/baltasar /usr/local/overlays/java-overlay /usr/local/overlays/zugaina /usr/local/overlays/enlightenment /usr/local/overlays/desktop-effects /usr/local/overlays/foo-sharp /usr/local/portage" SYNC="rsync://baltasar/gentoo-portage" USE="7zip X a52 aac acl acpi alsa amd64 amuled apache2 asf audacious avahi avi bash-completion berkdb bluetooth branding browserplugin bzip2 cairo cddb cdparanoia cdr chm cli cracklib crypt curl dbus dell dri dts dv dvd dvdr dvdread eds emboss encode esd evo exif expat fam fbcon fbsplash ffmpeg flac gcj gd gdbm gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal iconv idn ieee1394 imagemagick innodb ipod ipv6 isdnlog jack java jpeg jpeg2k kerberos lcms ldap libnotify libvisual lirc lzo mad matroska midi mikmod mmx mng mod modplug mono mp3 mpd mpeg mtp mudflap multilib musepack mysql mythtv nautilus ncurses nfs nls nptl nptlonly nsplugin nvidia objc odbc ogg oggvorbis openal openexr opengl openmp pam pcre pdf perl png postgres ppds pppd python qt qt3support qt4 quicktime readline reflection samba scanner schroedinger sdl session skins sndfile speex spell spl sqlite srt sse sse2 sse3 ssl startup-notification stream streamout svg sysfs tagwriting tcpd tga theora threads tiff truetype tv unicode usb userlocales v4l vcd vhosts vorbis wacom wavpack webservices wmf wxwindows x264 xcb xine xinerama xml xml2 xorg xosd xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard wacom evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
In reply to Comment #12 From Fabio Bonfante (2009-04-21 17:24:35) > same problem for me with a fresh new installation (stage3-2008.0, update, and > emerge -e world) while emerging libpq-8.0.15 If you (as I do) have done 'emerge -e' before last updating glibc, try to reemerge sys-apps/sandbox. WfM.