It appears that the build process for sandbox (portage-2.0.49-r21/src/sandbox-1.1) is broken when using parallell build. This can easily be tested by entering src/sandbox-1.1 and issuing: - make clean; export MAKEFLAGS="-j3"; make - Now you should get a error similar to this: -- [09:20]root@stue:~/portage-2.0.49-r21/src/sandbox-1.1> make clean; export MAKEFLAGS="-j3"; make rm -f libsandbox.so sandbox rm -f *.o *~ core rm -f localdecls.h ./create-localdecls gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT sandbox_futils.c gcc -Wall -c sandbox.c Checking truncate argument type... off_t Checking libc version... libc.so.6 Checking glibc subversion... gcc sandbox.o sandbox_futils.o getcwd.c -ldl -lc -o sandbox In file included from getcwd.c:219: localdecls.h:4:1: unterminated #ifndef getcwd.c: In function `__egetcwd': getcwd.c:300: `SB_PATH_MAX' undeclared (first use in this function) getcwd.c:300: (Each undeclared identifier is reported only once getcwd.c:300: for each function it appears in.) make: *** [sandbox] Error 1 make: *** Waiting for unfinished jobs.... [09:21]root@stue:~/portage-2.0.49-r21/src/sandbox-1.1> -- A watchfull eye will discover that getcwd.c is being compiled at the same time ./create-localdecls is being run, and since create-localdecls is a script that tries to create localdecls.h, which getcwd.c needs - it's not a surprise that this fails :p This is rather simple to fix; attaching a patch to sandbox' Makefile, which will ensure that jobs make will attempt to execute in paralell will wait for create-localdecls to execute.
Created attachment 24875 [details, diff] Makefile patch to solve parallel build issue.
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.