Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38438 - genkernel 3.0.1_beta4-3 dies at dietlibc on linux-2.4.22-gentoo-r5 "Permission error"
Summary: genkernel 3.0.1_beta4-3 dies at dietlibc on linux-2.4.22-gentoo-r5 "Permissio...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Brad House
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-16 11:53 UTC by cooper
Modified: 2004-01-18 08:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cooper 2004-01-16 11:53:59 UTC
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...
Comment 1 cooper 2004-01-16 12:00:08 UTC
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
Comment 2 Miroslav Šulc gentoo-dev 2004-01-17 10:26:42 UTC
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.
Comment 3 Brad House 2004-01-18 07:40:57 UTC
you are running genkernel as root, correct?
Comment 4 cooper 2004-01-18 08:02:31 UTC
Yes, I was running it as root.  Oh, and the patch I first listed didn't work.  
Comment 5 Brad House 2004-01-18 08:31:22 UTC
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