I've installed the Arduino 1.0.5 IDE on the latest distribution of Arch Linux. I am running the program as root (otherwise the serial port option is greyed out). When I attempt to compile anything using the "Verify" button, I get:
/usr/share/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: cannot find -lm
The serial monitor works fine, and I can use it to communicate with the arduino UNO.
Any ideas on how to resolve this issue?