app-misc/lirc-0.9.0-r2 doesn't compile/emerge Reproducible: Always Steps to Reproduce: 1. emerge lirc 2. 3. Actual Results: mkdir -p /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/.tmp_versions ; rm -f /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/.tmp_versions/* make -f scripts/Makefile.build obj=/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/.lirc_serial.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/include -I/usr/src/linux-3.8.1-gentoo/arch/x86/include -Iarch/x86/include/generated -Iinclude -I/usr/src/linux-3.8.1-gentoo/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.8.1-gentoo/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.8.1-gentoo/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -march=k8 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I../.. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/../.. -I/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/../.. -I/usr/src/linux//include/ -I/usr/src/linux//drivers/media/video/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_serial)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_serial)" -c -o /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.o /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1110:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »lirc_serial_probe« /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1115:22: Fehler: expected »=«, »,«, »;«, »asm« or »__attribute__« before »lirc_serial_remove« /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1165:12: Fehler: »lirc_serial_probe« undeclared here (not in a function) /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1166:2: Fehler: Implizite Deklaration der Funktion »__devexit_p« /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1166:25: Fehler: »lirc_serial_remove« undeclared here (not in a function) /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c: In Funktion »__check_iommap«: /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1311:1: Warnung: return von inkompatiblem Zeigertyp /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c: In Funktion »__check_share_irq«: /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1326:1: Warnung: return von inkompatiblem Zeigertyp /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c: In Funktion »__check_sense«: /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1329:1: Warnung: return von inkompatiblem Zeigertyp /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c: In Funktion »__check_softcarrier«: /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1339:1: Warnung: return von inkompatiblem Zeigertyp /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c: In Funktion »__check_debug«: /var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.c:1342:1: Warnung: return von inkompatiblem Zeigertyp make[3]: *** [/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial/lirc_serial.o] Fehler 1 make[2]: *** [_module_/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial] Fehler 2 make[2]: Leaving directory `/usr/src/linux-3.8.1-gentoo' make[1]: *** [lirc_serial.o] Fehler 2 make[1]: Leaving directory `/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers/lirc_serial' make: *** [all-recursive] Fehler 1 * ERROR: app-misc/lirc-0.9.0-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-misc/lirc-0.9.0-r2'`, * the complete build log and the output of `emerge -pqv '=app-misc/lirc-0.9.0-r2'`. * The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers' * S: '/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0' >>> Failed to emerge app-misc/lirc-0.9.0-r2, Log file: >>> '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/build.log' * Messages for package app-misc/lirc-0.9.0-r2: * Compiling support for device serial * Setting default lirc-device to /dev/lirc0 * ERROR: app-misc/lirc-0.9.0-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=app-misc/lirc-0.9.0-r2'`, * the complete build log and the output of `emerge -pqv '=app-misc/lirc-0.9.0-r2'`. * The complete build log is located at '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-misc/lirc-0.9.0-r2/temp/environment'. * Working directory: '/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0/drivers' * S: '/var/tmp/portage/app-misc/lirc-0.9.0-r2/work/lirc-0.9.0' root@localhost ~ > emerge --info =app-misc/lirc-0.9.0-r2 Portage 2.1.11.55 (default/linux/amd64/13.0/desktop/kde, gcc-4.5.4, glibc-2.15-r3, 3.8.1-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-3.8.1-gentoo-x86_64-AMD_Athlon-tm-_II_X2_270u_Processor-with-gentoo-2.1 KiB Mem: 8178772 total, 191108 free KiB Swap: 4112636 total, 4112636 free Timestamp of tree: Mon, 11 Mar 2013 12:15:01 +0000 ld GNU ld (GNU Binutils) 2.22 ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.12-r1 dev-lang/python: 2.7.3-r2, 3.1.4-r3, 3.2.3 dev-util/ccache: 3.1.9 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.7.9-r1::<unknown repository>, 1.8.5-r3::<unknown repository>, 1.9.6-r3, 1.10.3, 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.4, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.8 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo vdr-xine vdr-testing vdr-devel sunrise zugaina calculate local-repo Installed sets: @system ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=amdfam10 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind" CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/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="-march=amdfam10 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ rsync://gentoo.cs.uni.edu/gentoo-distfiles ftp://mirror.netcologne.de/gentoo/ ftp://de-mirror.org/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://pandemonium.tiscali.de/pub/gentoo/" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j3" 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/vdr-xine /var/lib/layman/vdr-testing /var/lib/layman/vdr-devel /var/lib/layman/sunrise /var/lib/layman/zugaina /var/lib/layman/calculate /var/lib/layman" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran g3dvl gdbm gif gpm gtk iconv icu ipv6 jack jpeg kde kipi lcms ldap libnotify lirc mad mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib multitarget ncurses nls nptl nptlonly offensive ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd theora threads tiff truetype udev udisks unicode upower usb userlocales v4l2 vdpau vorbis wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="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="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" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="ttpci" 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" LIRC_DEVICES="serial" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="mustek" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev v4l2" 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 ================================================================= Package Settings ================================================================= app-misc/lirc-0.9.0-r2 was built with the following: USE="X (multilib) -debug -doc -hardware-carrier -static-libs -transmitter" LIRC_DEVICES="serial -accent -act200l -act220l -adaptec -all -alsa_usb -animax -asusdh -atilibusb -atiusb -audio -audio_alsa -avermedia -avermedia98 -avermedia_vdomate -awlibusb -bestbuy -bestbuy2 -breakoutbox -bte -bw6130 -caraca -chronos -commandir -cph06x -creative -creative_infracd -devinput -digimatrix -dsp -dvico -ea65 -ene0100 -exaudio -flyvideo -ftdi -gvbctv5pci -hauppauge -hauppauge_dvb -hercules_smarttv_stereo -i2cuser -igorplugusb -iguanaIR -imon -imon_24g -imon_knob -imon_lcd -imon_pad -imon_rsc -inputlirc -irdeo -irdeo_remote -irlink -irman -irreal -it87 -ite8709 -knc_one -kworld -leadtek_0007 -leadtek_0010 -leadtek_pvr2000 -livedrive_midi -livedrive_seq -logitech -macmini -mediafocusI -mouseremote -mouseremote_ps2 -mp3anywhere -mplay -nslu2 -packard_bell -parallel -pcmak -pcmak_usb -pctv -pixelview_bt878 -pixelview_pak -pixelview_pro -provideo -realmagic -remote_wonder_plus -remotemaster -sa1100 -samsung -sasem -sb0540 -serial_igor_cesko -silitek -sir -slinke -streamzap -tekram -tekram_bt829 -tira -ttusbir -tuxbox -tvbox -udp -uirt2 -uirt2_raw -usb_uirt_raw -usbirboy -usbx -userspace -wpc8769l -xboxusb" LDFLAGS="-Wl,--as-needed"
Please attach the entire build log to this bug report.
Created attachment 342156 [details] build log build log
Yep, that's a problem. Works fine against 3.7.x , but it seems something in the headers must have changed or 3.8.x and a patch will be required. I *think* there is a serial driver for the in-kernel remote support, so you might want to try that in the meantime instead of LIRC_DEVICES="serial" ?
That's kinda funny, but the patch is on gentoo forums: http://forums.gentoo.org/viewtopic-t-960130-highlight-.html and it works (at least for serial driver). Would be nice to have it in portage.
Patch worked great -- cleaned up whitespace and committed. + 24 May 2013; Ian Stakenvicius <axs@gentoo.org> + +files/lirc-0.9.0-kernel-3.8-fixes.patch, lirc-0.9.0-r2.ebuild: + apply fix for kernel-3.8 (bug 461532) , only unparallelize the necessary bit + of compilation +