Нужно собрать wine-1.2.3 на Gentoo x86_64
make[1]: Вход в каталог `/var/tmp/portage/app-emulation/wine-1.2.3/work/wine32/dlls/ntdll'
../../tools/winegcc/winegcc -m32 -B../../tools/winebuild --sysroot=../.. -fasynchronous-unwind-tables -shared /var/tmp/portage/app-emulation/wine-1.2.3/work/wine-1.2.3/dlls/ntdll/ntdll.spec actctx.o atom.o cdrom.o critsection.o debugbuffer.o debugtools.o directory.o env.o error.o exception.o file.o handletable.o heap.o large_int.o loader.o loadorder.o misc.o nt.o om.o path.o printf.o process.o reg.o relay.o resource.o rtl.o rtlbitmap.o rtlstr.o sec.o serial.o server.o signal_i386.o signal_powerpc.o signal_sparc.o signal_x86_64.o string.o sync.o tape.o thread.o threadpool.o time.o version.o virtual.o wcstring.o version.res -Wl,--image-base,0x7bc00000 -o ntdll.dll.so ../../libs/port/libwine_port.a -lpthread -Wl,-O1 -Wl,--as-needed
/usr/bin/install -c -m 644 ntdll.dll.fake /var/tmp/portage/app-emulation/wine-1.2.3/image//usr/lib32/wine/fakedlls/ntdll.dll
/usr/bin/install -c -m 644 libntdll.def /var/tmp/portage/app-emulation/wine-1.2.3/image//usr/lib32/wine/libntdll.def
ISE:_do_ptrace ptrace(PTRACE_PEEKDATA, ..., 0x8ec8fb90, 0x00000000): Input/output error
/usr/lib32/libsandbox.so(+0x29f4)[0xf76cd9f4]
/usr/lib32/libsandbox.so(+0x2a65)[0xf76cda65]
/usr/lib32/libsandbox.so(+0x4937)[0xf76cf937]
/usr/lib32/libsandbox.so(+0x49f2)[0xf76cf9f2]
/usr/lib32/libsandbox.so(+0x558c)[0xf76d058c]
/usr/lib32/libsandbox.so(+0x5c09)[0xf76d0c09]
/usr/lib32/libsandbox.so(execvp+0xa6)[0xf76d4516]
../../tools/winegcc/winegcc[0x804cebf]
../../tools/winegcc/winegcc[0x804c983]
../../tools/winegcc/winegcc[0x804a7ff]
/proc/30178/cmdline: /usr/sbin/prelink --reloc-only 0x7bc00000 ntdll.dll.so
/usr/bin/install -c ntdll.dll.so /var/tmp/portage/app-emulation/wine-1.2.3/image//usr/lib32/wine/ntdll.dll.so
/usr/bin/install: пропускается файл «ntdll.dll.so», так как он был заменён во время копирования
make[1]: *** [install_dll.so] Ошибка 1
make[1]: Выход из каталога `/var/tmp/portage/app-emulation/wine-1.2.3/work/wine32/dlls/ntdll'
make: *** [install] Ошибка 2
make: Выход из каталога `/var/tmp/portage/app-emulation/wine-1.2.3/work/wine32'
Видимо, какое-то взаимонепонимание с prelink. Как лечить?