While updating the Gentoo Linux, app-misc/lirc-0.9.4a is failed to emerge. It's caused by missing the library liblirc.so. Reproducible: Always Steps to Reproduce: Just emerge app-misc/lirc $ emerge --info '=app-misc/lirc-0.9.4a::gentoo' Portage 2.3.0 (python 2.7.11-final-0, default/linux/x86/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r2, 3.14.58-gentoo-r1 i686) ================================================================= System Settings ================================================================= System uname: Linux-3.14.58-gentoo-r1-i686-Pentium-R-_Dual-Core_CPU_E5500_@_2.80GHz-with-gentoo-2.2 KiB Mem: 2028880 total, 907936 free KiB Swap: 2097148 total, 1676416 free Timestamp of repository gentoo: Wed, 13 Jul 2016 03:20:01 +0000 sh bash 4.3_p46 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 distcc 3.2rc1 i686-pc-linux-gnu [disabled] ccache version 3.2.5 [enabled] app-shells/bash: 4.3_p46::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.24.0-r1::gentoo dev-lang/python: 2.7.11-r2::gentoo, 3.3.5-r8::gentoo, 3.5.1-r3::gentoo dev-util/ccache: 3.2.5::gentoo dev-util/cmake: 3.6.0::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2-r1::gentoo sys-apps/openrc: 0.21.2::gentoo sys-apps/sandbox: 2.10-r2::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r2::gentoo sys-devel/automake: 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 5.4.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r2::gentoo sys-devel/make: 4.2.1::gentoo sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.23-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://mirrors.163.com/gentoo-portage priority: -1000 gentoo-zh location: /usr/local/portage/gentoo-zh masters: gentoo priority: 0 gentoo-wonderland location: /usr/local/portage/gentoo-wonderland masters: gentoo priority: 1 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=core2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/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 -march=core2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask-write --autounmask=y --with-bdeps=y --keep-going" FCFLAGS="-O2 -march=i686 -pipe" FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://mirrors.aliyun.com/gentoo http://mirrors.163.com/gentoo http://mirrors.ustc.edu.cn/gentoo http://mirrors.sohu.com/gentoo http://mirrors.xmu.edu.cn/gentoo" LANG="zh_CN.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j10 -l2" PKGDIR="/usr/portage/packages/tgz/x86" 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 --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac acl acpi alsa apache2 apng auto-hinter bash-completion berkdb branding bzip2 cairo cdda cdr cjk cleartype cli colord corefonts cracklib crypt cue cups curl cxx dbus dconf dhcpcd djvu dri dts dvd dvdnav dvdr dvi dvipdfm eds emacs emboss encode eselect evo examples exif extras fam fbcon ffmpeg firefox flac fontconfig fontforge fortran fribidi ftp gd gdbm gdm gif gimp git glamor gnome gnome-keyring gnome-online-accounts gnome-shell gnuplot gpm graphics gs gstreamer gtk gtk2 gtk3 gui gzip hdaps iconv imagemagick introspection iplookup ipv6 javascript jpeg jpeg2k kpathsea lame latex lcms ldap libnotify libsecret lirc lua mad mmx mmxext mng modemmanager modules motif mp3 mp4 mpeg mpg123 mysql nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pdf perl php png policykit ppds proxy pulseaudio python rar readline sasl sdl seccomp session sound spell sse sse2 sse3 sse4 ssh ssl ssse3 startup-notification svg syslog systemd t1lib tcpd threads tiff tracker truetype type3 udev udisks unicode upower usb utils vcd vorbis wayland wxwidgets x264 x86 xattr xcb xft xml xorg xpm xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel" APACHE2_MODULES="cgi cache cache_disk 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" APACHE2_MPMS="worker" 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="mmx mmxext sse sse2 sse3 3dnow 3dnowext avx ssse3" DRACUT_MODULES="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 ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en zh zh-CN zh-TW" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en zh zh_CN zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="PHP5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="intel" 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON $ emerge -pqv '=app-misc/lirc-0.9.4a::gentoo' [ebuild N ] app-misc/lirc-0.9.4a USE="X systemd usb -audio -doc -ftdi -iguanair -inputlirc -irman -static-libs"
Created attachment 440748 [details] build.log
That's a parallel make issue. You can work around it by defining src_compile(): src_compile() { emake lib emake }
(In reply to Jeroen Roovers from comment #2) > That's a parallel make issue. You can work around it by defining > src_compile(): > > src_compile() { > emake lib > emake > } Thanks for your comment. Everything is fine after I just disable parallel feaure in make.conf.
(In reply to Easior Lars from comment #3) > Everything is fine after I just disable parallel feaure in make.conf. Of course. That's why the ebuild needs to be fixed.
I've reported the issue upstream: https://sourceforge.net/p/lirc/tickets/210/
https://github.com/gentoo/gentoo/pull/1911
The first solution in comment https://sourceforge.net/p/lirc/tickets/210/#d53c also works for me.
https://github.com/gentoo/gentoo/commit/b6fc4b167abbbc56620169a1bfc845e347e0de94