Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 544968 - x11-misc/colord-1.2.9: fails to build with ABI_X86="64 32" and USE="-gusb"
Summary: x11-misc/colord-1.2.9: fails to build with ABI_X86="64 32" and USE="-gusb"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-29 15:37 UTC by Dell'Aica Valentino
Modified: 2015-03-29 18:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dell'Aica Valentino 2015-03-29 15:37:21 UTC
Colord fail to build wit ABI_X86="64 32" enabled. 

Reproducible: Always

Steps to Reproduce:
1.x11-misc/colord-1.2.9



Portage 2.2.14 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.3, glibc-2.20-r2, 3.18.7-gentoo x86_64)
=================================================================
System uname: Linux-3.18.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-4702MQ_CPU_@_2.20GHz-with-gentoo-2.2
KiB Mem:     8075508 total,   2235944 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Sat, 28 Mar 2015 10:00:01 +0000
ld ld di GNU (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.1.9-r4
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.11
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.6
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r2
Repositories: gentoo
Installed sets: @openFrameworks
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA openssl"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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="-march=core-avx2 -O2 -pipe"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/home/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
USE="X aac acl acpi alsa amd64 avx avx2 bzip2 cairo cli cracklib crypt cups curl cxx dbus dri encode exif ffmpeg flac fontconfig fortran gif gimp gtk iconv icu jpeg lcms libav libnotify libsamplerate lzma minimal mmx mmxext modules mp3 mtp multilib ncurses nls nptl ogg opengl openmp pam pcre pdf png pulseaudio qt4 raw readline sdl session smp sqlite sse sse2 sse3 sse4_1 ssl ssse3 svg threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vim-syntax vorbis wavpack webkit x264 xattr xml xmp xscreensaver zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 ublox ubx" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia vesa" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Dell'Aica Valentino 2015-03-29 15:39:13 UTC
The line that fail are the following, and seem there are a missing dependence on dev-libs/libgusb.

libtool: compile:  x86_64-pc-linux-gnu-gcc -m32 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -I/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9 -I/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib -I/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colord -I../../lib -I. -DCD_COMPILATION -DCH_COMPILATION -DG_USB_API_IS_SUBJECT_TO_CHANGE -DG_LOG_DOMAIN=\"Ch\" -DTOP_SRCDIR=\"/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9\" -DPACKAGE_DATA_DIR=\"/usr/share\" -Wall -Wcast-align -Wno-uninitialized -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Winit-self -Wreturn-type -Wformat-nonliteral -Wformat-security -Wmissing-include-dirs -Wmissing-format-attribute -Wclobbered -Wempty-body -Wignored-qualifiers -Wsign-compare -Wtype-limits -Wuninitialized -Waggregate-return -Wdeclaration-after-statement -Wshadow -Wno-strict-aliasing -Winline -Wmissing-parameter-type -Woverride-init -march=core-avx2 -O2 -pipe -c /var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-math.c  -fPIC -DPIC -o .libs/libcolorhug_la-ch-math.o
/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-device.c:25:18: fatal error: gusb.h: No such file or directory
 #include <gusb.h>
                  ^
compilation terminated.
Makefile:890: recipe for target 'libcolorhug_la-ch-device.lo' failed
make: *** [libcolorhug_la-ch-device.lo] Error 1
make: *** Waiting for unfinished jobs....
In file included from /var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-common.c:27:0:
/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-common.h:30:18: fatal error: gusb.h: No such file or directory
 #include <gusb.h>
                  ^
compilation terminated.
Makefile:883: recipe for target 'libcolorhug_la-ch-common.lo' failed
make: *** [libcolorhug_la-ch-common.lo] Error 1
In file included from /var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-math.h:31:0,
                 from /var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-math.c:27:
/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-common.h:30:18: fatal error: gusb.h: No such file or directory
 #include <gusb.h>
                  ^
compilation terminated.
Makefile:918: recipe for target 'libcolorhug_la-ch-math.lo' failed
make: *** [libcolorhug_la-ch-math.lo] Error 1
/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-device-queue.c:26:18: fatal error: gusb.h: No such file or directory
 #include <gusb.h>
                  ^
compilation terminated.
Makefile:897: recipe for target 'libcolorhug_la-ch-device-queue.lo' failed
make: *** [libcolorhug_la-ch-device-queue.lo] Error 1
In file included from /var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-inhx32.h:31:0,
                 from /var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-inhx32.c:30:
/var/tmp/portage/x11-misc/colord-1.2.9/work/colord-1.2.9/lib/colorhug/ch-common.h:30:18: fatal error: gusb.h: No such file or directory
 #include <gusb.h>
                  ^
compilation terminated.
Comment 2 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-03-29 17:33:08 UTC
This is not "critical", it's a build failure in an unimportant package. Critical means "this bug can damage your hardware or delete your phd thesis or let hackers read your bank statements".

Please attach the complete build log. We need to see what flags you have enabled/disabled on colord, and what output configure produces.
Comment 3 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-03-29 18:19:58 UTC
I think I see what caused this problem: the ebuild uses custom make targets for non-native ABIs, but some of them are valid only if the gusb flag was enabled. And since gusb is enabled by default, nobody noticed the problem until now.

Fixed without a revision bump, should be on your local rsync mirror in 30-60 minutes.

+  29 Mar 2015; Alexandre Rostovtsev <tetromino@gentoo.org>
+  -colord-1.2.5-r1.ebuild, -colord-1.2.8.ebuild, colord-1.2.9.ebuild:
+  Fix multilib build when USE=-gusb (bug #544968, thanks to Dell'Aica
+  Valentino). Drop old.