This issue appears to be related to bug #577432, but is not a duplicate. sci-geosciences/gpsd-3.16 compiles successfully, but fails to install into the image because scons believes that libgps.so is missing: Install file: "gpsctl.1" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man1/gpsctl.1" Install file: "gpsmon.1" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man1/gpsmon.1" Install file: "libQgpsmm.3" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man3/libQgpsmm.3" Install file: "gpsd.8" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man8/gpsd.8" Install file: "libgpsmm.3" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man3/libgpsmm.3" Install file: "gpsdctl.8" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man8/gpsdctl.8" Install file: "gpspipe.1" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man1/gpspipe.1" Install file: "gps2udp.1" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man1/gps2udp.1" Install file: "gpsd_json.5" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man5/gpsd_json.5" Install file: "srec.5" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man5/srec.5" Install file: "libgps.3" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man3/libgps.3" Install file: "lcdgps.1" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man1/lcdgps.1" Install file: "gpsinit.8" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man8/gpsinit.8" Install file: "gps.1" as "/var/tmp/portage/sci-geosciences/gpsd-3.16/image/usr/share/man/man1/gps.1" scons: *** [gpxlogger] Implicit dependency `libgps.so' not found, needed by target `gpxlogger'. scons: building terminated because of errors. Curiously, the target that it fails to install varies from one attempt to the next. Out of four attempts to emerge sci-geosciences/gpsd-3.16 and one for sci-geosciences/gpsd-3.15 (as a sanity check), the failed target has been gpxlogger once, gps2udp twice, and lcdgps twice. This seems to suggest some kind of race condition is possibly involved, but not necessarily the actual cause. Reproducible: Always Steps to Reproduce: 1. No magic here, just emerge =sci-geosciences/gpsd-3.15 or =sci-geosciences/gpsd-3.16 Actual Results: See above. Expected Results: I can see libgps.so just fine in the build directory: minbar:root:/var/tmp/portage/sci-geosciences/gpsd-3.16/work/gpsd-3.16:68 # ls -l libgps.so* lrwxrwxrwx 1 root root 12 Jul 27 18:57 libgps.so -> libgps.so.22* lrwxrwxrwx 1 root root 16 Jul 27 18:57 libgps.so.22 -> libgps.so.22.0.0* -rwxr-xr-x 1 root root 128448 Jul 27 18:57 libgps.so.22.0.0* It's a mystery to me why scons thinks it's missing. minbar:root:~:62 # emerge --info Portage 2.2.28 (python 3.4.5-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.6.3-gentoo-minbar x86_64) ================================================================= System uname: Linux-4.6.3-gentoo-minbar-x86_64-Intel-R-_Xeon-R-_CPU_E5620_@_2.40GHz-with-gentoo-2.2 KiB Mem: 24632424 total, 3117044 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 27 Jul 2016 06:00:01 +0000 sh bash 4.3_p46 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p46::gentoo dev-java/java-config: 2.2.0-r3::gentoo dev-lang/perl: 5.20.2::gentoo dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo dev-util/cmake: 3.3.1-r1::gentoo dev-util/pkgconfig: 0.29.1::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.19.1::gentoo sys-apps/sandbox: 2.10-r1::gentoo sys-devel/autoconf: 2.69::gentoo sys-devel/automake: 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo sys-devel/gcc-config: 1.7.3::gentoo sys-devel/libtool: 2.4.6::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r4::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 farmboy0 location: /var/lib/layman/farmboy0 sync-type: laymansync sync-uri: https://github.com/farmboy0/portage-overlay.git masters: gentoo priority: 50 mysql location: /var/lib/layman/mysql sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/mysql.git masters: gentoo priority: 50 x11 location: /var/lib/layman/x11 sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 alaric location: /var/lib/layman/alaric sync-type: rsync sync-uri: rsync://babylon5/dev-alaric masters: gentoo priority: 60 sync-rsync-vcs-ignore: true ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -mfpmath=sse -mcx16 -mpopcnt" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --verbose-conflicts --keep-going" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo http://gentoo.chem.wisc.edu/gentoo http://gentoo.osuosl.org http://www.gtlib.gatech.edu/pub/gentoo ftp://mirrors.rit.edu/gentoo http://mirrors.cs.wmich.edu/gentoo " LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j16" PKGDIR="/usr/portage/packages" 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="acl aes amd64 bash-completion berkdb bzip2 cdda cddb cli cracklib crypt cxx dri fltk fortran gdbm iconv id3tag imagemagick ipv6 jpeg2k mmx mmxext modules multilib mysql ncurses nls nptl nsplugin openmp opus pam pcre readline seccomp session speex sse sse2 sse4 sse4_1 sse4_2 ssl tcpd theora threads tk tools unicode utils v4l v4l2 vdpau vorbis x264 xattr xpm zlib" ABI_X86="64" 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" APACHE2_MODULES="actions alias auth_basic authn_core authn_alias authn_anon authn_dbm authn_default authn_file authz_core 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 socache_shmcb speling status unixd unique_id userdir vhost_alias" 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="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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 keyboard mouse" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="mga" 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
Created attachment 441784 [details] Build log minbar:root:~:70 # emerge -pqv '=sci-geosciences/gpsd-3.16::gentoo' [ebuild U ] sci-geosciences/gpsd-3.16 [3.9-r1] USE="X cxx ipv6 latency_timing ncurses ntp python qt4 shm sockets udev usb -bluetooth -dbus* -debug -static% {-test} (-systemd%)" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea2000 ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ublox%* -fury -geostar -nmea0183% -passthrough% (-nmea%*) (-ubx%*)" PYTHON_TARGETS="python2_7%*"
Confirmed it's a race condition. With MAKEOPTS="-j1" it works.
Additional feature request: It would be very useful to have contrib/ppscheck compiled and installed, when using a GPS receiver as an ntpd refclock.
BTW, I had a conversation with the upstream maintainer, who stated that the shared library was removed from upstream gpsd several releases ago because it introduced many problems (including this one) in return for only a miniscule saving of space. His opinion was that the small benefit of the shared library was not worth the trouble.
I encountered the same issue, but suggested workaround with $ MAKEOPTS="-j1" emerge gpsd works for me perfectly
That was the first thing I tried when it became apparent there was a race condition. See four comments previous. However, upstream stated that the race condition is one of the reasons why he removed the shared library.
Upstream report: https://savannah.nongnu.org/bugs/?51895
*** Bug 631672 has been marked as a duplicate of this bug. ***
Please test with latest stable 3.17-r2.
sci-geosciences/gpsd-3.17-r2 builds fine at few images here
I confirm sci-geosciences/gpsd-3.17-r2 builds with no problems.