Skip to content

Error compiling #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
antsmo opened this issue Sep 29, 2016 · 1 comment
Closed

Error compiling #87

antsmo opened this issue Sep 29, 2016 · 1 comment

Comments

@antsmo
Copy link

antsmo commented Sep 29, 2016

Hi,

I'm trying to compile the starter.ino sketch for Arduino Uno R2 with Arduino IDE 1.6.12 but receiving the following error:

C:\Users\simon\AppData\Local\Temp\ccFggZdZ.ltrans5.ltrans.o: In function `BLEUtil::addressToString(unsigned char const*, char*) [clone .constprop.44]':

ccFggZdZ.ltrans5.o:(.text+0x1d4): relocation truncated to fit: R_AVR_7_PCREL against `no symbol'

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Arduino/Genuino Uno.

Any help would be great!

@sandeepmistry
Copy link
Owner

Hi @SimonTheEngineer,

Thanks for letting me know, I've resolved the compile issue with IDE 1.6.12 in 8f3aa24.

Could you try it out locally and report the results? Newer Arduino IDE's introduced LTO (link time optimization) for AVR boards like the Uno, so it didn't like that code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants