Compile Error on Slackware 13.37 x64

Hello,

I have a fresh 13.37 x64 system and trying to compile some avr code. When I try to compile I get the following error ;

/usr/lib/gcc/avr/4.4.4/avr5/libc.a: could not read symbols: File format not recognized

Actually there were bunch of errors like ;

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/lib/avr5/libm.a when searching for -lm

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/lib/libm.a when searching for -lm

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: cannot find -lm

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/avr5/libgcc.a when searching for -lgcc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/libgcc.a when searching for -lgcc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: cannot find -lgcc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/lib/avr5/libc.a when searching for -lc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/lib/libc.a when searching for -lc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: cannot find -lc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/avr5/libgcc.a when searching for -lgcc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: skipping incompatible /usr/lib/gcc/avr/4.4.4/libgcc.a when searching for -lgcc

/usr/lib/gcc/avr/4.4.4/…/…/…/…/avr/bin/ld: cannot find -lgcc

and I copied the 64bit versions of the libraries to destination folders and got rid of all the errors except that I am stuck at libc.a couldn’t read symbols.

Any help is appreciated.