Compiling failure

153 views
Skip to first unread message

Flat Rose

unread,
Feb 17, 2011, 8:55:46 AM2/17/11
to rstep
Used IDE 0021, new switched to Arduino IDE 0022-1.
Linux, arduino168.

Getting following error log:

rsteppercontroller.cpp: In function 'void calculate_deltas()':
rsteppercontroller.cpp:919:1: error: unable to find a register to
spill in class 'POINTER_REGS'
rsteppercontroller.cpp:919:1: error: this is the insn:
(insn 69 218 219 3 rsteppercontroller.cpp:904 (set (reg:SF 96 [ D.
3104 ])
(mem/s:SF (post_inc:HI (reg:HI 4 r4 [orig:114 ivtmp.192 ]
[114])) [3 _units S4 A8])) 13 {*movsf} (expr_list:REG_INC (reg:HI 4 r4
[orig:114 ivtmp.192 ] [114])
(nil)))
rsteppercontroller.cpp:919: confused by earlier errors, bailing out

Tried both trunk and the 0.2 release files.
What may be the cause?
Any help appreciated.

iklln6

unread,
Feb 17, 2011, 11:37:22 AM2/17/11
to rstep
try commenting out all the lines inside calculate_deltas, see if the
problem goes away, then uncomment lines until the error comes back...
see if we can isolate it to which specific line is freaking everything
out. also, check to make sure you've got the right board selected
(644 sanguino?)

flatrose

unread,
Feb 18, 2011, 2:07:05 PM2/18/11
to rs...@googlegroups.com
No, I've got arduino nano v3 (atmega168).
Might that cause the problem?

iklln6

unread,
Feb 18, 2011, 3:13:02 PM2/18/11
to rstep
I'd say it's at least what we should start looking at first. When I
load up the non-644 version and hit compile it compiles without a
hitch with the "Arduino Diecimilia, Duemilanove, or Nano w/ ATmega168"
board selected, so perhaps your board isn't the cause of the problem
(assuming you have that board selected). did you checkout the svn
version via terminal?

flatrose

unread,
Feb 18, 2011, 3:52:22 PM2/18/11
to rs...@googlegroups.com
I tried to compile it on both svn and on a downloadable .zip (v0.2).
Maybe my toolchain is outdated, I gotta update the system and start looking in another place if it won't help, thank you for suggestions!

iklln6

unread,
Feb 18, 2011, 4:27:37 PM2/18/11
to rstep
i have an idea... try going to the "stepper_control" tab and
commenting out the four lines that start with "a..." and the three
lines that begin with "digitalWrite..." and try compiling

Reza Naima

unread,
Feb 18, 2011, 8:29:39 PM2/18/11
to rs...@googlegroups.com
Flat Rose,

Did you setup the board correctly in the arduino  config for your 
hardware?  Try selecting one of the other options are recompiling.  
Also, are you compiling the _644 version or the original?

There is an associate bug 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18251 but as your the first 
one having that problem, I wonder if it might not be something simpler.  
Do you have access to any other computers you can try compiling the code 
on - just to test?

Thanks,
reza




iklln6
February 18, 2011 1:27 PM

i have an idea... try going to the "stepper_control" tab and
commenting out the four lines that start with "a..." and the three
lines that begin with "digitalWrite..." and try compiling



flatrose
February 18, 2011 12:52 PM

I tried to compile it on both svn and on a downloadable .zip (v0.2).
Maybe my toolchain is outdated, I gotta update the system and start looking in another place if it won't help, thank you for suggestions!




iklln6
February 18, 2011 12:13 PM

I'd say it's at least what we should start looking at first. When I
load up the non-644 version and hit compile it compiles without a
hitch with the "Arduino Diecimilia, Duemilanove, or Nano w/ ATmega168"
board selected, so perhaps your board isn't the cause of the problem
(assuming you have that board selected). did you checkout the svn
version via terminal?



flatrose
February 18, 2011 11:07 AM

No, I've got arduino nano v3 (atmega168).
Might that cause the problem?




iklln6
February 17, 2011 8:37 AM
Reply all
Reply to author
Forward
0 new messages