Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193055 - genlop -c appears to not work all the time
Summary: genlop -c appears to not work all the time
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-19 13:05 UTC by Grégoire Favre
Modified: 2008-11-17 12:18 UTC (History)
2 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 Grégoire Favre 2007-09-19 13:05:22 UTC
I can't use genlop -c on one of my gentoo computer : it always says that "Error: no working merge found." BUT emerge is compiling...

Reproducible: Always




a tail from emerge.log :
1190206569:  >>> emerge (5 of 6) x11-base/xorg-server-1.4-r1 to /
1190206569:  === (5 of 6) Cleaning (x11-base/xorg-server-1.4-r1::/usr/portage/x11-base/xorg-server/xorg-server-1.4-r1.ebuild)
1190206570:  === (5 of 6) Compiling/Merging (x11-base/xorg-server-1.4-r1::/usr/portage/x11-base/xorg-server/xorg-server-1.4-r1.ebuild)
1190206946:  >>> AUTOCLEAN: x11-base/xorg-server
1190206946:  --- AUTOCLEAN: Nothing unmerged.
1190206946:  === (5 of 6) Post-Build Cleaning (x11-base/xorg-server-1.4-r1::/usr/portage/x11-base/xorg-server/xorg-server-1.4-r1.ebuild)
1190206946:  ::: completed emerge (5 of 6) x11-base/xorg-server-1.4-r1 to /
1190206946:  >>> emerge (6 of 6) x11-drivers/nvidia-drivers-100.14.19 to /
1190206946:  === (6 of 6) Cleaning (x11-drivers/nvidia-drivers-100.14.19::/usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild)
1190206947:  === (6 of 6) Compiling/Merging (x11-drivers/nvidia-drivers-100.14.19::/usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild)
1190206976:  >>> AUTOCLEAN: x11-drivers/nvidia-drivers
1190206976:  --- AUTOCLEAN: Nothing unmerged.
1190206976:  === (6 of 6) Post-Build Cleaning (x11-drivers/nvidia-drivers-100.14.19::/usr/portage/x11-drivers/nvidia-drivers/nvidia-drivers-100.14.19.ebuild)
1190206976:  ::: completed emerge (6 of 6) x11-drivers/nvidia-drivers-100.14.19 to /
1190206976:  *** Finished. Cleaning up...
1190206977:  *** exiting successfully.
1190206977:  *** terminating.

Portage 2.1.3.9 (default-linux/amd64/2006.1, gcc-4.2.0, glibc-2.6.1-r0, 2.6.23-rc3 x86_64)
=================================================================
System uname: 2.6.23-rc3 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Wed, 19 Sep 2007 11:50:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18
sys-devel/gcc-config: 1.4.0-r2
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://www.gigaload.org/gentoo.org/ ftp://mirror.switch.ch/mirror/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en de en_GB fr it uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-de /usr/portage/local/layman/sunrise /usr/portage/local/layman/science /usr/portage/local/layman/xeffects /usr/portage/local/layman/nouveau /usr/portage/local/layman/vdr-1.5 /usr/portage/local/layman/vdr-experimental /usr/portage/local/layman/vdr-testing /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnowex 64bit 7zip X Xaw3d a52 aac aalib acl acpi aim aio alsa amd64 amr ansi aotuv apache2 apm asf async atlas auctex audacious audiofile avahi bash-completion batch berkdb bidi bitmap-fonts blas bonjour bonobo browserplugin buffysize buttons bzip2 bzlib cairo caps cardclient cdda cddb cdio cdparanoia cdr cg chm chroot cli clisp conax console constcw corba cracklib crypt cryptoworks cscope css csv ctype cups curl curlwrappers daap dar64 dbus deprecated dga dio discouraged divx divx4linux djbfft djvu doc dri dts dv dvb dvd dvdr dvdread dvi dynagraph ecc effects encode exif expat exscalibar ext-doc ext-dvi ext-gnumeric ext-koffice ext-kpresenter ext-kspread ext-kword ext-lyx ext-man ext-openoffice ext-pdf ext-ppt ext-ps ext-rpm ext-rtf ext-tex ext-xls fam fame fasttrack fat fbcon ffmpeg fftw firefox flac flood fltk fontconfig foomaticdb fortran fping fpx freetext freetype2 g15 gb gd gdal gdbm general gg ggi gif gimp gimpprint ginac glibc-omitfp glitz glut glx gmedia gmp gmtfull gmthigh gmtsuppl gmttria gnome gnutella gnutls gopher gpgme gpm grammar graphviz grass gs gstreamer gtalk gtk gtk2 gtkhtml guile h323 hal hdf5 howl-compat httpd iconv icq id3 idn ieee1394 imagemagick imlib ipv6 irc irdeto isdnlog ithreads jabber jack jack-tmpfs java javascript jbig jikes jp2 jpeg jpeg2k kig-scripting kqemu lame latex lcms libcaca libedit libnotify libsamplerate libtommath libvisual libwww live lj lm_sensors lnbsharing logitech-mouse logrotate lzo mad matroska mbox midi mikmod mime mimencode mjpeg mng mod mono motif moznocompose moznoirc moznomail moznoroaming mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer msn msnextras mudflap musepack mythtv nagra nautilus ncurses nethack netpbm network nfs nls nntp normalizemime nptl nptlonly nsplugin nvidia nvtv offensive ogg oggvorbis ole on-the-fly-crypt openexr opengl openmp openssl oscar pam pcre pda pdf perl player plotutils png posix ppds pppd preview-latex pulseaudio python pyzor qhull qt3 qt4 quicktime rar readline recode reflection regex reiser4 reiserfs rss rtc rtsp sasl screen sdl seca session shl shout sid silc slang slp smime sms sndfile sox speex spell spl srt sse-filters ssl stream subtitles svg svgz szip tcl tcltk tcpd tetex theora thesaurus threads tiff tk tomsfastmath tools transcode truetype truetype-fonts type1-fonts unicode usb userlocales utf8 uudeview v4l v4l2 vcd vcdimager vdr viaccess vim vim-pager vim-syntax vim-with-x vlm vorbis webdav wma wma123 wmf wmp wordperfect wv wxgtk1 wxwindows x264 xanim xattr xext xfs xine xinetd xml xml2 xorg xpm xprint xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de en_GB fr it uk" USERLAND="GNU" VIDEO_CARDS="nv nvidia v4l nouveau"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Grégoire Favre 2007-10-20 09:52:38 UTC
Anything I can do in order to solve this bug ?

On my others gentoo, I really like qlop/genlop... and I don't understand what's different here ?
Comment 2 M. B. 2007-12-01 00:41:17 UTC
Same here. It worked before, but now it doesn't (I noticed since 0.30.8-r1)

Portage 2.1.3.19 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 2800+
Timestamp of tree: Mon, 26 Nov 2007 22:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://gentoo.mirror.solnet.ch http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/berkano /usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/portage/local/mine"
SYNC="rsync://10.2.3.4/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib accessibility acl acpi aim alsa amd amd64 amr amrnb amrwb ansi apache2 arts audacious avahi bash-completion berkdb bidi binary-drivers bindist bitmap-fonts blender-game bluetooth bonjour boost branding buttons bzip2 cairo calendar caps cdio cdparanoia cdr cegui cjk cli clisp cpudetection cracklib crypt css cups cursors daap dbus de_tvtoday devil dga directfb divx doc dri dts dv dvb dvd dvdr dvdread eds emboss enca encode esd evo exif fam fame fbcon ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gcl gd gdbm ggi gif gimp gimpprint ginac glsa glut gmedia gnokii gnome gnomecanvas gnutls gphoto2 gpm graphviz groupwise gs gstreamer gtk hal hbci hddtemp hdri hpn iconv icq id3 idn ieee1394 imagemagick imlib injection insecure-savers ipv6 irmc isdnlog jabber java javascript jbig jce jikes jpeg jpeg2k kde kerberos lame lcms ldap libcaca libnotify libsamplerate live lm_sensors logitech-mouse lua lzo mad madwifi maps matroska mcal midi mikmod mime mixer mjpeg mmap mmx mmxext mng mono mp2 mp3 mpd mpeg mplayer msn mtp mudflap musepack music musicbrainz mysql ncurses network nls nntp nowin nptl nptlonly nsplugin octave offensive ofx ogg openal openexr opengl openmp oscar oss pam parse-clocks passwordsave pcre pdf perl php physfs pmu png ppds pppd print python qq qt3 qt3support qt4 quicktime rar readline realmedia reflection rt61pci rtc ruby samba sasl sbcl sdk sdl sensord session silc skins slang sndfile sockets speex spell spl sql sqlite srt sse sse2 ssl startup-notification stroke subtitles subversion svg svgz symlink sysfs syslog tcl tcpd tetex tga themes theora threads tidy tiff tk tokenizer truetype truetype-fonts tv_check type1 type1-fonts uml unicode usb v4l v4l2 vcd videos vim-syntax vim-with-x visualization vlm vorbis vorbis-psy webdav wifi wma wmf wmp wxwindows x264 xanim xcomposite xine xml xmlwriter xorg xscreensaver xv xvid xvmc yahoo zip zlib zvbi" ALSA_CARDS="ca0106" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="ati fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 DEMAINE Benoît-Pierre, aka DoubleHP 2008-10-23 00:49:31 UTC
Genlop has many reasons to not work properly. The bug would be legitimate it "work some times, and some times not on a given box". But, bug author says: "it never works always on the same box".

Please, close bug "INVALID", and check for why it would bug on *this* machine:
- is proc mounted ? (are you in chroot ? )
- is /var writable ?
- are log daemon running ?
- are all portage/emerge/genlop input and output log files on disk ?

/proc is required to list running processes. /var is required to access logs, and compute estimations. Last time i had this exacte message "Error: no working merge found." ... it was because i was in chroot, and had forgotten to mount /proc.

To me, not a bug => INVALID.

Otherwise, please CLOSE the bug until the author provides MOREINFO. This discussion would have better place in forum, or chat, than BTS. Description of problem is not clear enough.
Comment 4 Grégoire Favre 2008-10-23 07:23:06 UTC
Unfortunately, :
1) proc is mounted
2) drwxr-xr-x  17 root root       4096 2008-01-28 14:44 var
   drwxr-xr-x 14 root   root   4096 2008-10-20 13:36 log
3) root      2500  0.0  0.0  16796   976 ?        Ss   Oct20   1:24 /usr/sbin/syslog-ng
4) yes all output are on disks
5) and no, I am not chrooted...

That's say : it's nice to have some new about this :-)
Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2008-10-23 13:57:16 UTC
I was about to ask you a strace ... but from memory, genlop is a script, not a binary. Could you try to activate some verbose/debug option in the script ?

For example, if it was a bash script (which i know is not the case, but just IE), add "-x" to the first line of script ... 
Comment 6 Grégoire Favre 2008-10-24 08:24:48 UTC
I would if I know how to do the same in perl...
Right now I have gcc-4.3.2 which recompil and still the error :
"!!! Error: no working merge found.
(the -c option only works if there is an ongoing compilation, see manpage)"
But tail -10 /var/log/emerge.log :
1224836047:  ::: completed emerge (1 of 8) sys-fs/ntfs3g-1.5012 to /
1224836047:  >>> emerge (2 of 8) sys-kernel/gentoo-sources-2.6.27-r1 to /
1224836050:  === (2 of 8) Cleaning (sys-kernel/gentoo-sources-2.6.27-r1::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.27-r1.ebuild)
1224836050:  === (2 of 8) Compiling/Merging (sys-kernel/gentoo-sources-2.6.27-r1::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.27-r1.ebuild)
1224836067:  === (2 of 8) Merging (sys-kernel/gentoo-sources-2.6.27-r1::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.27-r1.ebuild)
1224836334:  === (2 of 8) Post-Build Cleaning (sys-kernel/gentoo-sources-2.6.27-r1::/usr/portage/sys-kernel/gentoo-sources/gentoo-sources-2.6.27-r1.ebuild)
1224836334:  ::: completed emerge (2 of 8) sys-kernel/gentoo-sources-2.6.27-r1 to /
1224836334:  >>> emerge (3 of 8) sys-devel/gcc-4.3.2 to /
1224836336:  === (3 of 8) Cleaning (sys-devel/gcc-4.3.2::/usr/portage/sys-devel/gcc/gcc-4.3.2.ebuild)
1224836336:  === (3 of 8) Compiling/Merging (sys-devel/gcc-4.3.2::/usr/portage/sys-devel/gcc/gcc-4.3.2.ebuild)
date +%s gives me 1224836621 which seems fine...
And yes, gcc is still compiling...
Comment 7 DEMAINE Benoît-Pierre, aka DoubleHP 2008-11-14 14:49:16 UTC
Try this first: edit /usr/bin/genlop and change the first line for:

#!/usr/bin/perl -w

then try this:

/usr/bin/genlop -i gcc

It should fail, and say why. Please also confirm that other options than -c also bug. -c specifically tries to determine what are the running process, and thus, need /proc more than other features. -i and -t only need the logs. If those two also fail, then, the problem is likely to be around /var or /etc.

perl -w is said to be a debug mode.

And please, give a COMPLEET copy/paste of your console, something like this:

******************************************************

moon-gen-3 ~ # /usr/bin/genlop -i system
!!! Error: no merge found for 'system'
moon-gen-3 ~ # /usr/bin/genlop -i gcc
 * sys-devel/gcc


   Total builds: 3
   Global build time: 3 hours, 57 minutes and 52 seconds.
   Average merge time: 1 hour, 19 minutes and 17 seconds.

   Info about currently installed ebuild:

   * sys-devel/gcc-4.1.2
   Install date: Mon Feb 25 12:47:44 2008
   USE=""
   CFLAGS="-O2 -march=athlon-mp -pipe"
moon-gen-3 ~ # vim /usr/bin/genlop
moon-gen-3 ~ #
Comment 8 Luca Lesinigo 2008-11-16 23:35:28 UTC
The exact error message from genlop should be:
  !!! Error: no working merge found.
  (the -c option only works if there is an ongoing compilation, see manpage)

and it's actually wrong. The "no merge found" is obviously correct, but the reason why it hadn't found any merge is wrong. There are cases where genlop won't find the current merge even if you are not chrooted, proc mounted, and so on.
Take a look at bug #185507 where JeR lists such cases and check if one of them applies to you.
Comment 9 Grégoire Favre 2008-11-17 12:18:42 UTC
:-)

The "bug" for me was in make.conf feature...

An hudge thank to comment #8 !!!