When running 'genkernel --menuconfig all' on linux-2.4.22-gentoo-r5 It died after successfully completing bzImage and modules. I believe the bug is on line 158 of /usr/share/genkernel/gen_compile.sh --- tar -jxpf "${DIETLIBC_BINCACHE}" || gen_die "Could not extract dietlibc binca che" +++ tar -jxf "${DIETLIBC_BINCACHE}" || gen_die "Could not extract dietlibc binca che" This may fix it, I'm going to test it now...
The permissions on threadsafe.sh were: -rwxr-xr-x 1 jcooper users 133 May 16 2001 threadsafe.sh Found the genkernel.log entry with the error: ####BEGIN OUTPUT### make: execvp: ./threadsafe.sh: Permission denied ar cru bin-i386/libpthread.a bin-i386/__testandset.o gcc -Iinclude -pipe -nostdinc -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused -nostdlib -o bin- i386/diet bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a bin-i386/dyn_stop.o -DDIETHOME=\"/tmp/dietlibc-0.24\" -DVERSION=\"dietlibc-0.24\" -lgc c strip -R .comment -R .note bin-i386/diet gcc -Iinclude -pipe -nostdinc -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused -nostdlib -o bin- i386/diet-i bin-i386/start.o bin-i386/dyn_start.o diet.c bin-i386/dietlibc.a bin-i386/dyn_stop.o -DDIETHOME=\"/tmp/diet\" -DVERSION=\"dietlibc-0.24\" -DINSTALLVE RSION -lgcc strip -R .comment -R .note bin-i386/diet-i bin-i386/diet gcc -pipe -nostdinc -Wall -W -Wchar-subscripts -Wmissing-prototypes -Wmissing-declarations -Wno-switch -Wredundant-decls -Wno-unused -o bin-i386/e lftrunc contrib/elftrunc.c make: execvp: bin-i386/diet: Permission denied make: *** [bin-i386/elftrunc] Error 127 * gen_die(): compile of prefix=/tmp/diet failed ###END OUTPUT
I have the same problem, but it only occured on one off four computers I am upgrading. The error output in genkernel.log is the same as mentioned above.
you are running genkernel as root, correct?
Yes, I was running it as root. Oh, and the patch I first listed didn't work.
no clue, can't reproduce here since I can't reproduce it, I can't fix it. Also this doesn't not appear to be a bug internal to genkernel but to dietlibc. You can turn off dietlibc support in your arches config.sh /usr/share/genkernel/${ARCH}/config.sh