You are not logged in.
I've compiled avr tools from aur (avr-libc, gcc-avr, binutils-avr). But I can't get my code to compile:
dpc@empire:~/doc/ui/tmp1$ make
avr-gcc -g -O -mmcu=atmega8 main.o -o main
/opt/avr/lib/gcc/avr/4.1.1/../../../../avr/bin/ld: skipping incompatible /opt/avr/lib/gcc/avr/4.1.1/avr4/libgcc.a when searching for -lgcc
/opt/avr/lib/gcc/avr/4.1.1/../../../../avr/bin/ld: cannot find -lgcc
Any clues what can be wrong?
Offline
Solved. This gcc version seems to be broken. I've rebuilded avr-gcc with gcc version 4.1-somenewshapshot and now everything is ok.
Offline
I was having the same problem, however, compiling a newer version does not fix the problem. If we would have read this post earlier, we wouldn't be having these issues: http://bbs.archlinux.org/viewtopic.php?t=25825
There, it is described the procedure to compile gcc-avr with makepkg.
1. remove -march=i686 from CFLAGS in /etc/makepkg.conf
2. uncomment the export NOSTRIP="1" from /etc/makepkg.conf
The NOSTRIP="1" fixes the cannot find -lgcc problem.
Offline