I am facing two different problems (?). But let me begin by giving my configuration :
#Hardware AMD Athlon 64 3000+ CPU --> i386 FTDI cable arduino ethernet pro
#Software Opensuse : 12.2 Arduino : 1.0.1 avr-gcc : 4.3.3 as : BFD version 2.22
to avoid a lockstatus failure (lib_lock_dev_lock() lockstatus fail, are you in group 'lock' ?), which unable me to choose the serial port, I have to lunch arduino as root. No matter if i'm doing :
chmod 755 /var/lock chown root.lock /var/lock
(as root) or any other udev exceptions etc...
So once arduino is lunched as root (no more problem with the lockstatus), I want to compile my sketch but then i got :
as : unrecognized option '-mmcu=atmega328p'
the entire command is as follow :
avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -I/usr/share/arduino-1.0.1/hardware/arduino/cores/arduino -I/usr/share/arduino-1.0.1/hardware/arduino/variants/standard /tmp/build[i]blablablablabla[/i].tmp/sketch_nov06a.cpp -o /tmp/build[i]blablablabla[/i].tmp/sketch_nov06a.cpp.o
return --> as : unrecognized option '-mmcu=atmega328p'
So...now what ? i tried to reinstall the cross compiler and arduino but ... no effects any ideas? thx