Numerous errors compiling sample sketch (Ubuntu)

I just got my Arduino Duemilanove with the ATMEGA328 from SparkFun. I plugged it in to my computer (Ubuntu 8.04) and tried to Verify/Compile the sample blink LED sketch (after setting the board type and port). The program just says Compiling... for forever and prints these errors when run in terminal:

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:1: error: MCU 'atmega328p' supported for assembler only

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c: In function 'micros':

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:61: error: 'TCNT0' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:61: error: (Each undeclared identifier is reported only once

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:61: error: for each function it appears in.)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:67: error: 'TIFR' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:67: error: 'TOV0' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c: In function 'init':

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:157: error: 'TCCR0A' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:157: error: 'WGM01' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:158: error: 'WGM00' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:165: error: 'TCCR0B' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:165: error: 'CS01' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:166: error: 'CS00' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:172: error: 'TIMSK0' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:172: error: 'TOIE0' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:181: error: 'TCCR1B' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:181: error: 'CS11' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:182: error: 'CS10' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:184: error: 'TCCR1A' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:184: error: 'WGM10' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:190: error: 'TCCR2B' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:190: error: 'CS22' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:196: error: 'TCCR2A' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:196: error: 'WGM20' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:214: error: 'ADCSRA' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:214: error: 'ADPS2' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:215: error: 'ADPS1' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:216: error: 'ADPS0' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:219: error: 'ADEN' undeclared (first use in this function)

/home/thomas/Arduino/arduino-0015/hardware/cores/arduino/wiring.c:227: error: 'UCSR0B' undeclared (first use in this function)

Couldn't determine program size: avr-size: '/tmp/build9028290031570248944.tmp/Blink.hex': No such file

I already removed brltty. Any idea what's wrong?

It looks like you have an older version of the AVR-GCC tools installed, and older versions don't support the ATmega328.

The standard Arduino software distribution comes with AVR-GCC 4.3.2 (for Windows) so you should aim for at least that version.

Thanks and sorry for posting in the wrong category. (Just noticed.)

I will probably just upgrade to 9.04, since that looks easier than messing with infinite dependencies.