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 Patching gcc (Read 3502 times)
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Patching gcc
Mar 27th, 2015 at 4:37pm
Print Post  
I hope this is the right place to ask this.
So I've been struggling with a gcc bug in several of my projects where I get the error:
Code
Select All
"C:\Arduino\arduino-1.6.1/hardware/tools/avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega2560 -o

...

ore.a" " -lm
libc.a(isspace.o)*:In function `isspace'
(.text.avr-libc+0x2)*:relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' defined in .text.avr-libc section in \avr\lib\avr6\libc.a(cty_isfalse.o)
collect2.exe*:error: ld returned 1 exit status
Error creating .elf 


It seems I may be running up against AVR C Runtime Library Bug 33698 http://savannah.nongnu.org/bugs/?33698.
This bug seems to have been around for a long time. Fortunately it looks like there is a patch which might help.

What I can't figure out is how to apply the patch. All my searching leads to solutions on linux, but that doesn't help me on Windows.

I have a .patch file, but don't know what to do with it. I've got software to deliver to a customer, but can't compile it.
« Last Edit: Mar 27th, 2015 at 4:38pm by nevereven »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Patching gcc
Reply #1 - Mar 27th, 2015 at 4:42pm
Print Post  
Hi,

Whatever the solution it needs to be applied to the tool chain shipped with the Arduino Ide. This means you need to patch the Arduino Ide and not Visual Micro.

Therefore I suggest asking the question in the arduino.cc/forum

Sorry I can't be of more help.
  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Patching gcc
Reply #2 - Mar 27th, 2015 at 7:22pm
Print Post  
Thanks, half the problem is figuring out the right place and the right questions.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint