assembler error

hello-- i am a noob..just installed arduino 1.5.8 beta on my ubuntu 14.04 and it will launch and configure
to my mega2560.. but when i try and compile/verify(even on a blank skeleton sketch), it gives this error and stops--
Arduino: 1.5.8 (Linux), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

/home/pat/sketchbook/libraries/arduino-1.5.8/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -I/home/pat/sketchbook/libraries/arduino-1.5.8/hardware/arduino/avr/cores/arduino -I/home/pat/sketchbook/libraries/arduino-1.5.8/hardware/arduino/avr/variants/mega /tmp/build2754580432467547143.tmp/sketch_jan22a.cpp -o /tmp/build2754580432467547143.tmp/sketch_jan22a.cpp.o
as: unrecognized option '-mmcu=avr6'
Error compiling.

any help please--

sargG:
/tmp/build2754580432467547143.tmp/sketch_jan22a.cpp -o /tmp/build2754580432467547143.tmp/sketch_jan22a.cpp.o
as: unrecognized option '-mmcu=avr6'
Error compiling.

any help please--

The "-m mcu" parameter comes from the "boards.txt" file.

Open that file (it's a text file - use nano or gedit or kate or (ugh) vi) and look for the line that says:

[b]mega2560.build.mcu=xxxxxxxx[/b] where the "xxxxxxxxx" is, no doubt, "avr6".

make sure it says:

[b]mega2560.build.mcu=[color=red]atmega2560[/color][/b]

...and all should work.

Hope this helps.

For an Arduino MEGA 2560 you should be using Arduino 1.0.6, not the Arduino 1.5.x beta-test version with preliminary Arduino DUE and Arduino YÜN support.

thanks for both replies.. i looked for "avr6" in board.txt...wasnt there, so i did what the other advice was-- just run 1.05..
it does run OK.. i just was wanting to see whats new in 1.5.8..
thanks for such rapid help..its appreciated..