Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 602118

Summary: x11-libs/cairo-1.14.6 fails to compile on armv7a-hardfp-musl-vanilla
Product: Gentoo Linux Reporter: Michael Jones <gentoo>
Component: Current packagesAssignee: Alexandre Rostovtsev (RETIRED) <tetromino>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: herrtimson, musl, tsmksubc, x11
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log.gz

Description Michael Jones 2016-12-09 09:23:02 UTC
Created attachment 455598 [details]
build.log.gz

armv7a-hardfp-musl-vanilla portage # emerge --info x11-libs/cairo
Portage 2.3.1 (python 2.7.12-final-0, hardened/linux/musl/arm/armv7a, gcc-4.9.4, musl-1.1.15-r2, 4.7.10-hardened armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.10-hardened-armv7l-with-gentoo-2.3
KiB Mem:    65970600 total,  23003496 free
KiB Swap:   10485756 total,  10470988 free
Timestamp of repository gentoo: Fri, 09 Dec 2016 08:22:13 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::musl
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4-r99::musl
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::musl (virtual/os-headers)
sys-libs/musl:            1.1.15-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

musl
    location: /usr/portage-overlays/musl
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/musl.git
    masters: gentoo

Installed sets: @archive, @arm-base-system, @portage, @vcs
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-musleabi"
CFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-musleabi"
CONFIG_PROTECT="/etc"
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"
CXXFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y"
FCFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j30"
PKGDIR="/usr/portage-packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="a52 aac acpi alsa apng arm avahi bindist branding cairo cdda cdr cli cracklib crypt cxx d-pau dbus dconf dri dts dvd dvdr egl emboss encode exif fam ffmpeg flac fortran gcj gd gif gnome-keyring gpm gstreamer gtk gudev iconv icu ipv6 jpeg lcms libnotify libsecret lm_sensors mad minizip mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pax_kernel pcre pdf pic png policykit ppds pulseaudio python qt5 readline samba sdl seccomp session sound spell sqlite ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb vaapi vorbis wayland widevine wifi xattr xcb xinerama xml xv xvid zeroconf zlib" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="musl" 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 ublox ubx" GRUB_PLATFORMS="coreboot efi-64 emu qemu pc" INPUT_DEVICES="evdev mouse keyboard libinput" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm aarch64 x86_64" QEMU_USER_TARGETS="arm aarch64 x86_64" RUBY_TARGETS="ruby21 ruby21" USERLAND="GNU" VIDEO_CARDS="vesa modesetting 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:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON





libtool: compile:  armv7a-hardfloat-linux-musleabi-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src -I.. -I/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src -I/usr/include/pixman-1 -I/usr/in
clude/freetype2 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libdrm -I/usr/include/libpng16 -Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked
 -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasin
g -fno-common -Wno-unused-but-set-variable -O2 -pipe -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -c /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo.c  -fPIC -DPIC -o .libs/cairo.o
In file included from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:45:0,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-scaled-font-private.h:45,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairoint.h:422,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-bentley-ottmann.c:39:
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/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 ac
cept this limitation and compile cairo without thread-safety support."
 # 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 /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:45:0,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-scaled-font-private.h:45,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairoint.h:422,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-bentley-ottmann.c:39:
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-impl-private.h:271:11: error: unknown type name ‘cairo_mutex_impl_t’
   typedef cairo_mutex_impl_t cairo_recursive_mutex_impl_t;
           ^
In file included from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-scaled-font-private.h:45:0,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairoint.h:422,
                 from /var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-bentley-ottmann.c:39:
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:49:3: error: #error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_LOCK not defined.  Check cairo-mutex-impl-private.h."
   ^
/var/tmp/portage/x11-libs/cairo-1.14.6/work/cairo-1.14.6/src/cairo-mutex-type-private.h:52:3: error: #error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
 # error "CAIRO_MUTEX_IMPL_UNLOCK not defined.  Check cairo-mutex-impl-private.h."
Comment 1 Felix Janda 2016-12-09 12:56:15 UTC
Does it compile with USE="-glib"?
Comment 2 tt_1 2017-12-01 08:36:20 UTC
I think this one can be closed, even though this bug was reported against an arm system. I can recall to have merged 1.14.8 a few weeks ago successfully with the latest (!) toolchain.
Comment 3 Matt Turner gentoo-dev 2017-12-01 09:14:42 UTC
(In reply to tt_1 from comment #2)
> I think this one can be closed, even though this bug was reported against an
> arm system. I can recall to have merged 1.14.8 a few weeks ago successfully
> with the latest (!) toolchain.

On ARM? With musl? And hardened?
Comment 4 tt_1 2017-12-01 09:22:05 UTC
Yes, on arm with musl vanilla profile. Isn't that what this bug is about? The emerge --info looks as if this is a hardened profile where the device has booted into, but the compile was executed in a chroot which is what seems to be a vanilla version of the musl stage3, initially. However, 1.14.6 is not in tree anymore, so from my point of view the bug can and should be closed.
Comment 5 Matt Turner gentoo-dev 2017-12-01 17:46:10 UTC
(In reply to tt_1 from comment #4)
> Yes, on arm with musl vanilla profile. Isn't that what this bug is about?
> The emerge --info looks as if this is a hardened profile where the device
> has booted into, but the compile was executed in a chroot which is what
> seems to be a vanilla version of the musl stage3, initially. However, 1.14.6
> is not in tree anymore, so from my point of view the bug can and should be
> closed.

Right. It's just a very specific configuration, and you didn't mention that it's what you were using.

Michael, can you confirm that the current stable cairo builds in your configuration?
Comment 6 Michael Jones 2017-12-01 17:50:32 UTC
I won't be able to, sorry. I no longer have that environment setup.

If I set it up again, and run into this bug again, i'll re-open the bug.