LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 12
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]))
(nil)))))))))
/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 12:33 AM.
 
Old 03-13-2007, 01:21 AM   #2
athenian200
LQ Newbie
 
Registered: Feb 2007
Posts: 28

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

http://gcc.gnu.org/ml/gcc-bugs/2004-05/msg01541.html

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?
 
  


Reply



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 06:21 PM
Compiling FreeType kyleflan Linux - Software 1 12-22-2006 01:35 AM
Compiling freetype for Slackware-current slaxnoob Slackware 1 06-14-2004 03:39 AM
BLFS: libxslt 1.0.30/.31 Compiling Problems Azmeen Linux From Scratch 1 07-26-2003 10:53 AM
Weird kernel compiling errors moger Linux - General 11 02-17-2003 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:25 PM.

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