I've done emerge apcupsd on two boxes, both produce no executable. I've noticed theese errors, but they dont stop the ebuild, emerge things it's installed it properly: gcc -c -O2 -march=athlon-xp -fomit-frame-pointer -pipe -Wall -I/var/tmp/portage/apcupsd-3.10.13/work/apcupsd-3.10.13/include linux-usb.c In file included from linux-usb.c:21: /usr/include/linux/hiddev.h:134: error: `HID_MAX_USAGES' undeclared here (not in a function) gmake[3]: *** [linux-usb.o] Error 1 gmake[3]: Leaving directory `/var/tmp/portage/apcupsd-3.10.13/work/apcupsd-3.10.13/src/drivers/usb' gmake[2]: *** No rule to make target `usb/libusb.a', needed by `usb_stamp'. Stop. gcc -g -O apcupsd.o apcoptd.o apcnet.o apcreports.o apcaction.o apcnis.o apcdevice.o /var/tmp/portage/apcupsd-3.10.13/work/apcupsd-3.10.13/src/drivers/libdrivers.a /var/tmp/portage/apcupsd-3.10.13/work/apcupsd-3.10.13/src/lib/libapc.a -lpthread -o apcupsd apcupsd.o(.text+0x3cb): In function `main': : undefined reference to `attach_driver' collect2: ld returned 1 exit status gmake[1]: *** [apcupsd] Error 1 depending on useflags (first one is -* apache2, second one is the same as first, last one is -* usb) Reproducible: Always Steps to Reproduce: 1. 2. 3. Running gcc 3.4 and 2.6.5 kernel headers CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" and CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer" on the other one.
this is a blocker, not normal.
this is what I get for doing bug reports in the middle of the night ;) I also forgot to post my info on it. it's the usb stuff that's screwing up, if -usb did --disable-usb as a ./configure flag (instead of --enable-usb. it ignores the use flag) it'll compile and work. (for me it works with usb with the option --disable-usb, but it might block out some more advanced options I dont use).
you forgot to provide #emerge info
from one of the boxes: Portage 2.0.50-r8 (default-x86-1.4, gcc-3.4.1, glibc-2.3.3.20040420-r0, 2.6.6) ================================================================= System uname: 2.6.6 i686 AMD-K7(tm) Processor Gentoo Base System version 1.4.16 distcc 2.15 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer" DISTDIR="/mnt/storage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.1/gentoo-portage" USE="3dnow apache2 apm arts avi berkdb crypt cups encode foomaticdb gd gd-external gdbm gif gpm imlib jpeg ldap libg++ libwww mad maildir mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xv zlib"
the ebuild for apcupsd depends on the makefile process which blindly continues regardless of success or failure. patches to fix this are welcomed. that said, apcupsd commonly fails due to headers and snmp dependancies.
From my understanding this is an upstream bug. suggestions?
I checked in .16-r2 which makes use of the usb use flag. Please test if this solves your problem. I guess so ;)
this bug just bit me. using 3.10.18-r1 with usb flag set no executable was created. i am now using apcupsd-3.12.4 - perhaps that one should be marked stable
(In reply to comment #8) > this bug just bit me. > using 3.10.18-r1 with usb flag set no executable was created. > > i am now using apcupsd-3.12.4 - perhaps that one should be marked stable > Setting MAKEOPTS=-j1 solves the issue with stable apcupsd-3.10.18-r1. The ebuild should be patched in order to disable parallel compiling.
This problem doesn't appear to be resolved. I tried emerging versions 3.10.18-r1, 3.12.4, and 3.14.1, none produced any binaries. I also tried each with MAKEOPTS="-j3" and MAKEOPTS="-j1". Still no binaries. $ emerge --info Portage 2.1.3.9 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2. 6.22-gentoo-r5 x86_64) ================================================================= System uname: 2.6.22-gentoo-r5 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Wed, 19 Sep 2007 09:00:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=nocona -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.chem.wisc.edu/gentoo/" MAKEOPTS="-j1" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X aac alsa amd64 berkdb bindist bitmap-fonts bzip2 cairo cdr cli cpudetection cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emboss encode fam ffmpeg firefox flac fortran gdbm gif gpm gstreamer gtk gtk2 hal iconv imagemagick ipv6 isdnlog jpeg lame ldap mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nptl nptlonly nvidia offensive ogg opengl openmp pam pcre perl png ppds pppd python quicktime readline reflection samba sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts unicode uudeview vorbis x264 xinerama xml xorg xscreensaver xv xvid xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="dummy nv nvidia vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY