While merging or unmerging few packages I get this error emerge [b]ntp-4.2.8_p12[/b] or [b]iptables-1.8.1-r1[/b] fails at install with [code]OSError: [Errno 74] Bad message: b'/lib/systemd/system'[/code] (RPi1B2):~ # wgetpaste /var/tmp/portage/net-misc/ntp-4.2.8_p12/temp/build.log Your paste can be seen here: https://paste.pound-python.org/show/uwPWgpjDgtK15NDJeIko/ (RPi1B2):~ # wgetpaste /var/tmp/portage/net-firewall/iptables-1.8.1-r1/temp/build.log Your paste can be seen here: https://paste.pound-python.org/show/Uryfub0fe7AKItyYM00C/ A similar error with [b]openssh[/b] emerge without distcc or ccache (RPi1B2):~ # wgetpaste /var/tmp/portage/net-misc/openssh-7.9_p1/temp/build.log Your paste can be seen here: https://paste.pound-python.org/show/ftPRGWBFD8H4Ug$K45MA/ same problem with [b]util-linux[/b], [b]netifrc[/b], [b]krb5[/b], [b]git[/b]. it even happens while unmerging [code] >>> Unmerging (4 of 14) sys-apps/util-linux-2.32.1... Traceback (most recent call last): File "/usr/lib/python-exec/python3.6/emerge", line 53, in <module> retval = emerge_main() File "/usr/lib/python3.6/site-packages/_emerge/main.py", line 1289, in emerge_main return run_action(emerge_config) File "/usr/lib/python3.6/site-packages/_emerge/actions.py", line 3230, in run_action emerge_config.args, spinner) File "/usr/lib/python3.6/site-packages/_emerge/actions.py", line 2220, in action_uninstall scheduler=sched_iface) File "/usr/lib/python3.6/site-packages/_emerge/unmerge.py", line 582, in unmerge scheduler=scheduler) File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 5383, in unmerge retval = mylink.unmerge(ldpath_mtimes=ldpath_mtimes) File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 1676, in wrapper return f(self, *args, **kwargs) File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 2037, in unmerge retval = self._security_check([self] + others_in_slot) File "/usr/lib/python3.6/site-packages/portage/dbapi/vartree.py", line 3614, in _security_check s = os.lstat(path) File "/usr/lib/python3.6/site-packages/portage/__init__.py", line 250, in __call__ rval = self._func(*wrapped_args, **wrapped_kwargs) OSError: [Errno 74] Bad message: b'/lib/systemd/system' [/code] I never installed systemd on any of my machines. BTW they all emerge well on qemu. But even their bin-packs failed with the same error. I don't have build logs of these anymore except those pastes. Please bear it.
This seems like some problem with portage itself.
I guess the best we could do here is map the errno 74 to a suggestion to run fsck. > <floppym> fs/ext4/ext4.h:#define EFSBADCRC EBADMSG /* Bad CRC detected */ > <floppym> (from the kernel) > <floppym> That would indeed point to fs corruption.