due to the revbump of sys-apps/file-5.40-r1, my ~ARCH systems tried to rebuild sys-apps/file and some of them have failed reproducibly. specifically affected are: ~x86 and ~arm ~arm64 is not affected and emerges just fine. however, setting USE="-seccomp" let both ~arm and ~x86 also succeed. It does not seem to be sys-apps/file version dependent, as also trying older package versions of it, all fail merging at the very same point > .. > Making all in magic > make[2]: Entering directory '/var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-abi_x86_32.x86/magic' > ../src/file -C -m magic > make[2]: *** [Makefile:843: magic.mgc] Bad system call > make[2]: Leaving directory '/var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-abi_x86_32.x86/magic' > make[1]: *** [Makefile:459: all-recursive] Error 1 > .. respectively: > .. > Making all in magic > make[2]: Entering directory '/var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-.arm/magic' > ../src/file -C -m magic > make[2]: *** [Makefile:843: magic.mgc] Bad system call > make[2]: Leaving directory '/var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-.arm/magic' > make[1]: *** [Makefile:459: all-recursive] Error 1 > .. though, interactively enter /var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-*/magic afterwards and calling `make` there, does not lead to any error. there seems to be some mismatch in seccomp'ing within the build sandbox and the real system. Also two points that hint to seccomp: * merging it with: # USE="-seccomp" emerge sys-apps/file -> succeeds * merging it with: # USE="seccomp" emerge sys-apps/file -> fails, and writes to kmesg: > [1772755.646078] audit: type=1326 audit(1619035681.197:9): auid=0 uid=250 gid=250 ses=5 pid=11965 comm="lt-file" exe="/var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-.arm/src/.libs/lt-file" sig=31 arch=40000028 syscall=327 compat=0 ip=0x76e56160 code=0x0 respectively: > [199683.827731] audit: type=1326 audit(1619035756.502:7): auid=0 uid=250 gid=250 ses=5 subj=kernel pid=19440 comm="file" exe="/var/tmp/portage/sys-apps/file-5.40-r1/work/file-5.40-abi_x86_32.x86/src/.libs/file" sig=31 arch=40000003 syscall=300 compat=0 ip=0xb7f15549 code=0x0 Reproducible: Always
*** This bug has been marked as a duplicate of bug 784857 ***