Summary: | genlop -c appears to not work all the time | ||
---|---|---|---|
Product: | Gentoo Infrastructure | Reporter: | Grégoire Favre <gregoire.favre> |
Component: | Other | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | dhp_gentoo, luckyluke |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Grégoire Favre
2007-09-19 13:05:22 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 ? 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 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. 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 :-) 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 ... 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... 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 ~ # 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. :-) The "bug" for me was in make.conf feature... An hudge thank to comment #8 !!! |