Error Compiling on Arch Linux: "../avr/bin/ld: cannot find -lm"

Hello,

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:

Error Compiling:

/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?

found the solution https://bbs.archlinux.org/viewtopic.php?pid=1352791

In short words execute the following in terminal

cd /usr/share/arduino/hardware/tools/avr/bin
sudo mv ./avr-gcc ./avr-gcc-backup
sudo  ln -s /usr/bin/avr-gcc ./