Created attachment 310975 [details] build.log Compiling stops with mklessfs-lib_common.o:lib_common.c:function try_global_lock: error: undefined reference to 'pthread_mutex_trylock'
Portage 2.1.10.57 (default/linux/x86/10.0/desktop, gcc-4.5.3, glibc-2.15-r1, 3.3.4-pf i686) ================================================================= System Settings ================================================================= System uname: Linux-3.3.4-pf-i686-Intel-R-_Pentium-R-_4_CPU_3.00GHz-with-gentoo-2.1 Timestamp of tree: Sun, 06 May 2012 12:45:01 +0000 ccache version 3.1.7 [enabled] app-shells/bash: 4.2_p28 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.8-r1 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.1 sys-apps/openrc: 0.9.9.3 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.5 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.3-r2 sys-devel/gcc-config: 1.7 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.3 (virtual/os-headers) sys-libs/glibc: 2.15-r1 Repositories: gentoo anarchy xfce-dev science gentoo-arm qt-symbian-overlay ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="*" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -msse3 -msahf --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=generic -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=prescott -msse3 -msahf --param l1-cache-size=16 --param l1-cache-line-size=64 --param l2-cache-size=1024 -mtune=generic -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=8.9 --keep-going --with-bdeps=y --complete-graph --autounmask-keep-masks" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.osuosl.org/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ " LANG="de_AT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="de sk en he ru el" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--progress --delete-before --human-readable" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/anarchy /var/lib/layman/xfce-dev /var/lib/layman/science /var/lib/layman/gentoo-arm /var/lib/layman/qt-symbian-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac aalib ace acl acpi adplug alsa amr amrnb aotuv apng bash-completion bluetooth branding bzip2 cairo cdda cdr cjk cli compress consolekit cracklib crypt cups cxx dbus dc1394 device-mapper dga diet dietlibc directfb dpms dri dts dv dvb dvd dvdr dvi emboss enca encode exif extras fam fat ffmpeg firefox fits flac fontforge fortran fuse gdbm gdu gif git glade gpm grace gs gtk hfs html iconv icu id3 image imagemagick imap iplsrc ipp ipv6 jpeg keyboard kqemu lash latex lcms libnotify libwww lm_sensors lock lxde lzma lzo mad maildir menu-plugin mixer mmx mng modules monolithic-build mouse mp3 mp4 mpd mpeg mudflap mysql nano-syntax ncurses nptl nptlonly nsplugin ntfs nvidia objc objc++ objc-gc ogg opengl openmp optimization osdmenu pam pango parport passwd pathbar pcf pcre pdf pgplot pixmaps pl2303 plugins png pnm policykit poppler-data portage ppds pppd profiler psf pvr q32 qemu qemu-ifup qmail-spp qt3support quicktime radio rar raw rawio rdesktop rdesktop-vrdp rdpusb readline resolvconf rotor rpm rtf rtsp ru-dv ru-g ru-i ru-k s3 samba satasii scanner schroedinger science scsi sdl sdl-image sdl-sound sdlaudio seamonkey sensord serprog session sheep shm shorten sid smartcard smbclient smime smp sms sound sourcecaps spell sse sse2 sse3 ssh ssl startup-notification strong-optimization sudo svg svga swat symlink sysfs system-cxx-headers tcpd teletext tga theora thunar tiff toolame tools tremor truetype twolame type3 udev unicode unzip usb utils v4l v4l2 vaapi vamp vcd vcdinfo vde vorbis wav wavpack webcam webphoto webstart width wiki win32 win32codecs wma wmf wordperfect wxwidgets x264 x86 xcb xcf xcomposite xfce xft xml xmlreader xorg xpm xscreensaver xterm-color xulrunner xv xvid zlib zoran" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon casio casio_qv fuji samsung" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de sk en he ru el" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm armeb i386 m68k ppc x86_64" QEMU_USER_TARGETS="arm armeb i386 m68k ppc x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="canon630u" USERLAND="GNU" VIDEO_CARDS="nouveau" XFCE_PLUGINS="brightness menu trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
I can't reproduce it. Seems like your c library misses the pthread definitions. Do you have dev-libs/libpthread-stubs installed? What is the output of qfile /usr/include/pthread.h
(In reply to comment #2) > I can't reproduce it. Seems like your c library misses the pthread > definitions. Do you have dev-libs/libpthread-stubs installed? What is the > output of > > qfile /usr/include/pthread.h It might have been the ld.gold, Gold linker is known to have sióme troubles. /usr/bin/binutils-config --linker ld.bfd And it compiles without errors Probably resolved? BTW: It's very difficulte to find out which linker is default, are there known ebuilds/programs switching (silently?) to ld.gold…?
I've no idea. Ask on forums or gentoo-user mailing list