On a hardened system using distcc & ccache I get this when emerging libusb. Using FEATURES="-sandbox" emerge libusb makes it work. --------------------------- ACCESS VIOLATION SUMMARY --------------------------- LOG FILE = "/var/log/sandbox/sandbox-dev-libs_-_libusb-0.1.10a-16669.log" open_wr: /usr/src/distcc/lock/cpu_localhost_0 open_wr: /usr/src/distcc/state/binstate_16961 open_wr: /usr/src/distcc/state/binstate_16962 unlink: /usr/src/distcc/state/binstate_16962 unlink: /usr/src/distcc/state/binstate_16961 --------------------------------------------------------------------------------
In /etc/make.conf what is DISTCC_DIR set to (if anything) and what is PORTAGE_TMPDIR set to (if anything)?
I guess this is the problem, in that DISTCC_DIR=/usr/src which is outside of the sandbox. So, I've disabled sandbox now. You can close this, if this is the actual problem. But it'd be useful to know what DISTCC_DIR should be set to, to make it sandbox aware. Thanks.
Read the distcc documentation. The manpage or the Gentoo Distcc guide, which can be found at http://www.gentoo.org/doc/en/distcc.xml which explains DISTCC_DIR. Closing INVALID.