Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19997 - emerge fails when upgrading xfree from 4.2.1-r2 to 4.3.0-r2
Summary: emerge fails when upgrading xfree from 4.2.1-r2 to 4.3.0-r2
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-26 07:09 UTC by Bjarke Freund-Hansen
Modified: 2003-10-15 10:36 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 Bjarke Freund-Hansen 2003-04-26 07:09:45 UTC
emerge -u xfree fails with an error in src_compile function. It fails every time
i try to upgrade on this computer, I haven't got any other gentoo-computer with
the same xfree version. The problem came when doing a "emerge sync && emerge -u
world".

Reproducible: Always
Steps to Reproduce:
1. Install gentoo with xfree 4.2.1-r2
2. emerge sync
3. emerge xfree
Actual Results:  
It compiles a lot of thing correctly (not other ebuilds, but parts of xfree),
but fails with the following error:

Writing 223 characters into file '9x15-ISO8859-1.bdf'.
rm -f 9x15B-ISO8859-1.bdf
perl  ../../../fonts/util/ucs2any.pl 9x15B.bdf ../../../fonts/util/map-ISO8859-1
ISO8859-1
Writing 223 characters into file '9x15B-ISO8859-1.bdf'.
rm -f 9x18-ISO8859-1.bdf
perl  ../../../fonts/util/ucs2any.pl 9x18.bdf ../../../fonts/util/map-ISO8859-1
ISO8859-1
make[4]: *** [9x18-ISO8859-1.bdf] Segmentation fault
make[4]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf/misc'
make[3]: *** [includes] Error 2
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xfree-4.3.0-r2 failed.
!!! Function src_compile, Line 453, Exitcode 2
!!! (no error message)

Expected Results:  
Upgradede my xfree to version 4.3.0-r2

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-openmosix-r2 i686 Celeron (Coppermine)
GENTOO_MIRRORS="http://gentoo.linux.no http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="oss 3dnow apm avi cups encode gif jpeg kde gnome libg++ mikmod mmx mpeg nls
pdflib quicktime spell truetype xml2 xv zlib gtkhtml gdbm berkdb slang readline
arts bonobo svga java guile sdl tcpd pam libwww perl python esd imlib oggvorbis
gtk qt motif opengl ldap X alsa aalib crypt evo gpm gtk2 mozilla ncurses pcmcia
png samba ssl xmms x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe"
CXXFLAGS="-march=pentium2 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Bjarke Freund-Hansen 2003-04-26 10:12:12 UTC
Sorry, error in steps
step three should be:
3. emerge -u xfree
and *not*:
3. emerge xfree
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-04-26 11:09:23 UTC
try: emerge -puD world
Comment 3 Bjarke Freund-Hansen 2003-04-26 11:57:11 UTC
emerge -puD world returns a lot of packages:

# emerge -puD world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild  N   ] x11-base/xfree-4.3.0-r2
[ebuild    U ] media-libs/alsa-lib-0.9.2 [0.9.0_rc6]
[ebuild    U ] x11-themes/gnome-icon-theme-1.0.2 [1.0.1]
[ebuild  N   ] x11-themes/gnome-themes-2.2.1
[ebuild  N   ] x11-wm/metacity-2.4.34
[ebuild    U ] gnome-base/control-center-2.2.1 [1.4.0.5-r1]
[ebuild  N   ] app-shells/sash-3.4-r5
[ebuild    U ] x11-libs/qt-3.1.2-r3 [3.1.2]
[ebuild  N   ] app-dicts/aspell-en-0.50.2
[ebuild    U ] x11-misc/xloadimage-4.1-r1 [4.1]
[ebuild    U ] media-sound/xmms-1.2.7-r20 [1.2.7-r19]
[ebuild    U ] media-libs/xvid-0.9.1 [0.9.0]
[ebuild    U ] media-libs/id3lib-3.8.3-r1 [3.8.0]
[ebuild    U ] media-sound/alsa-driver-0.9.2 [0.9.0_rc6]
[ebuild    U ] net-im/licq-1.2.6 [1.2.4-r2]

I emerged:
# emerge -uD world

<snip: ok compile>
Writing 223 characters into file '6x10-ISO8859-1.bdf'.
rm -f 6x12-ISO8859-1.bdf
perl  ../../../fonts/util/ucs2any.pl 6x12.bdf ../../../fonts/util/map-ISO8859-1 ISO8859-1
Writing 223 characters into file '6x12-ISO8859-1.bdf'.
rm -f 6x13-ISO8859-1.bdf
perl  ../../../fonts/util/ucs2any.pl 6x13.bdf ../../../fonts/util/map-ISO8859-1 ISO8859-1
make[4]: *** [6x13-ISO8859-1.bdf] Segmentation fault
make[4]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf/misc'
make[3]: *** [includes] Error 2
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xfree-4.3.0-r2 failed.
!!! Function src_compile, Line 453, Exitcode 2
!!! (no error message)

The same error as befor. I tried:
# emerge unmerge xft xfree
and then
# emerge -uD world
and 
# emerge -u world

both with the excat same results.

I know about the "problem" with xft beeing a part of xfree and not a seprate package, but that dosen't seem to be the problem here.
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-04-26 12:01:32 UTC
change "-march=pentium2" to i686

i think coppermine is pentium3
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-04-26 12:04:10 UTC
no copperming _is_ pentium3

change to pentium3 or i686
Comment 6 Bjarke Freund-Hansen 2003-04-26 12:18:09 UTC
# grep "model name" /proc/cpuinfo
model name        : Celeron (Coppermine)

And in make.conf in a comment above CFLAGS it says: "pentium2 (Celeron)", that's why I choosed pentium2. But shouldn't pentium3 be compatible with pentium2?

Anyway, I'm compiling with CFLAGS="-march=pentium3 -O3 -pipe" right now, I'll return with the result when it's done, or failed.
Comment 7 Bjarke Freund-Hansen 2003-04-26 12:24:40 UTC
And it failed, but this time *not* with a "Segmentation fault" but still while compiling fonts. Here's the tailing lines:

rm -f 7x14t.bdf
perl  ../../../fonts/util/bdftruncate.pl 0x3200 < 7x14.bdf > 7x14t.bdf
rm -f 7x14Bt.bdf
perl  ../../../fonts/util/bdftruncate.pl 0x3200 < 7x14B.bdf > 7x14Bt.bdf
rm -f 8x13t.bdf
perl  ../../../fonts/util/bdftruncate.pl 0x3200 < 8x13.bdf > 8x13t.bdf
rm -f 8x13Bt.bdf
perl  ../../../fonts/util/bdftruncate.pl 0x3200 < 8x13B.bdf > 8x13Bt.bdf
make[4]: *** [8x13Bt.bdf] Error 139
make[4]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf/misc'
make[3]: *** [includes] Error 2
make[3]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf'
make[2]: *** [includes] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts'
make[1]: *** [includes] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.3.0-r2/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xfree-4.3.0-r2 failed.
!!! Function src_compile, Line 453, Exitcode 2
!!! (no error message)
Comment 8 Bjarke Freund-Hansen 2003-04-26 12:52:25 UTC
I just emerged two times, and got two diffrent errors, but both Segmentation faults. The first one was the same as the one in the bug-report, but the second was in another font, but still a font in the bdf/misc.

It seems it always failes when "Writing xxx characters into file 'xYxxx-ISOxxxx-x.bdf'." in the xc/fonts/bdf/misc directory. And /always/ with a "Segmentation fault".
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-04-26 13:10:08 UTC
which clock frequenzy does your cpu provide ?

do you have enough free discspace ?
fontconfig is up2date ?

try i686
Comment 10 Bjarke Freund-Hansen 2003-04-26 13:22:25 UTC
My CPU provides 700 Mhz.

When it fails there's about 200 MB space left.

"emerge search fontconfig" tells me I've got the latest available version installed, version 2.1-r1.

I've got problem on one of my other computers failing when compiling because it gets to hot, so I need to turn on an external 230V fan. But I haven't had any problems with heat on this computer, and I dosen't seem to be the problem here, but I'll turn on the external fan, to be completely sure.

I'm compiling right now with:
CFLAGS="-march=i686 -O3 -pipe"
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-04-26 13:26:56 UTC
celeron 700 is pentium3 arch with
 a) less fsb
 b) less cache (2nd level)
Comment 12 Michael Fitzpatrick 2003-04-26 13:31:17 UTC
Possibly perl isn't built correctly, or one of its dependancies, or it's corrupt somehow.

sig 11 on different files in that directory could be one of the usual causes, memory (or other hardware) problems.

You could try to build the fonts manually, after it's failed :-

#cd /var/tmp/portage/xfree-4.3.0-r2/work/xc/fonts/bdf/misc
#make clean

then repeat
#make 

if you hit one that fails, try running the perl ../../../fonts/util etc command manually.

If you can get it to build one that segfaults, it doesn't bode well for your hardware.
Comment 13 Bjarke Freund-Hansen 2003-04-26 13:46:15 UTC
I type "make" and it /compiles/ and failes somewhere, if I then type "perl ..." it  /compiles/ fine, I can then type make again and it fails somewhere again. And I can continue to do that forever.

I'll try removing perl and emergeing it again to see if that helps. I'll be back when that's done, I'll properly take some time.

Thanks for the help, and I'm sorry if it's a /false/ bug.
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-04-26 14:13:46 UTC
you don't have to remove things

just emerge <package>, then it overwrites the old package

please try memtest from the latest livecd, maybe your memory is bad
Comment 15 Bjarke Freund-Hansen 2003-05-10 04:49:54 UTC
I have tried a lot of diffrent combinations of USE flags, compile flags and done a memtest. My memory seems to be fine, and if I compile perl perl-5.8.0-r9 everything works fine, xfree compiles as supposed, and everything else I've tried. But when trying to compile perl-5.8.0-r10 it fails. I don't have any idear what the problem is, but currently I'm using perl-5.8.0-r9 and everything works fine, except that many new packages require perl-5.8.0-r10.
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-01 02:04:42 UTC
bjarke,  can you please file a new bug report with your perl compile errors?
Comment 17 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-07 13:28:33 UTC
Bjarke, is this still an issue?
Comment 18 Bjarke Freund-Hansen 2003-10-15 05:44:18 UTC
No it is not, the computer on which the bug was present had to be repaired,
so I'm installing gentoo from scratch, and there's no problem with xfree.
Comment 19 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-15 10:36:58 UTC
First issue seemed to be incorrect issue. Could not reproduce second issue
with perl.