Hi, I'm having a strange problem when emerging app-office/koffice-1.6.3-r1 on my system (emerge --info below). I've tried to emerge it for three times by now and all the attempts failed, with a different error each time (even though they all happen while compiling krita). The error is always /bin/sed: can't read XXX: No such file or directory with a different XXX each time. What scares me is that XXX always seems to be a filename that got corrupted, for example: 1) /usr/X11R6/lib/libX#ursor.la 2) /usr/X11\x126/lib/libGL.la The wrong characters in 1) and 2), '#' and '\x12', are at a hamming distance of 1 bit from their correct counterparts, 'c' and 'R' (guesswork). I will attach the logs to this bug for you to see. Should I suspect memory or swap corruption? For what it's worth, my PORTAGE_TMPDIR is in a tmpfs partition, but it seems strange to me that the corruption always happens when compiling krita, and on a /bin/sed command. Reproducible: Always Steps to Reproduce: tjgq@trillian:~$ emerge --info Portage 2.1.2.11 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r2 i686) ================================================================= System uname: 2.6.22-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System release 1.12.9 Timestamp of tree: Fri, 17 Aug 2007 14:30:01 +0000 ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 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.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-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" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages metadata-transfer notitles parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" LC_ALL="en_US.UTF-8" LINGUAS="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="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi alsa apache2 arts asf audiofile bash-completion berkdb bitmap-fonts bluetooth bootsplash bzip2 cairo caps cddb cdparanoia cdr cjk cli cracklib crypt cscope css cups curl cvs dbus directfb dri dts dv dvd dvdnav dvdread dvi emacs encode esd evo exif fam fame fat fbcon ffmpeg firefox flac fortran ftp fuse gcj gd gdbm gif gimpprint glut gphoto2 gpm gstreamer gtk gtkhtml hal howl iconv idn ieee1394 imagemagick imap imlib ipv6 isdnlog jack java javascript jpeg jpeg2k justify kde kdeenablefinal kdexdeltas kerberos kqemu ladspa lcms ldap libcaca lm_sensors mad mbox midi mikmod mime mjpeg mmx mmxext mng mono mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer msn mudflap mule ncurses nls nptl nptlonly nsplugin ntfs objc objc++ objc-gc offensive ogg opengl openmp oss pcre pdf perl php plotutils png posix pppd python qt3 qt3support qt4 quicktime rdesktop readline real reflection reiserfs samba sasl scanner sdl session slang sndfile snmp sockets softmmu sox speech speex spell spl sse sse2 ssl subtitles subversion svg svga symlink tcl tcltk tcpd tetex theora threads tiff timidity tk tokenizer toolbar transcode truetype truetype-fonts type1-fonts unicode usb utempter v4l v4l2 vcd vorbis wifi win32codecs wma wmf x86 xcomposite xine xml xorg xpm xv xvid zeroconf zlib" ALSA_CARDS="intel8x0" 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="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 128489 [details] Try #1
Created attachment 128491 [details] Try #2
Created attachment 128492 [details] Try #3
> I've tried to emerge it for three times by now and all the attempts failed, > with a different error each time (even though they all happen while compiling > krita). The error is always > > /bin/sed: can't read XXX: No such file or directory > > Should I suspect memory or swap corruption? For what it's worth, my > PORTAGE_TMPDIR is in a tmpfs partition, but it seems strange to me that the > corruption always happens when compiling krita, and on a /bin/sed command. How much RAM and SWAP do you have? Have you tried to build the package without using the tmpfs partition? > ccache version 2.4 [enabled] > dev-util/ccache: 2.4-r7 > CFLAGS="-march=pentium4 -O3 -pipe" > CXXFLAGS="-march=pentium4 -O3 -pipe" > FEATURES="ccache distlocks fixpackages metadata-transfer notitles > parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox" > PORTAGE_TMPDIR="/tmp" > USE="... kdeenablefinal kdexdeltas Before you open a bug you should disable ccache and try to build the package without kdeenablefinal. You should also think on replace -O3 with -O2. I don't know if you might have problems by using kdexdeltas.
(In reply to comment #4) > How much RAM and SWAP do you have? Have you tried to build the package without > using the tmpfs partition? 512MB RAM, 4GB swap. > Before you open a bug you should disable ccache and try to build the package > without kdeenablefinal. You should also think on replace -O3 with -O2. I don't > know if you might have problems by using kdexdeltas. I will try again with your proposed settings. Will report back.
(In reply to comment #4) > How much RAM and SWAP do you have? Have you tried to build the package without > using the tmpfs partition? > > Before you open a bug you should disable ccache and try to build the package > without kdeenablefinal. You should also think on replace -O3 with -O2. I don't > know if you might have problems by using kdexdeltas. > It compiled fine without ccache and kde{xdeltas,enablefinal} turned off. Compilation was with -O3 with PORTAGE_TMPDIR still in a tmpfs. I will do one or two extra compilations to see if I can find out which setting the problem came from (will report tomorrow or so). But for now it is solved, even if just by chance.
(In reply to comment #6) > I will do one or two extra compilations to see if I can find out which setting > the problem came from (will report tomorrow or so). But for now it is solved, > even if just by chance. Apparently the problem is with kdeenablefinal. With this flag on (and the rest set as in the successful attempt) it failed again, even if the error is somewhat different from the other ones: libtool: link: cannot find the library `' make[4]: *** [keximigratetest] Error 1 make[4]: Leaving directory `/tmp/portage/app-office/koffice-1.6.3-r1/work/koffice-1.6.3/kexi/migration' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/portage/app-office/koffice-1.6.3-r1/work/koffice-1.6.3/kexi/migration' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/portage/app-office/koffice-1.6.3-r1/work/koffice-1.6.3/kexi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/portage/app-office/koffice-1.6.3-r1/work/koffice-1.6.3' make: *** [all] Error 2 I think I'll leave it here. Thanks for your help.
The problem is that you're using kdeenablefinal. It isn't marked as experimental for no reason. Simply don't use it or at least don't file bugs because of it.