Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76052 - emerge hangs while determining kernel source location
Summary: emerge hangs while determining kernel source location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-29 11:26 UTC by Andre Kloth
Modified: 2004-12-29 11:42 UTC (History)
1 user (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 Andre Kloth 2004-12-29 11:26:32 UTC
When I try to emerge any ebuild, that checks where the current kernel source is, emerge don't responds anymore. I allready tried some older kernels - it did not help.

(i can only reproduce this on one of my gentoo boxes)
(tried with nvidia-kernel-{1.0.6111-r3,1.0.6629-r1} and xorg-x11-6.8.1.901)

Your help is greatly appreciated.


Reproducible: Always
Steps to Reproduce:
1. 
# ls -al /usr/src/linux
lrwxrwxrwx  1 root root 22 Dec 29 20:08 /usr/src/linux -> linux-2.6.10-gentoo-r1
# emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6629-r1 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6629-pkg1.run
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
###### HANGs ######

2. 
# rm /usr/src/linux
# KERNEL_DIR="/usr/src/linux-2.6.10-gentoo-r1/" emerge nvidia-kernel
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/nvidia-kernel-1.0.6629-r1 to /
>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6629-pkg1.run
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux-2.6.10-gentoo-r1/
###### HANGs ######

3.
# strace emerge nvidia-kernel
...
write(1, ">>> md5 src_uri ;-) NVIDIA-Linux"..., 55>>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-6629-pkg1.run
) = 55
access("/bin/bash", X_OK)               = 0
pipe([3, 5])                            = 0
access("tee", X_OK)                     = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/tee", X_OK)     = -1 ENOENT (No such file or directory)
access("/usr/local/bin/tee", X_OK)      = -1 ENOENT (No such file or directory)
access("/usr/sbin/tee", X_OK)           = -1 ENOENT (No such file or directory)
access("/usr/bin/tee", X_OK)            = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d3e708) = 9701
waitpid(9701, 0xbfffe004, WNOHANG)      = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xb7d3e708) = 9702
close(3)                                = 0
close(5)                                = 0
waitpid(9702,  * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
###### HANGs ######
(i looked for PID 9702 on another shell)
  # ps auxf
  root      9676  1.4  0.0   1688   632 pts/4    S+   20:13   0:01  |                   \_ strace emerge nvidia-kernel
  root      9677  1.1  0.5  11376  8428 pts/4    SN+  20:13   0:01  |                       \_ /usr/bin/python -O /usr/bin/emerge nvidia-kernel
  root      9701  0.0  0.0   1472   408 pts/4    SN+  20:13   0:00  |                           \_ tee -i -a /var/log/portage/4371-nvidia-kernel-1.0.6629-r1.log
  root      9702  0.0  0.1   2932  1760 pts/4    SN+  20:13   0:00  |                           \_ /bin/bash /usr/lib/portage/bin/ebuild.sh setup
  root      9721  0.0  0.1   2932  1760 pts/4    SN+  20:13   0:00  |                               \_ /bin/bash /usr/lib/portage/bin/ebuild.sh setup
  root      9727  0.0  0.1   4092  2864 pts/4    SN+  20:13   0:00  |                                   \_ python /usr/bin/make -f - e
  root      9730  0.0  0.0   1724   624 pts/4    SN+  20:13   0:00  |                                       \_ /usr/local/bin/make -f - e

Actual Results:  
Since about 3 days I cannot emerge these (special) updated ebuilds.



# emerge info
Portage 2.0.51-r8 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20041102-r0,
2.6.10-gentoo-r1 i686)
=================================================================
System uname: 2.6.10-gentoo-r1 i686 AMD Athlon(TM) MP 2000+
Gentoo Base System version 1.6.8
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Sep  6 2004, 14:36:32)]
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.3, 1.5, 1.8.5-r2, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r2
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O3 -pipe -funroll-loops -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O3 -pipe -funroll-loops -fprefetch-loop-arrays"
DISTDIR="/var/cache/http-replicator"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://www.gigaload.org/gentoo.org/ http://gd.tuwien.ac.at/opsys/linux/gentoo/
http://gentoo.mirror.icd.hu/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ 
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://gentoo.inode.at/
ftp://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/
http://gentoo.math.bme.hu http://mirror.switch.ch/mirror/gentoo/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LDFLAGS=""
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X Xaw3d aalib acl acpi aim alsa apache2 apm arts
audiofile avi bash-completion berkdb bitmap-fonts bonobo bzlib cdr cjk crypt
cscope ctype cups curl curlwrappers dio directfb divx4linux doc dvd dvdr emacs
emacs-w3 encode esd ethereal exif faac faad fam fbcon flac foomaticdb fortran
ftp gd gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile icq
imagemagick imap imlib imlib2 innodb ipv6 jabber java javascript jikes jpeg
junit kde kerberos ldap lesstiff libcaca libgda libwww mad maildir mbox mikmod
mime mmap mmx mng motif mozilla mpeg msn mysql nas ncurses nis nls nntp nptl
odbc oggvorbis openal opengl oscar oss pam pdflib perl php plotutils png posix
postgres ppds python qt quicktime readline recode ruby samba scanner sdl slang
snmp soap sockets spell spl sse ssl svg svga tcltk tcpd tetex theora threads
tiff truetype unicode usb vhosts wmf wxwindows xface xine xml xml2 xmlrpc xmms
xosd xpm xsl xv xvid yahoo zlib linguas_de linguas_en"
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2004-12-29 11:38:36 UTC
I saw slarti` having the same problem some time ago. He found the problem .. he was using a make wrapper that broke with "make -f - e"

Could you be using anything like that by chance?

slarti: maybe you could help here as you fixed this bug already?
Comment 2 Andre Kloth 2004-12-29 11:42:23 UTC
Thanks! Some time ago i installed the make wrapper 'pretty_make.py'. Removing it fixed the problem :)