-
Notifications
You must be signed in to change notification settings - Fork 183
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
LTO makes the linker fail #40
Comments
You'll need GCC 4.9.2 in order to get LTO working. I had an issue where GCC 4.8.1 where still in use even if I used IDE 1.6.12. Removing the MightyCore folder in the |
I installed mightycore in a fully upto date arduino ide 1.6.11 and he is picking up 4.8.1. |
Hold on, I actually think I did the changes in the |
I think the problem is related to this In other words: As your json file does not specify dependencies you have no control over what {runtime.tools.TOOL_NAME.path} will point to. I guess you only have 1 avr-gcc version or -because of what you did and by chance- RUNTIME.TOOLS.AVR-GCC.PATH points to 4.9.2 |
To confirm my thinking I added
In Sloeber now it works fine for 1284. |
Did I close this issue? |
You certainly did! Didn't you solved the problem? |
If you change the boards.txt you can force the toochain to whatever you want. |
I changes sloeber so the newest installed arduino avr platform is dominant. |
I tried to compile a sketch using LTO but it fails to compile. I tried both the Arduino IDE and in the Arduino eclipse plugin named Sloeber.
The only thing I found which looks related is arduino/Arduino#660 but I failed to find a fix.
The text was updated successfully, but these errors were encountered: