You are not logged in.

#1 2006-12-27 14:40:00

dawid.ciezarkiewicz
Member
Registered: 2006-12-21
Posts: 12

[solved] gcc-avr from aur problem.

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

#2 2006-12-30 22:29:28

dawid.ciezarkiewicz
Member
Registered: 2006-12-21
Posts: 12

Re: [solved] gcc-avr from aur problem.

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

#3 2007-01-05 22:58:15

queueRAM
Member
Registered: 2006-09-05
Posts: 14

Re: [solved] gcc-avr from aur problem.

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

Board footer

Powered by FluxBB