Skip to content
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

Needs explicit path directives on avr-gcc 4.9.3 #14

Closed
jj1bdx opened this issue Dec 1, 2015 · 3 comments
Closed

Needs explicit path directives on avr-gcc 4.9.3 #14

jj1bdx opened this issue Dec 1, 2015 · 3 comments

Comments

@jj1bdx
Copy link

jj1bdx commented Dec 1, 2015

After upgrading to avr-gcc 4.9.3, I have to set the following compilation flags for ATmega328p, which were not required in the previous version. Could this be automated in somewhere else or should this be done always in this way?

COMMON += -I/usr/local/Cellar/avr-libc/1.8.1/avr/include
COMMON += -L/usr/local/Cellar/avr-libc/1.8.1/avr/lib
COMMON += -L/usr/local/Cellar/avr-binutils/2.25/avr/lib
COMMON += -B/usr/local/Cellar/avr-libc/1.8.1/avr/lib/avr5
@ladislas
Copy link
Member

ladislas commented Dec 1, 2015

did you upgrade from 4.8?

before upgrading you should brew remove avr-gcc avr-binutils avr-libc.

@jj1bdx
Copy link
Author

jj1bdx commented Dec 1, 2015

@ladislas removing and installing the avr-gcc toolchain solved the problem. Thanks!

@jj1bdx jj1bdx closed this as completed Dec 1, 2015
@ladislas
Copy link
Member

ladislas commented Dec 1, 2015

you're welcome :)

when installing, you need to compile avr-libc with the version of gcc you want to use. that's why just installing avr-gcc doesn't work ;)

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