Skip to content

Compilation (linking?) fails in 1.5.6r2, but ok in 1.5.4 #1901

Closed
@Mbat

Description

@Mbat

I hope this is the correct way of posting an issue found.., I've also posted it in the troubleshooting section of the forum just in case;

I just made the move from 1.5.4 (nightly build, not sure precisely which night) to 1.5.6r2 (not nightly).
My process went as follows;
in 1.5.4, compile and load the code (Mega 2560 target)- OK
download 1.5.6r2 from the arduino site - OK
rename download to Arduino156r2 and move to Applications folder - OK (so as to not overwrite the old arduino image just in case)
open 156r2 and load sketch - OK
Select target board (2560) -OK
build - FAIL, see error below;

Arduino: 1.5.6-r2 (Mac OS X), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Build options changed, rebuilding all
/Applications/Arduino 156r2.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o: In function `__vector_default':
(.vectors+0xa8): relocation truncated to fit: R_AVR_13_PCREL against symbol`__vector_42' defined in .text section in /Applications/Arduino 156r2.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr6/crtm2560.o

  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.

Then I moved back to 1.5.4; and re loaded the sketch, and it still compiles fine.

Other sketches compile fine in both 154 and 156r2.

Any help or suggestions would be appreciated;

MB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: ToolchainThe tools used for compilation and uploading to Arduino boardsType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions