Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-13-2007, 01:31 AM   #1
LQ Newbie
Registered: Feb 2007
Posts: 28

Rep: Reputation: 11
Very weird errors compiling freetype-2.1.10 on my BLFS system

When I try to compile freetype, I get the following:

./builds/unix/libtool --mode=compile gcc -pedantic -ansi -I/sources/freetype-2.1.10/objs -I./builds/unix -I/sources/freetype-2.1.10/include -c -Wall -O2 -fomit-frame-pointer -pipe -march=k6-2 -mmmx -m3dnow -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DDARWIN_NO_CARBON -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -I/sources/freetype-2.1.10/src/base -o /sources/freetype-2.1.10/objs/ftbase.lo /sources/freetype-2.1.10/src/base/ftbase.c
gcc -pedantic -ansi -I/sources/freetype-2.1.10/objs -I./builds/unix -I/sources/freetype-2.1.10/include -c -Wall -O2 -fomit-frame-pointer -pipe -march=k6-2 -mmmx -m3dnow -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DDARWIN_NO_CARBON "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -I/sources/freetype-2.1.10/src/base /sources/freetype-2.1.10/src/base/ftbase.c -fPIC -DPIC -o /sources/freetype-2.1.10/objs/.libs/ftbase.o
/sources/freetype-2.1.10/src/base/fttrigon.c: In function 'ft_trig_pseudo_rotate':
/sources/freetype-2.1.10/src/base/fttrigon.c:206: error: unable to find a register to spill in class 'DREG'
/sources/freetype-2.1.10/src/base/fttrigon.c:206: error: this is the insn:
(insn:HI 157 156 158 1 (parallel [
(set (reg:SI 0 ax [96])
(truncate:SI (lshiftrt:DI (mult:DI (zero_extend:DI (reg:SI 0 ax [97]))
(zero_extend:DI (reg:SI 2 cx [93])))
(const_int 32 [0x20]))))
(clobber (scratch:SI))
(clobber (reg:CC 17 flags))
]) 181 {*umulsi3_highpart_insn} (insn_list:REG_DEP_TRUE 155 (insn_list:REG_DEP_TRUE 156 (nil)))
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_UNUSED (scratch:SI)
(expr_list:REG_DEAD (reg:SI 2 cx [93])
(expr_list:REG_DEAD (reg:SI 0 ax [97])
(expr_list:REG_UNUSED (reg:CC 17 flags)
(expr_list:REG_UNUSED (scratch:SI)
(expr_list:REG_EQUAL (udiv:SI (reg:SI 92)
(const_int 11796480 [0xb40000]))
/sources/freetype-2.1.10/src/base/fttrigon.c:206: confused by earlier errors, bailing out
make: *** [/sources/freetype-2.1.10/objs/ftbase.lo] Error 1

This is very weird, and doesn't look like any kind of output I've ever seen. I mean, all the compile errors I've had before were due to a missing library or something. I have no idea what's wrong here.

Last edited by athenian200; 03-13-2007 at 01:33 AM.
Old 03-13-2007, 02:21 AM   #2
LQ Newbie
Registered: Feb 2007
Posts: 28

Original Poster
Rep: Reputation: 11
Okay, I got it working, but I still don't understand what was wrong.
After reading that someone had a similar problem here,

I tried removing the -march=k6-2, -mmmx, and -m3dnow compile flags, and it worked. Then I tried adding back the flags one at a time, and found that using -march=k6-2 caused the problem, but -mmmx and -m3dnow could be used without incident.

Could someone explain what the issue was, and why the error happened?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
freetype errors iamstinke Linux - Software 1 07-09-2010 07:21 PM
Compiling FreeType kyleflan Linux - Software 1 12-22-2006 02:35 AM
Compiling freetype for Slackware-current slaxnoob Slackware 1 06-14-2004 04:39 AM
BLFS: libxslt 1.0.30/.31 Compiling Problems Azmeen Linux From Scratch 1 07-26-2003 11:53 AM
Weird kernel compiling errors moger Linux - General 11 02-17-2003 08:46 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration