-
Notifications
You must be signed in to change notification settings - Fork 21
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
Platform atmelmegaavr installs old gcc by default #66
Comments
Having the same issue with The suggested line in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
atmelmegaavr installs [email protected] instead of platformio/[email protected] by default. The old version of gcc lacks the spec files, includes, and libraries needed for the new AVR Dx parts and many of the newer ATtiny parts. This can be worked around by adding the following line to
platformio.ini
:But why isn't it installing the latest version by default?
BTW, if
platformio.ini
includesframework = arduino
, then both versions of GCC will get installed and it will use the new one by default, so you may not notice the issue. But if you are doing native development (e.g., using the native-blink example), it won't compile for newer parts without explicitly specifying the newer gcc version. See this thread for more details.The text was updated successfully, but these errors were encountered: