Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Unintelligible compiler error (Read 3503 times)
Tim Long
Newbies
*
Offline


Posts: 8
Joined: Sep 1st, 2017
Unintelligible compiler error
Sep 1st, 2017 at 5:30pm
Print Post  
I'm getting this error when compiling my code. Can anyone tell me what this even means?

Compiling 'TaoWeatherMonitor' for 'Arduino/Genuino Uno'
TelecontrolliTemperatureSensor.cpp: In member function ReadPlateTemperature
 
TelecontrolliTemperatureSensor.cpp: 34:2: error: unable to find a register to spill in class 'POINTER_REGS

Error linking for board Arduino/Genuino Uno
Build failed for project 'TaoWeatherMonitor'
 
TelecontrolliTemperatureSensor.cpp: 34:2: error: this is the insn
v*: SF 110 [ upperKey ])
        (mem*: SF (post_inc:HI (reg:HI 8 r8 [orig:131 ivtmp.70 ] [131])) [6 MEM[base: _109, offset: 0B]+0 S4 A8])) tedLookup.cpp:34 100 {*movsf}
     (expr_list*: REG_INC (reg:HI 8 r8 [orig:131 ivtmp.70 ] [131])
   (nil)))
TelecontrolliTemperatureSensor.cpp:34: confused by earlier errors, bailing out
lto-wrapper*: C:\Program Files\Arduino\hardware\tools\avr\bin\avr-gcc returned 1 exit status
 
ld.exe: error: lto-wrapper failed
 
collect2.exe*: error: ld returned 1 exit status
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unintelligible compiler error
Reply #1 - Sep 1st, 2017 at 9:06pm
Print Post  
Hi,

That's a linker error.

Questions...

Do you get the same error in the arduino ide?

Which version of the arduino ide? 

Have you installed a specific arduino core via board manager?

You can switch on vmicro>compiler>"show build properties" and "verbose" then build and email the output to info[at]visualmicro.com that will show what you have installed.


...

I found this report on stackoverflow, might be relevant.

https://stackoverflow.com/questions/39255127/arduino-error-unable-to-find-a-regi...
« Last Edit: Sep 1st, 2017 at 9:07pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim Long
Newbies
*
Offline


Posts: 8
Joined: Sep 1st, 2017
Re: Unintelligible compiler error
Reply #2 - Sep 1st, 2017 at 10:38pm
Print Post  
I do (or did) get the same error in Arduino IDE. I also found the cause. I was declaring a local variable with the same name as a parameter inside a method, and declaring it as a different type.

I'm not sure why this got through the compiler OK but not the linker. Anyway, ultimately this was an error in the source code and I've corrected it.

Thanks for responding anyway...
Tim
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unintelligible compiler error
Reply #3 - Sep 1st, 2017 at 10:48pm
Print Post  
Thanks for the update
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint