Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150533 - dev-libs/libusb-0.1.11 fails to build without automake-1.8
Summary: dev-libs/libusb-0.1.11 fails to build without automake-1.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords: Bug
Depends on:
Blocks: autotools-deps
  Show dependency tree
 
Reported: 2006-10-08 20:16 UTC by Stefan Tittel
Modified: 2006-12-13 08:34 UTC (History)
2 users (show)

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


Attachments
libusb-0.1.11.ebuild (libusb-0.1.11.ebuild,1.05 KB, text/plain)
2006-10-08 22:37 UTC, Chris White (RETIRED)
Details
libusb-0.1.11.diff (libusb-0.1.11.diff,367 bytes, patch)
2006-10-08 22:38 UTC, Chris White (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Tittel 2006-10-08 20:16:10 UTC
On my system dev-libs/libusb-0.1.11 fails to build with:

[...]
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
 cd . && /bin/sh /var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11/missing --run automake-1.8 --foreign  Makefile
/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11/missing: line 52: automake-1.8: command not found
WARNING: `automake-1.8' is missing on your system.  You should only need it if
         you modified `Makefile.am', `acinclude.m4' or `configure.in'.
         You might want to install the `Automake' and `Perl' packages.
         Grab them from any GNU archive site.
 cd . && /bin/sh ./config.status Makefile depfiles
config.status: creating Makefile
config.status: executing depfiles commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11'
Making all in .
make[2]: Entering directory `/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11'
if /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I.  -Werror  -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT usb.lo -MD -MP -MF ".deps/usb.Tpo" -c -o usb.lo usb.c; \
        then mv -f ".deps/usb.Tpo" ".deps/usb.Plo"; else rm -f ".deps/usb.Tpo"; exit 1; fi
if /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I.  -Werror  -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT error.lo -MD -MP -MF ".deps/error.Tpo" -c -o error.lo error.c; \
        then mv -f ".deps/error.Tpo" ".deps/error.Plo"; else rm -f ".deps/error.Tpo"; exit 1; fi
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c usb.c  -fPIC -DPIC -o .libs/usb.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c  -fPIC -DPIC -o .libs/error.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT usb.lo -MD -MP -MF .deps/usb.Tpo -c usb.c -o usb.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
if /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I.  -Werror  -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT descriptors.lo -MD -MP -MF ".deps/descriptors.Tpo" -c -o descriptors.lo descriptors.c; \
        then mv -f ".deps/descriptors.Tpo" ".deps/descriptors.Plo"; else rm -f ".deps/descriptors.Tpo"; exit 1; fi
if /bin/sh ./libtool --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H   -I.  -Werror  -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT linux.lo -MD -MP -MF ".deps/linux.Tpo" -c -o linux.lo linux.c; \
        then mv -f ".deps/linux.Tpo" ".deps/linux.Plo"; else rm -f ".deps/linux.Tpo"; exit 1; fi
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT linux.lo -MD -MP -MF .deps/linux.Tpo -c linux.c  -fPIC -DPIC -o .libs/linux.o
cc1: warnings being treated as errors
linux.c: In function 'usb_os_determine_children':
linux.c:568: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
make[2]: *** [linux.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c descriptors.c  -fPIC -DPIC -o .libs/descriptors.o
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -Werror -O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb -Wall -MT descriptors.lo -MD -MP -MF .deps/descriptors.Tpo -c descriptors.c -o descriptors.o >/dev/null 2>&1
make[2]: Leaving directory `/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11'
make: *** [all] Error 2

!!! ERROR: dev-libs/libusb-0.1.11 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libusb-0.1.11.ebuild, line 35:   Called die

!!! emake failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

------------------------------------------------------------

Output of emerge --info:

Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Mon, 09 Oct 2006 02:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=athlon64 -frename-registers -ftracer -fweb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa amd64 apache2 apm avi berkdb bitmap-fonts bzip2 cairo cdr cli codecs crypt cups dbus divx4linux dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode fam fbcon ffmpeg firefox foomaticdb fortran gdbm gif gpgme gstreamer gtk gtk2 hal icq idn imagemagick imap input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse isdnlog java joystick jpeg kde kernel_linux libg++ logitech-mouse mad maildir matroska mbox mikmod mjpeg moznomail mp3 mpeg mysql ncurses nls nntp nptl nptlonly nsplugin nvidia offensive ogg opengl openntpd pam pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sasl sdl session spell spl ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales uudeview vcd video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga vim-with-x vorbis xcomposite xface xine xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Chris White (RETIRED) gentoo-dev 2006-10-08 22:36:13 UTC
Try the attached ebuild, diff attached to show the changes.  If you're not sure how to test new ebuilds:

http://www.gentoo.org/doc/en/draft/bugzilla-howto.xml#doc_chap4
Comment 2 Chris White (RETIRED) gentoo-dev 2006-10-08 22:37:36 UTC
Created attachment 99173 [details]
libusb-0.1.11.ebuild

use eautoreconf after modifying Makefile.am
Comment 3 Chris White (RETIRED) gentoo-dev 2006-10-08 22:38:22 UTC
Created attachment 99174 [details, diff]
libusb-0.1.11.diff
Comment 4 Stefan Tittel 2006-10-09 01:46:01 UTC
Nope, that didn't do it. Please note that libusb does not depend on version 1.8 of automake and therefore automake 1.8 is not installed on my system.

-----------------------------------------------

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     UD] dev-libs/libusb-0.1.11 [0.1.12] USE="-debug -doc" 0 kB [1]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/local/portage

Would you like to merge these packages? [Yes/No]

>>> Emerging (1 of 1) dev-libs/libusb-0.1.11 to /
 * libusb-0.1.11.tar.gz MD5 ;-) ...                                                                                                                   [ ok ]
 * libusb-0.1.11.tar.gz RMD160 ;-) ...                                                                                                                [ ok ]
 * libusb-0.1.11.tar.gz SHA1 ;-) ...                                                                                                                  [ ok ]
 * libusb-0.1.11.tar.gz SHA256 ;-) ...                                                                                                                [ ok ]
 * libusb-0.1.11.tar.gz size ;-) ...                                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking libusb-0.1.11.tar.gz ;-) ...                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking libusb-0.1.11.tar.gz to /var/tmp/portage/libusb-0.1.11/work
 * Running eautoreconf in '/var/tmp/portage/libusb-0.1.11/work/libusb-0.1.11' ...
 * Running aclocal ...                                                                                                                                [ !! ]

 * Failed Running aclocal !
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/libusb-0.1.11/temp/aclocal-2389.out


!!! ERROR: dev-libs/libusb-0.1.11 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_unpack
  ebuild.sh, line 708:   Called src_unpack
  libusb-0.1.11.ebuild, line 27:   Called eautoreconf
  autotools.eclass, line 79:   Called eaclocal
  autotools.eclass, line 117:   Called autotools_run_tool 'aclocal'
  autotools.eclass, line 229:   Called die

!!! Failed Running aclocal !
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'

-----------------------------------------------

root@uranus:~# cat /var/tmp/portage/libusb-0.1.11/temp/aclocal-2389.out
***** aclocal *****

am-wrapper: /usr/bin/aclocal-1.8 is missing or not executable.
            Please try emerging the correct version of automake.
root@uranus:~#
Comment 5 Stefan Tittel 2006-10-13 21:04:18 UTC
It is indeed the missing automake 1.8 that caused this problem (just emerged automake 1.8 manually and everything built fine). So please add automake 1.8 to DEPEND. Thanks.
Comment 6 Andrew Ross (RETIRED) gentoo-dev 2006-10-20 18:26:44 UTC
I'm also seeing this problem on a box I'm building - my first amd64 machine, too :-)

Merging automake-1.8.5-r3 (ebuild v1.14 2006/10/15 12:10:23 dertobi123) was enough to solve the compile error - no patching required.

Portage 2.1.1-r1 (hardened/amd64, gcc-3.4.6, glibc-2.3.6-r4, 2.6.18-emission1-amd64 x86_64)
=================================================================
System uname: 2.6.18-emission1-amd64 x86_64 Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz
Gentoo Base System version 1.12.5
Last Sync: Fri, 20 Oct 2006 12:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.6.3, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 crypt dlloader elibc_glibc hardened input_devices_keyboard input_devices_mouse justify kernel_linux ncurses nls nptl nptlonly pam pic python readline ssl tcpd unicode userland_GNU userlocales xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-12-13 08:34:43 UTC
Zzzzz... 0.1.12 builds just fine.