compilation error for the Blink sketch !!!

Hi, I installed the IDE on opensuse 13.1 using the one click file and after that I tried to compile the Blink sketch but I get compilation error , cannot find -lm , can someone help me?

Here is the error message

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
Arduino: 1.0.6 (Linux), Board: "Arduino Uno"
/usr/share/arduino-1.0.6/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: skipping incompatible /usr/share/arduino-1.0.6/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/lib/avr5/libm.a when searching for -lm
/usr/share/arduino-1.0.6/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: skipping incompatible /usr/share/arduino-1.0.6/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/lib/libm.a when searching for -lm
/usr/share/arduino-1.0.6/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../avr/bin/ld: cannot find -lm

Thanks.

Have you tried the solution outlined in post 11 of this thread? It was meant as a fix for Arch linux users but should work for you as the problem is essentially the same.
Cannot compile arduino project

It seems to be a problem with the avr-gcc build on your system, the above will re-install a fresh version of avr-gcc and then symlink the Arduino IDE to that.

It seems like the proposals in #11 in the Archlinux forum solves the error when using openSUSE 13.1 :slight_smile:

Only difference is the path to Arduino SW, which contain version number.

So here is the commands (as root), that solved my problem:

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

Jan

Hi,

Thanks a lot that solved the problem :slight_smile:

Hi,
Thanks a lot that solved the problem also for openSUSE 13.2 :slight_smile: