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

Bug 414601

Summary: app-pda/usbmuxd-1.0.8 with >=dev-util/cmake-2.8.8 - CMake Error at Modules/LibFindMacros.cmake:74 (message): Required library USB NOT FOUND.
Product: Gentoo Linux Reporter: Alexander <nobodydead>
Component: Current packagesAssignee: Gentoo PDA project <pda>
Status: RESOLVED DUPLICATE    
Severity: normal CC: franz.graf, kde
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Build log
A simple proof of concept

Description Alexander 2012-05-04 14:18:23 UTC
>>> Emerging (1 of 2) app-pda/usbmuxd-1.0.8
 * usbmuxd-1.0.8.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                             [ ok ]
>>> Unpacking source...
>>> Unpacking usbmuxd-1.0.8.tar.bz2 to /var/tmp/portage/app-pda/usbmuxd-1.0.8/work
>>> Source unpacked in /var/tmp/portage/app-pda/usbmuxd-1.0.8/work
>>> Preparing source in /var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8_build/gentoo_rules.cmake  /var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.6.2
-- The CXX compiler identification is GNU 4.6.2
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring usbmuxd v1.0.8
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- Found PLIST 
-- Will build usbmuxd: YES
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- libusbmuxd will be built with inotify support
-- libusbmuxd will be built with protocol version 1 support
USB_INCLUDE_DIR=USB_INCLUDE_DIR-NOTFOUND
USB_LIBRARY=/usr/lib64/libusb-1.0.so
CMake Error at Modules/LibFindMacros.cmake:74 (message):
  Required library USB NOT FOUND.

  Install the library (dev version) and try again.  If the library is already
  installed, use ccmake to set the missing variables manually.
Call Stack (most recent call first):
  Modules/FindUSB.cmake:40 (libfind_process)
  daemon/CMakeLists.txt:1 (find_package)


-- Configuring incomplete, errors occurred!
 * ERROR: app-pda/usbmuxd-1.0.8 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_configure
 *   environment, line 2519:  Called cmake-utils_src_configure
 *   environment, line  592:  Called _execute_optionaly 'src_configure'
 *   environment, line  189:  Called enable_cmake-utils_src_configure
 *   environment, line  912:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of 'emerge --info =app-pda/usbmuxd-1.0.8',
 * the complete build log and the output of 'emerge -pqv =app-pda/usbmuxd-1.0.8'.
 * The complete build log is located at '/var/tmp/portage/app-pda/usbmuxd-1.0.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-pda/usbmuxd-1.0.8/temp/environment'.
 * Working directory: '/var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8_build'
 * S: '/var/tmp/portage/app-pda/usbmuxd-1.0.8/work/usbmuxd-1.0.8'

>>> Failed to emerge app-pda/usbmuxd-1.0.8, Log file:

>>>  '/var/tmp/portage/app-pda/usbmuxd-1.0.8/temp/build.log'

 * Messages for package app-pda/usbmuxd-1.0.8:

 * ERROR: app-pda/usbmuxd-1.0.8 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_configure
 *   environment, line 2519:  Called cmake-utils_src_configure
 *   environment, line  592:  Called _execute_optionaly 'src_configure'
 *   environment, line  189:  Called enable_cmake-utils_src_configure
 *   environment, line  912:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";















Portage 2.1.10.57 (default/linux/amd64/10.0, gcc-4.6.2, glibc-2.15-r1, 3.3.1-gentoo x86_64)
=================================================================
System uname: Linux-3.3.1-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.1
Timestamp of tree: Fri, 04 May 2012 10:30:01 +0000
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/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.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.2
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
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -funroll-all-loops -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -funroll-all-loops -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs 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.bloodhost.ru/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j8"
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="3dnow 3dnowext X X509 Xaw3d a52 aac acl acm acpi action_modeswitch activefilter alsa amd64 amr apng audio audiofile bash-completion berkdb bittorrent bluetooth bzip2 bzr cache cairo cdda cdf cdinstall cdio cdparanoia cdr cdrdao cdrom chm cli consolekit corefonts cracklib crypt cups curl cxx dbus declarative dhcpcd djvu dri dri2 drm ebook exif extras faac faad ffmpeg flac fontconfig foomaticdb fortran fuse g711 g722 g7221 g729 gallium gdbm gpm gtk3 gudev hwdb iconv icu id3tag imagemagick ios ios-vout ipod iproute2 iptv ipv6 ithreads jabber java jpeg jpeg2k kde lame libburn libcaca libkms libmpeg2 libnotify libssh2 libtar libtool libusb lm_sensors lzma lzo matroska md5 md5sum minizip mmx mng modules mozilla mp3 mp3tunes mpeg mpg123 msn mudflap multilib multimedia musepack music musicbrainz ncurses nfs nls nptl nptlonly ntfs ntfs-3g ogg okular openal opencv opengl openmp openssl openvg optimization oscar pam pcre pdfimport plugins png policykit ppds ppp pppd psd pulseaudio python qemu qt-dbus qt-faststart qt-webkit qt3support qt4 quicktime radio rar rdesktop readline samba schroedinger sdl sdl-image sdl-sound sdlaudio sdlgfx secure-delete session skype sndfile sql sqlite sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs system-sqlite tcpd theora threads tiff tools truetype twolame udev unicode unlock-notify unzip usb utils utp v4l vaapi vde vim vim-plugin vim-syntax vnc vorbis webkit webm wifi wimax wma x264 xcb xcomposite xinerama xml xmp xorg xrandr xv xvid xz zlib" ALSA_CARDS="hda-nvidia 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" 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="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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="trash menu brightness logout" 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
Comment 1 Phil Tooley 2012-05-04 18:27:04 UTC
Created attachment 310795 [details]
Build log

I have an identical problem, build log attached

Portage 2.2.0_alpha101 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.15-r1, 3.3.0-gentoo x86_64)
=================================================================
System uname: Linux-3.3.0-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.1
Timestamp of tree: Thu, 03 May 2012 22:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [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/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.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 ikelos
Installed sets: @desktop, @global, @prometheus, @science
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j12"
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="/var/lib/layman/ikelos"
SYNC="rsync://heimdal/gentoo-portage"
USE="X aac acl acpi alsa amd64 apng bash-completion berkdb bindist bluray branding bzip2 cairo cdda cddb cdparanoia cdr cli cracklib crypt css cups cxx dbus device-mapper dga djvu dmraid dri dvd dvdr dvi emacs encode exif fftw firefox flac fontconfig foomaticdb fortran gdbm gif gimp glut gmp gnuplot gnutls gphoto2 gtk gtk3 hddtemp iconv ios ipod ipv6 jpeg lame latex libkms lm_sensors mad matroska mmx modules mp3 mp4 mpeg mplayer mtp mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg ogm openal opengl openmp pam pcre pdf png posix ppds pppd python qt3support qt4 radius raw readline session smp sse sse2 ssl sysfs tcpd theora threads tiff truetype udev unicode usb vorbis x264 xemacs xft xmp xorg xpf xpm xps xvid zlib" ALSA_CARDS="usb-audio" 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="dmraid plymouth" 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" LINGUAS="en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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 2 Phil Tooley 2012-05-04 18:40:31 UTC
I failed to note above, this occurred during a world update and following an update of libusb to libusb-1.0.9:

Fri Mar 30 18:36:51 2012 >>> dev-libs/libusb-0.1.12-r7
Fri Mar 30 18:39:27 2012 >>> virtual/libusb-0
Fri Mar 30 21:50:32 2012 >>> dev-libs/libusb-1.0.9_rc3
Fri Mar 30 22:50:01 2012 >>> virtual/libusb-1
Fri May  4 10:33:17 2012 >>> dev-libs/libusb-1.0.9
Comment 3 Alexander 2012-05-05 10:52:05 UTC
any news here?
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-05-05 17:09:37 UTC
Created attachment 310895 [details, diff]
A simple proof of concept

As shown with this attachement, there has been no change in the include or cflags lines in libusb-1.0.pc pkg-config file between libusb-1.0.9_rc3 and libusb-1.0.9.

Therefore I'm inclined to believe this a cmake induced problem. Does downgrading cmake to 2.8.7 series help?
Comment 5 Phil Tooley 2012-05-05 17:24:44 UTC
Yes, downgrading from cmake-2.8.8-r1 to cmake-2.8.7-r5 solves the problem and it builds fine.

Thanks Samuli!
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-05-05 17:30:44 UTC
Workaround applied to Portage and CCing dev-util/cmake maintainers so they are informed.

The workaround is here:

http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-pda/usbmuxd/usbmuxd-1.0.8.ebuild?r1=1.2&r2=1.3
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2012-05-06 19:08:33 UTC
Should be fixed now in cmake-2.8.8-r2, see bug 414659
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-05-06 21:10:10 UTC
*** Bug 414949 has been marked as a duplicate of this bug. ***
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-05-06 21:42:07 UTC
*** Bug 414951 has been marked as a duplicate of this bug. ***
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2012-05-06 21:42:39 UTC

*** This bug has been marked as a duplicate of bug 414659 ***
Comment 11 Samuli Suominen (RETIRED) gentoo-dev 2012-05-06 21:44:35 UTC
(In reply to comment #7)
> Should be fixed now in cmake-2.8.8-r2, see bug 414659

I can confirm this and dropped the workaround from the ebuild. Thanks!