Thursday, June 13, 2013

make: execvp: Permission denied

Where I was:  #Gentoo with SELINUX, running # genkernel all

What:  A build breaks, mentioning  make: execvp: Permission denied. (busybox was trying to build)

Why:  /tmp is mounted noexec.  make is trying to launch a script, (called but the script resides on /tmp thus the error.

Code snippet:
make: execvp: /tmp/genkernel/8529.32051.23452.9923/busybox-1.20.2/scripts/ Permission denied
*make: *** [gen_build_files] Error 127
*make: *** Waiting for unfinished jobs....
*/bin/sh: scripts/basic/fixdep: Permission denied
*make[1]: *** [scripts/basic/fixdep] Error 1
*make: *** [scripts_basic] Error 2
My fix:  Temporarily set TMPDIR in genkernel.conf to another mount.  A fix for other instances of this error could be fixed by setting PORTAGE_TMPDIR in make.conf.

No comments:

Post a Comment