Created attachment 516018 [details] build.log.gz I've had the same problem happen on multiple machines. Rebuilding it on some of them fixes the problem, others, such as a machine that's currently very heavily loaded running virtual machines, fails. Could it be a race condition somehow? installsources: rsyncing source files rsync: link_stat "/var/tmp/portage/sys-apps/systemd-236-r5/work/var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/build/x86_64-pc-linux-gnu/32/libgcc" failed: No such file or directory (2) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1178) [sender=3.1.2] ecompressdir: xz /usr/share/doc ecompressdir: xz /usr/share/man tar: ./usr/share/man/man3/sd_journal_seek_head.3: File removed before we read it * ERROR: sys-apps/systemd-236-r5::gentoo failed (package phase): * failed to pack binary package: '/usr/portage-packages/sys-apps/systemd-236-r5.tbz2.11451' * * Call stack: * misc-functions.sh, line 666: Called __dyn_package * misc-functions.sh, line 546: Called assert 'failed to pack binary package: '/usr/portage-packages/sys-apps/systemd-236-r5.tbz2.11451'' * isolated-functions.sh, line 16: Called die * The specific snippet of code: * [[ $x -eq 0 ]] || die "$@" * * If you need support, post the output of `emerge --info '=sys-apps/systemd-236-r5::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-apps/systemd-236-r5::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-apps/systemd-236-r5/temp/build.log.gz'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/systemd-236-r5/temp/environment'. * Working directory: '/var/tmp/portage/sys-apps/systemd-236-r5/temp' * S: '/var/tmp/portage/sys-apps/systemd-236-r5/work/systemd-236'
This looks a lot like bug 641262. Are you building on btrfs with a 4.14.x series kernel?
Yep, yes to both, and this looks like a duplicate report. *** This bug has been marked as a duplicate of bug 641262 ***