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 Error compiling a sketch with Arduino 1.6 (Read 5894 times)
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Error compiling a sketch with Arduino 1.6
Feb 18th, 2015 at 6:11pm
Print Post  
I uninstalled 1.0.6 and installed 1.6. When I try to build solution I still get the same error as in 1.5.8:

Code
Select All
"C:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega2560 -o
 ...
/core.a" 60" -lm
(.text.avr-libc+0x2)*:relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' defined in .text.avr-libc section in bc.a(cty_isfalse.o)
collect2*:error: ld returned 1 exit status
Error creating .elf 



So I unzipped the 1.0.6 directory, and pointed VM there in the <Configuration manager> but now it doesn't work either. I'm getting:

Code
Select All
Compiling 'HydroSphere2' for 'Arduino Mega 2560 or Mega ADK'
Build folder:
Summary: Header=1 Prototypes=12 Imports=13
Additional Defines:
Architecture Tools: C:\Program Files (x86)\arduino-1.0.6\hardware\tools\avr\bin\
Sketchbook: file:///D:/Development/Arduino
All import libraries will be re-compiled
Core Include Paths
Include Path 'C:\Program Files (x86)\arduino-1.0.6\hardware\arduino\cores\arduino'
Include Path 'C:\Program Files (x86)\arduino-1.0.6\hardware\arduino\variants\mega'
Library Include Paths (7)
Include Path 'D:\Development\Arduino\libraries\Logger_SD'
Include Path 'D:\Development\Arduino\libraries\I2Cdev'
Include Path 'D:\Development\Arduino\libraries\MPU6050'
Include Path 'D:\Development\Arduino\libraries\ms5803_i2c'
Include Path 'D:\Development\Arduino\libraries\RTClib'
Include Path 'D:\Development\Arduino\libraries\SdFat'
Include Path 'D:\Development\Arduino\libraries\AtlasScientific'
Platform Libraries Root Include Paths
Include Path 'C:\Program Files (x86)\arduino-1.0.6\libraries'
Include Path 'C:\Program Files (x86)\arduino-1.0.6\hardware\arduino\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'D:\Development\Arduino\libraries'
C:\Program Files (x86)\arduino-1.0.6\hardware\tools\avr\bin\avr-g++ -c -g -Os -fno-exceptions -ffunction-sections -fdata-sections -Wall -mmcu=atmega2560 -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I"C:\Program Files (x86)\arduino-1.0.6\hardware\arduino\cores\arduino" -I"C:\Program Files (x86)\arduino-1.0.6\hardware\arduino\variants\mega" -I"D:\Development\Arduino\libraries\Logger_SD" -I"D:\Development\Arduino\libraries\I2Cdev" -I"D:\Development\Arduino\libraries\MPU6050" -I"D:\Development\Arduino\libraries\ms5803_i2c" -I"D:\Development\Arduino\libraries\RTClib" -I"D:\Development\Arduino\libraries\SdFat" -I"D:\Development\Arduino\libraries\AtlasScientific" -I"C:\Program Files (x86)\arduino-1.0.6\libraries" -I"C:\Program Files (x86)\arduino-1.0.6\hardware\arduino\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"D:\Development\Arduino\libraries" -o sole.cpp.o"  sole.cpp"
I2Cdev.h:80:26: warning: Wire.h: No such file or directory 



In my ino file I have #include <Wire.h> and Wire.h is in C:\Program Files (x86)\arduino-1.0.6\libraries\Wire so why can't it be found?
« Last Edit: Feb 18th, 2015 at 7:00pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling a sketch with Arduino 1.6
Reply #1 - Feb 18th, 2015 at 7:01pm
Print Post  
Hi,

I have split into a new post for clarity

Can you please try to compile with the arduino ide 1.6 to see if you see the same error.

Thanks

ps: You can use the zip available on the arduino download page to install 1.6. You do not need to uninstall 1.0.6.
« Last Edit: Feb 18th, 2015 at 7:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
nevereven
Junior Member
**
Offline


Posts: 59
Joined: Dec 5th, 2014
Re: Error compiling a sketch with Arduino 1.6
Reply #2 - Feb 19th, 2015 at 12:04am
Print Post  
I un-installed 1.6.0 and just have the unzipped folders 1.0.6, 1.5.8 and 1.6.0 under c:\Arduino with nothing actually "installed".

I no longer get the no such file or directory error, but I still can only compile with 1.0.6. Both 1.5.8 and 1.6.0 give me the R_AVR_13_PCREL error.

Code
Select All
(.text.avr-libc+0x2)*:relocation truncated to fit: R_AVR_13_PCREL against symbol `__ctype_isfalse' defined in .text.avr-libc section in vr6\libc.a(cty_isfalse.o)
collect2*:error: ld returned 1 exit status
Error creating .elf 



I get this same error in the Arduino IDE for these versions.

Does this sound like it could be related:
http://stackoverflow.com/questions/8188849/avr-linker-error-relocation-truncated...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error compiling a sketch with Arduino 1.6
Reply #3 - Feb 19th, 2015 at 9:00pm
Print Post  
Thanks for the update.

Yes this will be a difference or issue with the new arduino 1.6 toolchain.

One important reason for Visual micro ensuring sketch compatibility with the Arduino Ide is that you can use the arduino.cc forum or the Arduino developer channel to report/discuss or get help with underlying tool chain quirks. Because the arduino ide has the same issue you can freely discuss the issue with Arduino. 

Mostof the underlying tool chain stuff is beyond my knowlege. Interested to hear what they say, thanks
« Last Edit: Feb 19th, 2015 at 9:02pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint