This patch from debian fixes it: http://patch-tracker.debian.org/patch/series/dl/strace/4.5.20-2/sparc-syscalls.diff make[1]: Entering directory `/var/tmp/portage/dev-util/strace-4.5.20/work/strace-4.5.20' sparc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./linux/sparc -I./linux -Wall -O2 -mcpu=ultrasparc -pipe -MT strace.o -MD -MP -MF .deps/strace.Tpo -c -o strace.o strace.c mv -f .deps/strace.Tpo .deps/strace.Po sparc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I./linux/sparc -I./linux -Wall -O2 -mcpu=ultrasparc -pipe -MT syscall.o -MD -MP -MF .deps/syscall.Tpo -c -o syscall.o syscall.c In file included from syscall.c:114: ./linux/sparc/syscallent.h:304: error: 'sys_mbind' undeclared here (not in a function) ./linux/sparc/syscallent.h:305: error: 'sys_get_mempolicy' undeclared here (not in a function) ./linux/sparc/syscallent.h:306: error: 'sys_set_mempolicy' undeclared here (not in a function) ./linux/sparc/syscallent.h:311: error: 'sys_utimensat' undeclared here (not in a function) ./linux/sparc/syscallent.h:313: error: 'sys_timerfd_create' undeclared here (not in a function) ./linux/sparc/syscallent.h:315: error: 'sys_fallocate' undeclared here (not in a function) ./linux/sparc/syscallent.h:316: error: 'sys_timerfd_settime' undeclared here (not in a function) ./linux/sparc/syscallent.h:317: error: 'sys_timerfd_gettime' undeclared here (not in a function) ./linux/sparc/syscallent.h:318: error: 'sys_signalfd4' undeclared here (not in a function) ./linux/sparc/syscallent.h:319: error: 'sys_eventfd2' undeclared here (not in a function) ./linux/sparc/syscallent.h:320: error: 'sys_epoll_create1' undeclared here (not in a function) ./linux/sparc/syscallent.h:321: error: 'sys_dup3' undeclared here (not in a function) ./linux/sparc/syscallent.h:322: error: 'sys_pipe2' undeclared here (not in a function) ./linux/sparc/syscallent.h:323: error: 'sys_inotify_init1' undeclared here (not in a function) make[1]: *** [syscall.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-util/strace-4.5.20/work/strace-4.5.20' make: *** [all] Error 2 emake failed * ERROR: dev-util/strace-4.5.20 failed: * (no error message)
ive added the commit from upstream (not exactly the same, but functionality equivalent) http://sources.gentoo.org/dev-util/strace/strace-4.5.20.ebuild?r1=1.1&r2=1.2 http://sources.gentoo.org/dev-util/strace/files/strace-4.5.20-sparc.patch?rev=1.1