<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Re: [Kde-perl] Perl-Qt 3.009b2 under RHEL4 IA64</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText41545 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2>Hey Ashley:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2>Do you have any suggestions
on the best way to overwrite configure's choice of optimization? Currently
I just modify the Makefile after I run configure (this was done in a RPM spec
file, I am trying to build a RPM) - is there an easier way to force -O1? I
noticed that by default, some section had -O2, some -O (-O1) and
-O0...</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2>Thanks,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#0000ff size=2>Bernard</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ashley Winters
[mailto:jahqueel@yahoo.com]<BR><B>Sent:</B> Thu 21/07/2005 11:32
PM<BR><B>To:</B> kde-perl@kde.org; Bernard Li<BR><B>Subject:</B> Re: [Kde-perl]
Perl-Qt 3.009b2 under RHEL4 IA64<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>--- Bernard Li <bli@bcgsc.ca> wrote:<BR><BR>> Hi
Ashley:<BR>> <BR>> I have turned off optimization in
smoke/qt/Makefile and now it works.<BR>> <BR>> GCC version I used
is:<BR>> <BR>> gcc version 3.4.3 20050227 (Red Hat
3.4.3-22.1)<BR>> <BR>> I don't know if it is possible to fix this,
but I can help with<BR>> testing if you have a patch for this in the
future.<BR><BR>That's good news! If you're willing to be a guinea pig, could you
try<BR>compiling with -O1?<BR><BR>I'm almost certain this is a bug in GCC's
optimizer, and it'd take some<BR>tedious trial-and-error to find out *exactly*
which -fno-XXX option to<BR>pass to disable whatever optimization (dead code?
block reorder? beats<BR>me!) is broken on ia64. If -O1 works, that's probably
good enough.<BR><BR>If icc/ia64 also refused to generate proper code, I might be
convinced<BR>it's a bug in PerlQt which escapes notice on more forgiving
platforms,<BR>but I find that unlikely.<BR><BR>If you *really* want to find the
offending option (and perhaps report<BR>it to RedHat to be fixed), you can find
the list of -f options for each<BR>optimization level in the gcc man-page. If I
had the ia64 box in front<BR>of me, I'd find out which -O level causes an error,
and replace the -O<BR>switch with the list of -f options listed in the gcc
manual page,<BR>confirm the error still occurs, and then try removing -f options
until<BR>it starts working. Whichever -f option makes a difference is the
one<BR>I'd want to explicitly disable on ia64.<BR><BR>Thanks,<BR>Ashley
Winters<BR><BR>__________________________________________________<BR>Do You
Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection
around<BR><A
href="http://mail.yahoo.com">http://mail.yahoo.com</A><BR></FONT></P></DIV>
</BODY>
</HTML>