ptrace is broken, which causes sys-libs/glibc to fail to build in a Gentoo Linux jail under Linux emulation: http://bpaste.net/show/34782/ This issue can also be demonstrated using strace: # strace echo Hello World strace: test_ptrace_setoptions_for_all: PTRACE_TRACEME doesn't work: Function not implemented strace: test_ptrace_setoptions_for_all: unexpected exit status 1 Fix: There is no known fix or workaround. How-To-Repeat: mkdir /mnt/linux wget ftp://gentoo.osuosl.org/pub/gentoo/releases/amd64/current-stage3/*.tar.bz2 -O - | tar -x -C /mnt/linux cp /etc/resolv.conf /mnt/linux/etc/resolv.conf mount -t linprocfs none /mnt/linux/proc mount -t linsysfs none /mnt/linux/sys mount -t devfs none /mnt/linux/dev mount -t fdescfs none /mnt/linux/dev/fd chroot /mnt/linux /bin/bash env-update source /etc/profile export PS1="(chroot) $PS1" cd emerge-webrsync ln -sf /bin/busybox /bin/tar ln -sf /bin/busybox /bin/rm ln -sf /bin/busybox /usr/bin/touch # And finally: emerge strace strace echo Hello World # Alternatively, rebuild glibc: emerge --oneshot sys-libs/glibc
Responsible Changed From-To: freebsd-bugs->freebsd-emulation Over to maintainer(s).
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
Linux ptrace support added in r313809, merged to stable/11 in r316363 - are you able to test again? https://reviews.freebsd.org/rS313809 https://reviews.freebsd.org/rS316363
Doesn't work for me (r343254): # strace echo Hello World strace: ptrace(PTRACE_TRACEME, ...): Function not implemented +++ exited with 1 +++ dmesg: linux: pid 40303 (strace): syscall ptrace not implemented kldstat | grep linux 6 3 0xffffffff8182f000 4280 linux_common.ko 10 4 0xffffffff819ec000 19f30 linuxkpi.ko 11 3 0xffffffff81a06000 12f30 linuxkpi_gplv2.ko 30 1 0xffffffff81b9c000 51c88 linux.ko 31 1 0xffffffff81bee000 4a0e0 linux64.ko # strace -V | head -n 1 strace -- version 4.25
However, I'm using 32-bit linux on amd64 FreeBSD - and it seems to be unimplemented here: grep ptrace sys/amd64/linux32/linux32_dummy.c DUMMY(ptrace);
Should be fixed now in 13-CURRENT on amd64. Can you test?