#11226: Sympow spkg fails with gcc 4.6.0
------------------------+---------------------------------------------------
   Reporter:  jdemeyer  |          Owner:  tbd       
       Type:  defect    |         Status:  new       
   Priority:  major     |      Milestone:  sage-4.7.1
  Component:  packages  |       Keywords:  sympow    
Work_issues:            |       Upstream:  N/A       
   Reviewer:            |         Author:            
     Merged:            |   Dependencies:            
------------------------+---------------------------------------------------

Comment(by drkirkby):

 Replying to [comment:8 mariah]:
 > If src/QD.c is compiled with -O1 (and the rest with -O3) then
 > {{{sage -t -long  -force_lib devel/sage/sage/lfunctions/sympow.py}}}
 > no longer fails.
 >
 > I am working on isolating the code in QD.c that demonstrates the
 gcc-4.6.0 optimization bug.

 You are a brave lady Mariah - any code in SYMPOW is difficult to
 understand. Bill  Hart described it as "virtually obfuscated".
 Unfortunately, since it not actually standard C (the Sun compiler wont
 compile it), it can't be entered into The International Obfuscated C Code
 Contest

 http://www.ioccc.org/

 I particualry like SYMPOW's Configure script

 http://boxen.math.washington.edu/home/kirkby/bad-
 code/sympow-1.018.1.p7/src/Configure

 which starts off

 {{{
 #!/bin/sh
 }}}

 then later has a test to see if sh exists on the system!

 {{{
 SH=`whichexe sh` && echo "#define SH \"$SH\"" >> $CONFIG
 if [ -z "$SH" ]; then
   echo "**ERROR**: Could not find sh"; exit 1;
 else
   echo "SH = $SH"
 fi
 }}}

 Good luck Mariah - I don't envy you.

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11226#comment:9>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to