At the beginning: ... cat: write error: Broken pipe Then the end: >>> Regenerating /etc/ld.so.cache... * Creating FC font cache...... [ ok ] * Generating encodings.dir...... [ ok ] * Creating fonts.scale files...... //usr/X11R6/bin/ttmkfdir: option requires an argument -- e 0 /usr/sbin/ebuild.sh: //usr/X11R6/lib/X11/fonts/encodings/encodings.dir: Permission denied //usr/X11R6/bin/ttmkfdir: option requires an argument -- e 0 /usr/sbin/ebuild.sh: //usr/X11R6/lib/X11/fonts/encodings/encodings.dir: Permission denied [ ok ] * Generating fonts.dir files...... [ ok ] * Generating Xft Cache...... [ ok ] * Fixing permissions...... [ ok ] * Switching to nvidia OpenGL interface... [ ok ] Would guess that some simple typos are causing the prob.
Btw, is there any particular reason why this ebuild doesn't seem to respect my parallel make settings?
because not all packages can build in parallel ... they break ...
The latest one still seems to have problems: >>> Regenerating /etc/ld.so.cache... * Creating FC font cache...... [ ok ] * Generating encodings.dir...... [ ok ] * Creating fonts.scale files...... unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/jisx0212.1990-0.enc.gz, line 3 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/jisx0212.1990-0.enc.gz, line 3 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz, line 3 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz, line 3 unexpected token 0x80 in file //usr/X11R6/lib/X11/fonts/encodings/large/gbk- 0.enc.gz, line 4 unexpected token 0x40 in file //usr/X11R6/lib/X11/fonts/encodings/large/gbk- 0.enc.gz, line 4 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/jisx0212.1990-0.enc.gz, line 3 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/jisx0212.1990-0.enc.gz, line 3 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz, line 3 unexpected token 0x20 in file //usr/X11R6/lib/X11/fonts/encodings/large/gb2312.1980-0.enc.gz, line 3 unexpected token 0x80 in file //usr/X11R6/lib/X11/fonts/encodings/large/gbk- 0.enc.gz, line 4 unexpected token 0x40 in file //usr/X11R6/lib/X11/fonts/encodings/large/gbk- 0.enc.gz, line 4 [ ok ] * Generating fonts.dir files...... [ ok ] * Generating Xft Cache...... [ ok ] * Fixing permissions...... [ ok ] * Switching to nvidia OpenGL interface... [ ok ] >>> Regenerating /etc/ld.so.cache... >>> x11-base/xfree-4.2.99.3-r1 merged.
I was just going to revert back to 4.2.1-r1 and noticed this: # emerge -k xfree-4.2.1-r2.tbz2 Calculating dependencies ...done! >>> emerge (1 of 1) x11-base/xfree-4.2.1-r2 to / >>> extracting info >>> extracting xfree-4.2.1-r2 cat: write error: Broken pipe >>> Merging x11-base/xfree-4.2.1-r2 to / >>> Merging x11-base/xfree-4.2.1-r2 to / ... The rest went fine though. Not sure wth is causing the "cat: write error: Broken pipe" thing.
# emerge -k xfree-4.2.1.tbz2 Calculating dependencies ...done! >>> emerge (1 of 1) x11-base/xfree-4.2.1 to / >>> extracting info >>> extracting xfree-4.2.1 cat: write error: Broken pipe >>> Merging x11-base/xfree-4.2.1 to / Same write error. I'm mystified.
Mozilla for one also have the pipe error if you use binary package I if I remember correctly. Problem with emerge and binary packages ? Then, what version of portage Garen ? Do you use the usermode patches ?
I'm running portage-2.0.46-r2. Just out of curiosity I had wondered if maybe it was a kernel bug related to pipes, so I tried reproducing the write error with different kernels (2.4.20, 2.4.19) and got the same thing. I'm not using User Mode Linux if thats what you were referring to by "user mode patches." I'm using gentoo-sources-2.4.19-r10, and for the most part am tracking stable. The only correlations I see so far is that it happens with really large binary packages.
I've reproduced the Mozilla issue on my side too while emerge -k'ing: >>> emerge (2 of 2) net-www/mozilla-1.2.1-r3 to / >>> extracting info >>> extracting mozilla-1.2.1-r3 cat: write error: Broken pipe ...
For comment #3, you need to update ttmkfdir to version 3.0.4 ...
portage can't seem to find the tarball for ttmkfdir 3.0.4, resulting in a build failure: >>> emerge (1 of 1) x11-misc/ttmkfdir-3.0.4 to / >>> Downloading http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/ttmkfdir- 3.0.4.tar.bz2 --16:36:32-- http://www.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/ttmkfdir- 3.0.4.tar.bz2 => `/archive/portage/distfiles/ttmkfdir-3.0.4.tar.bz2' Resolving www.ibiblio.org... done. Connecting to www.ibiblio.org[152.2.210.81]:80... connected. HTTP request sent, awaiting response... 404 Not Found 16:36:32 ERROR 404: Not Found. >>> Downloading http://www.ibiblio.org/pub/linux/distributions/gentoo/distfiles/ttmkfdir- 3.0.4.tar.bz2 --16:36:33-- http://www.ibiblio.org/pub/linux/distributions/gentoo/distfiles/ttmkfdir- 3.0.4.tar.bz2 => `/archive/portage/distfiles/ttmkfdir-3.0.4.tar.bz2' Resolving www.ibiblio.org... done. Connecting to www.ibiblio.org[152.2.210.81]:80... connected. HTTP request sent, awaiting response... 404 Not Found 16:36:33 ERROR 404: Not Found. >>> Downloading http://www.gentoo.org/~azarah/ttmkfdir-3.0.4.tar.bz2 --16:36:33-- http://www.gentoo.org/%7Eazarah/ttmkfdir-3.0.4.tar.bz2 => `/archive/portage/distfiles/ttmkfdir-3.0.4.tar.bz2' Resolving www.gentoo.org... done. Connecting to www.gentoo.org[216.110.76.37]:80... connected. HTTP request sent, awaiting response... 404 Not Found 16:36:33 ERROR 404: Not Found. !!! Couldn't download ttmkfdir-3.0.4.tar.bz2. Aborting.
It now builds fine, but the strange cat/write error is still there.
Open new bug if this is still an issue with -r2.