NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » initialload make error - possible avr-gcc installation problem

December 27, 2009
by Matso
Matso's Avatar

I'm running Fedora 12. I installed avr-gcc using the following commands:

yum install gcc avr-gcc avr-libc avrdude

I get the follow make error:

[root@fedora initialload]# make

make -C ../libnerdkits

make[1]: Entering directory `/home/Matt/Downloads/Code/libnerdkits'

avr-gcc -g -Os -Wall -mmcu=atmega168 -o lcd.o -c lcd.c

as: unrecognized option '-mmcu=atmega168'

make[1]: *** [lcd.o] Error 1

make[1]: Leaving directory `/home/Matt/Downloads/Code/libnerdkits'

make: ***

I'm guessing I don't have avr-gcc installed correctly. Can someone help me?

December 27, 2009
by hevans
(NerdKits Staff)

hevans's Avatar

Hi Matso,

That is odd. It is possible the version of avr-gcc in Fedoras repos are too old. What does

avr-gcc -v


Also try

avr-gcc --target-help

towards the top of that print out there is a "known MCU names" section. Make sure atmega168 is in there. Let us know what you get.


Post a Reply

Please log in to post a reply.

Did you know that a piezoelectric buzzer can be used in reverse as a microphone? Learn more...