bugGNU Octave - Bugs: bug #31047, DLD-FUNCTIONS/fltk_backend.cc:467:...

 
 

bug #31047: DLD-FUNCTIONS/fltk_backend.cc:467: error: unable to find a register to spill in class ‘MMX_REGS’

Submitter:  None
Submitted:  Wed 15 Sep 2010 07:47:37 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Thomas Treichl Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 17 Nov 2010 07:44:46 PM UTC, comment #6: 

I closing this report since the problem of configuring without OpenGL/FLTK graphics has been fixed and the register spilling error looks like a GCC problem, and probably not something we can fix in Octave.

John W. Eaton <jwe>
Group administrator
Tue 09 Nov 2010 06:24:56 PM UTC, comment #5: 

A recent changeset in the Mercurial repository (http://hg.savannah.gnu.org/hgweb/octave/rev/a44ba1cdfbb5) adds a configure option '--without-opengl' which will disable compilation of the FLTK backend.  This should at least allow you to proceed to compile Octave without hacking the Makefile.

Rik <rik5>
Group administrator
Sun 07 Nov 2010 11:42:38 PM UTC, comment #4: 

Comparison with my compilation on a Linux machine reveals a few things to try changing in your CFLAGS/CXXFLAGS variable.

"-arch i386"

This option doesn't exist on non-Darwin platforms like mine.  However, if it accepts the same arguments as -march, then I would use '-arch=native' and let the compiler figure out what MMX instructions it can use. 

"-O"

You are using the equivalent of "-O1".  GCC is warning that it can't find enough registers to use.  Sometimes by using more optimization the compiler can find a way to share registers more efficiently and therefore free up some for use.  I would try compiling with "-O2".

"-fforce-addr"

I don't have this turned on.  It might be worth removing this to see if it is causing the issue.

Rik <rik5>
Group administrator
Wed 03 Nov 2010 05:42:01 PM UTC, comment #3: 

No, still have the same problems. Meanwhile I modified the Makefile and don't compile fltk_backend.cc anymore.

Just a question (or must this go to the maintainer's list): did anybody ever thought about making a very very simple graphics frontend using GLUT (wihtout buttons and such)? Octave depends on GL and GLU and using GLUT would be quite straight, isn't it?

Anonymous
Wed 03 Nov 2010 04:20:09 PM UTC, comment #2: 

This bug report is over a month old.  Did you resolve your compilation issue with FLTK?

Rik <rik5>
Group administrator
Wed 15 Sep 2010 07:51:38 PM UTC, comment #1: 

...and I'd like to turn off the check for fltk with a flag like "--without-fltk". Looks like I cannot do that because for fltk such a flag doesn't exists - right?

Thanks again and
best regards

  Thomas

Anonymous
Wed 15 Sep 2010 07:47:37 PM UTC, original submission:  

Dear development team,

while compiling Octave I get the following error - I use fltk 1.1.9 - is this still the version needed? Any ideas what is causing this strangeness?

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -arch i386 -m32 -O -mieee-fp -fforce-addr -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/Applications/Programming/Octave.app/Contents/Resources/include -I/Applications/Programming/Octave.app/Contents/Resources/include/GraphicsMagick -I../libgnu -I../libgnu -I../libcruft/misc -I../liboctave -I../liboctave -I. -I. -arch i386 -m32 -O -mieee-fp -fforce-addr -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/Applications/Programming/Octave.app/Contents/Resources/include -I/Applications/Programming/Octave.app/Contents/Resources/include/GraphicsMagick -arch i386 -m32 -O -mieee-fp -fforce-addr -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/Applications/Programming/Octave.app/Contents/Resources/include -I/Applications/Programming/Octave.app/Contents/Resources/include/GraphicsMagick -DHAVE_CONFIG_H -mieee-fp -I/tmp/deps-i386/include -I/tmp/deps-i386/include/freetype2 -I/tmp/deps-i386/include -Wall -W -Wshadow -Wold-style-cast -Wformat -arch i386 -m32 -O -mieee-fp -fforce-addr -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/Applications/Programming/Octave.app/Contents/Resources/include -I/Applications/Programming/Octave.app/Contents/Resources/include/GraphicsMagick -D_THREAD_SAFE -pthread -arch i386 -m32 -O -mieee-fp -fforce-addr -isysroot /Developer/SDKs/MacOSX10.6.sdk -I/Applications/Programming/Octave.app/Contents/Resources/include -I/Applications/Programming/Octave.app/Contents/Resources/include/GraphicsMagick -MT DLD-FUNCTIONS/gammainc.lo -MD -MP -MF DLD-FUNCTIONS/.deps/gammainc.Tpo -c DLD-FUNCTIONS/gammainc.cc  -fno-common -DPIC -o DLD-FUNCTIONS/.libs/gammainc.o
DLD-FUNCTIONS/fltk_backend.cc: In member function ‘void plot_window::pixel2pos(graphics_object, int, int, double&, double&) const’:
DLD-FUNCTIONS/fltk_backend.cc:467: error: unable to find a register to spill in class ‘MMX_REGS’
DLD-FUNCTIONS/fltk_backend.cc:467: error: this is the insn:
(insn 202 201 204 20 (set (reg:DF 110 [ D.243828 ])
        (mult:DF (reg:DF 8 st [189])
            (mem/u/c/i:DF (plus:SI (reg:SI 3 bx [orig:88 D.219569 ] [88])
                    (const:SI (minus:SI (symbol_ref/u:SI ("*LC26") [flags 0x2])
                            (symbol_ref:SI ("<pic base>") [flags 0x1400])))) [0 S8 A64]))) 617 {*fop_df_comm_mixed} (insn_list:REG_DEP_TRUE 199 (nil))
    (expr_list:REG_DEAD (reg:DF 8 st [189])
        (nil)))
DLD-FUNCTIONS/fltk_backend.cc:467: confused by earlier errors, bailing out
make[3]: * [DLD-FUNCTIONS/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.lo] Error 1
make[3]: * Waiting for unfinished jobs....
make[2]: * [all] Error 2
make[1]: * [all-recursive] Error 1
make: * [all] Error 2

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-11-17 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code