Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459392 - x11-libs/cairo-1.12.12 emerge fails on "no mutex implementation found"
Summary: x11-libs/cairo-1.12.12 emerge fails on "no mutex implementation found"
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-27 01:48 UTC by disperato
Modified: 2013-08-27 12:16 UTC (History)
2 users (show)

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


Attachments
full_log_for_failed_emerge_of_cairo (cairo-1.12.12_20130226-113010.log,29.86 KB, text/plain)
2013-02-27 01:48 UTC, disperato
Details

Note You need to log in before you can comment on or make changes to this bug.
Description disperato 2013-02-27 01:48:48 UTC
Created attachment 340244 [details]
full_log_for_failed_emerge_of_cairo

x11-libs/cairo-1.12.12 emerge fails on "no mutex implementation found"
All versions currently in portage (1.10-r3 and others) do the same.

Tried to disable/enable threads use flag, to no avail.
Problem occurs on intel desktop. On amd laptop cairo merges fine.

________________________________________________________________________
Here are significant lines from log:

make[3]: Entering directory `/var/tmp/portage/x11-libs/cairo-1.12.12/work/cairo-1.12.12/src'
/bin/sh ../libtool  --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I. -I/usr/include/pixman-1        -I/usr/include/freetype2    -I/usr/include/libpng15                              -O2 -march=nocona -pipe -finline-limit=1200 -c -o cairo-analysis-surface.lo cairo-analysis-surface.c
libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I. -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -O2 -march=nocona -pipe -finline-limit=1200 -c cairo-analysis-surface.c  -fPIC -DPIC -o .libs/cairo-analysis-surface.o
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:396,
                 from cairo-analysis-surface.c:37:
cairo-mutex-impl-private.h:262:3: error: #error "XXX: No mutex implementation found.  Cairo will not work with multiple threads.  Define CAIRO_NO_MUTEX to 1 to acknowledge and accept this limitation and compile cairo without thread-safety support."
In file included from cairo-mutex-type-private.h:45:0,
                 from cairo-scaled-font-private.h:45,
                 from cairoint.h:396,
                 from cairo-analysis-surface.c:37:
cairo-mutex-impl-private.h:271:3: error: unknown type name 'cairo_mutex_impl_t'
In file included from cairo-scaled-font-private.h:45:0,
                 from cairoint.h:396,
                 from cairo-analysis-surface.c:37:
cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
cairo-mutex-type-private.h:55:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined.  Check cairo-mutex-impl-private.h."
cairo-mutex-type-private.h:139:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined"
cairo-mutex-type-private.h:142:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined"
cairo-mutex-type-private.h:151:3: error: #error "CAIRO_MUTEX_IMPL_NIL_INITIALIZER not defined"
cairo-mutex-type-private.h:161:1: error: unknown type name 'cairo_mutex_impl_t'
In file included from cairo-fixed-private.h:42:0,
                 from cairoint.h:2022,
                 from cairo-analysis-surface.c:37:
cairo-wideint-private.h:121:1: warning: '__visibility__' attribute ignored [-Wattributes]
cairo-wideint-private.h:122:1: warning: '__visibility__' attribute ignored [-Wattributes]
make[3]: *** [cairo-analysis-surface.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.12/work/cairo-1.12.12/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.12/work/cairo-1.12.12/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/cairo-1.12.12/work/cairo-1.12.12'
make: *** [all] Error 2
 * ERROR: x11-libs/cairo-1.12.12 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=x11-libs/cairo-1.12.12'`,
 * the complete build log and the output of `emerge -pqv '=x11-libs/cairo-1.12.12'`.
 * The complete build log is located at '/var/log/portage/emerged/x11-libs:cairo-1.12.12:20130226-113010.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/x11-libs/cairo-1.12.12/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-libs/cairo-1.12.12/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-libs/cairo-1.12.12/work/cairo-1.12.12'
 * S: '/var/tmp/portage/x11-libs/cairo-1.12.12/work/cairo-1.12.12'

________________________________________________________________________
# emerge --info

Portage 2.1.11.52 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.7.9-gentoo i686)
=================================================================
System uname: Linux-3.7.9-gentoo-i686-Pentium-R-_Dual-Core_CPU_E6700_@_3.20GHz-with-gentoo-2.1
KiB Mem:     2848464 total,    988680 free
KiB Swap:    2224964 total,   2224960 free
Timestamp of tree: Tue, 26 Feb 2013 07:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            3.4.6-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,new -Wl,--hash-style=gnu"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa berkdb bzip2 cli consolekit cracklib crypt cxx dbus device-mapper dri fortran gdbm gpm gtk html iconv ipv6 jpeg lock modules mudflap ncurses nls nptl openmp pam pcre policykit readline session ssl startup-notification tcpd thunar udev unicode x86 zlib" 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="authn_core authz_core socache_shmcb unixd 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="ptp2" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Rafał Mużyło 2013-04-07 08:47:23 UTC
> checking whether cairo's pthread feature could be enabled... no (can't link with -lpthread or -pthread)

So the obvious question: attach config.log.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-08-27 12:16:31 UTC
Please reopen when you can provide the information requested in comment 1.