Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48895 - xorg-x11 re-emerge fails on Type1 fonts scaling
Summary: xorg-x11 re-emerge fails on Type1 fonts scaling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: PPC Linux
: Highest normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
: 103040 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-04-24 14:16 UTC by m3x
Modified: 2007-03-14 01:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my emerge info output as file-attachie (emerge.info,1.44 KB, text/plain)
2004-04-25 11:23 UTC, m3x
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m3x 2004-04-24 14:16:35 UTC
re-emerge xorg-x11 fails with the following error:

set USE-Flags for the xorg-ebuild are: "+pam +nls"

... 
LD_LIBRARY_PATH=../../../exports/lib XLOCALEDIR=../../../exports/lib/locale ../../../exports/bin/mkfontscale . 
make[5]: *** [fonts.scale] Illegal instruction 
make[5]: *** Deleting file 'fonts.scale' 
Leaving directory `/var/tmp/portage/xorg-x11-6.7.0/work/xc/fonts/scaled/Type1' 
... 

Installed versions:
fontconfig 2.2.2
freetype 2.1.7		USE="+zlib"
autoconf 2.58-r1
automake 1.8.3
CFLAGS "-Os -pipe -mcpu=750"
MAKEOPTS="-j2"
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-24 21:59:28 UTC
Illegal instruction? Sounds like you may have sse, mmx or 3dnow USE flags on a CPU that's not capable of them. Please attach a full compilation log and the output of `emerge info`.
Comment 2 m3x 2004-04-25 11:23:15 UTC
Created attachment 30028 [details]
my emerge info output as file-attachie
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-28 15:21:00 UTC
Try rebuilding freetype with -fno-strict-aliasing. Foser, here's that problem I was mentioning a while back.
Comment 4 foser (RETIRED) gentoo-dev 2004-05-05 09:04:24 UTC
yep.. thought it was 2.1.7 only (?) or does it go for all versions ?
Comment 5 m3x 2004-05-05 09:37:02 UTC
Problem is only with 2.1.7. 2.1.5-r1 -> no problems. I am waiting for ebuild 2.1.8 and will try it again on ppc.
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-05-05 09:43:00 UTC
Some more info:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=118021
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-11 08:20:38 UTC
Just switched from xfree86 to xorg-x11-6.7.0-r1 and fonts.scale creation is still broken:

 * Creating fonts.scale files......
/usr/sbin/ebuild.sh: line 1430: 18651 Segmentation fault      LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/usr/X11R6/lib" ${ROOT}/usr/X11R6/bin/ttmkfdir -x 2 -e ${ROOT}/usr/share/fonts/encodings/encodings.dir -o ${x}/fonts.scale -d ${x}
/usr/sbin/ebuild.sh: line 1430:  5573 Segmentation fault      LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/usr/X11R6/lib" ${ROOT}/usr/X11R6/bin/ttmkfdir -x 2 -e ${ROOT}/usr/share/fonts/encodings/encodings.dir -o ${x}/fonts.scale -d ${x}
/usr/sbin/ebuild.sh: line 1430:  4321 Segmentation fault      LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/usr/X11R6/lib" ${ROOT}/usr/X11R6/bin/ttmkfdir -x 2 -e ${ROOT}/usr/share/fonts/encodings/encodings.dir -o ${x}/fonts.scale -d ${x}                           [ ok ]
 * Generating fonts.dir files......                                                                                             [ ok ]
 * Generating Xft cache......
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2004-08-11 19:31:33 UTC
Uh, Carsten, that looks like a distinctly different bug. Look at the error message "Illegal instruction" in the original report. Also note that yours fails at ttmkfdir, not mkfontscale.

Maybe you need to try a better search. I came up with bug #55383 and bug #54356, both of which actually show the symptoms you have.
Comment 9 Carsten Lohrke (RETIRED) gentoo-dev 2004-08-12 01:41:40 UTC
Sorry for misusing this bug report, Donny. I searched for "scale font" and this bug report was the "best" fit. I was pretty sure, that opening a new bug report would create a dupe, so I used this one... Thanks for pointing me to Bug 55883 - going back to =ttmkfdir-3.0.9 fixed the problem.
Comment 10 t35t0r 2005-05-26 17:21:07 UTC
I'm getting the same error when I try to compile [ebuild  N    ]
x11-base/xorg-x11-6.8.2-r1  -3dfx -3dnow +bitmap-fonts -cjk -debug -dlloader
-dmx -doc -font-server -hardened -insecure-drivers +ipv6 -minimal +mmx +nls
+opengl +pam -sdk +sse -static +truetype-fonts +type1-fonts (-uclibc) -xprint
+xv 0 kB on the following machine:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.9-gentoo-r1 i686)
=================================================================
System uname: 2.6.9-gentoo-r1 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Mar 11 2005, 17:34:27)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo  http://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://eglimp/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts crypt cups emboss encode
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib ipv6 java jpeg kde libg++
libwww mad mikmod mmx motif mp3 mpeg mtrr ncurses nls oggvorbis opengl oss pam
pdflib perl png python qt quicktime readline samba sdl spell sse ssl svga tcpd
tiff truetype truetype-fonts type1-fonts xml2 xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

livecd xorg-x11-6.8.2-r1 # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Celeron (Coppermine)
stepping        : 3
cpu MHz         : 564.896
cache size      : 128 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr sse
bogomips        : 1114.11

This is the error I get:

LD_LIBRARY_PATH=../../../exports/lib XLOCALEDIR=../../../exports/lib/locale 
../../../exports/bin/bdftopcf -t screen8x16b.bdf | gzip > screen8x16b.pcf.gz
rm -f fonts.dir
LD_LIBRARY_PATH=../../../exports/lib XLOCALEDIR=../../../exports/lib/locale 
../../../exports/bin/mkfontscale -b -s -l   .
make[5]: Leaving directory
`/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts/bdf/cyrillic'
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts/bdf'
making all in fonts/scaled...
make[4]: Entering directory
`/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts/scaled'
making all in fonts/scaled/Type1...
make[5]: Entering directory
`/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts/scaled/Type1'
rm -f fonts.scale
LD_LIBRARY_PATH=../../../exports/lib XLOCALEDIR=../../../exports/lib/locale 
../../../exports/bin/mkfontscale  .
rm -f fonts.dir
LD_LIBRARY_PATH=../../../exports/lib XLOCALEDIR=../../../exports/lib/locale 
../../../exports/bin/mkfontscale -b -s -l   .
/usr/bin/fc-cache   .
make[5]: *** [fonts.cache] Illegal instruction
make[5]: Leaving directory
`/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts/scaled/Type1'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts/scaled'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc/fonts'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.2-r1/work/xc'
make: *** [World] Error 2

!!! ERROR: x11-base/xorg-x11-6.8.2-r1 failed.
!!! Function build, Line 954, Exitcode 2

I tried compiling the thing with -march=pentium4, and pentium3, and finally i686
and none of them worked, i386 will probably do the same thing ..any help would
be greatly appreciated.
Comment 11 t35t0r 2005-06-04 09:42:46 UTC
someone upgrade this to a blocker
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2005-06-04 14:46:08 UTC
Anyone having a problem, look at comment #3.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2005-08-19 02:20:43 UTC
*** Bug 103040 has been marked as a duplicate of this bug. ***
Comment 14 Jamie Dobbs 2005-08-19 13:50:21 UTC
Have tried the suggestion of rebuilding freetype with -fno-strict-aliasing but
still cannot emerge xorg which is very frustrating as without xorg I do not have
a useful system
Comment 15 Henrique Rodrigues 2007-01-12 03:58:11 UTC
Is this still an issue?
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2007-03-14 01:54:36 UTC
Obsolete dead bug.