echo 'Conflicts:' >> vpx.pc echo 'Libs: -L${libdir} -lvpx' >> vpx.pc echo 'Cflags: -I${includedir}' >> vpx.pc vp8/common/generic/systemdependent.c.o: In function `vp8_machine_specific_config': systemdependent.c:(.text+0xbb): undefined reference to `pthread_once' collect2: ld returned 1 exit status make[1]: *** [libvpx.so.1.1.0] Error 1 make: *** [.DEFAULT] Error 2 USE="mmx sse sse2 sse3" Reproducible: Always emerge --info Portage 2.2.0_alpha105 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r1, 3.3.3-gentoo x86_64) ================================================================= System uname: Linux-3.3.3-gentoo-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.1 Timestamp of tree: Tue, 15 May 2012 19:45:01 +0000 ccache version 3.1.7 [disabled] app-shells/bash: 4.2_p28 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r2, 3.2.3-r1 dev-util/ccache: 3.1.7 dev-util/cmake: 2.8.8-r2 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.11.5 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.6.3 sys-devel/gcc-config: 1.7.1 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 overlays-oschtan Installed sets: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA PUEL skype-eula googleearth AdobeFlash-10.3 google-talkplugin google-chrome Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/red5/conf /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/red5-webapps" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo" CXXFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10" DISTDIR="/mnt/distfiles" FEATURES="assume-digests binpkg-logs buildpkg candy collision-protect distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr" FFLAGS="" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,--hash-style=gnu,-O1 -Wl,--as-needed" LINGUAS="ru" MAKEOPTS="-j4" PKGDIR="/mnt/gentoo/package" PORTAGE_CONFIGROOT="/" 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="/mnt/gentoo" PORTDIR="/mnt/gentoo/gentoo-tree" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage" USE="3dnow 3dnowext X a52 aac aacplus aalib acpi action_modeswitch additions alsa amd64 amr ao ape auto-hinter berkdb bzip2 cairo cgi cleartype cli consolekit cracklib crypt ctype curl custom-cflags cxx dbus declarative demos development djvu dri dv dvd emerald enca encode exif extras faac fastcgi fbcondecor ffmpeg fontconfig fortran ftp fuse gd gecko gecko-mediaplayer gif git glitz gphoto2 gpm gstreamer gtk3 gudev hddtemp iconv imlib jabber java jbig jpeg jpeg2k kde kvm lame lastfm latin1 lcms libkms libnotify lm_sensors lzma mad mikmod mjpeg mmx mmxext mng mod modules mp3 mp4 mpeg mplayer mudflap multilib multitarget mysql natspec ncurses nls npp nptl nsplugin objc objc++ objc-gc ogg openexr opengl openmp oscar pam pcre pdf perl php plasma png policykit povray pppd prison pulse pulseaudio python python3 qt3support qt4 rar rcc readline realtime reflection rtc sdk sdl sensord session skey slang sndfile source speex spell spl sqlite sqlite3 srt sse sse2 sse3 sse4a ssl startup-notification suid svg symlink syslog system-wide taglib tcpd templates theora thumbnail tidy tiff truetype udev udisks unicode unsupported uploadprogress usb vcd vde vdpau video vorbis vpx webdav-neon wxwidgets x264 xattr xcb xcomposite xml xorg xpm xscreensaver xv xvid xvmc yv12 zip 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" CAMERAS="kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" PHP_TARGETS="php5-4" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 312027 [details] build.log
The same problem here on ~x86.
Created attachment 312511 [details] build.log
Created attachment 312513 [details] environment
Created attachment 312515 [details] emerge --info
With USE="-threads" the packages shouldn't use pthread at all, but it does. As a temporary workaround with USE="threads" it builds fine.
I could see same problem: vp8/common/generic/systemdependent.c.o: In function `vp8_machine_specific_config': systemdependent.c:(.text+0xd9): undefined reference to `pthread_once' collect2: ld returned 1 exit status
*** Bug 446788 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 405813 ***
This is not a dup of a bug 405813, because in my case ssse3 USE flag is never used nor supported by the hardware affected.
it really is the same despite of your flags, the build systems lacks -pthread in both cases you can try CFLAGS="-pthread" and it should compile
or USE="threads". propably the package shouldn't have such USE flag at all
sorry, you are right, wrong duplication
CFLAGS="-pthread" does not work (see attached build.log)
Created attachment 346288 [details] build.log from emerge using CFLAGS="-pthread"
tests must be disable in that situation... I reported the issue upstream long ago and forgot to fix in the ebuild =|
fixed in libvpx-1.2.0_pre20130625
This is fixed in the 1.2 ebuild but still exists on ARM in 1.1.0 as of glibc 2.16. Is the 1.2 build going to go stable at some point, and if not, can we get the fix backported to 1.1.0?