i wanna install the gcc source for avr micro programming. so i installed
binutils and libavr too. but when i make the gcc source, its shown the
error message. this is how i installed the source

first i installed the binutils under /usr/local/avr, and i had done to
change the Path to it. i had no problem in this installation
so i configured the gcc source,

*********************************************************************
./configure --prefix=/usr/local/avr           \
                 --target=avr                         \
                 --enable-languages="c,c++" \
                 --disable-nls
*********************************************************************

in this i had no problem.
so i "make", and the problem is here

*********************************************************************
/Users/zambarkah/Desktop/Installer/AVR/gcc-4.2.3/host-i386-apple-darwin9.1.0/gcc/xgcc
-B/Users/zambarkah/Desktop/Installer/AVR/gcc-4.2.3/host-i386-apple-darwin9.1.0/gcc/
-B/usr/local/avr//avr/bin/ -B/usr/local/avr//avr/lib/ -isystem
/usr/local/avr//avr/include -isystem /usr/local/avr//avr/sys-include -O2 
-O2 -g -O2  -DIN_GCC -DCROSS_COMPILE   -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include  -DDF=SF -Dinhibit_libc -mcall-prologues -Os -g  -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc
-I../.././gcc/. -I../.././gcc/../include -I../.././gcc/../libcpp/include 
-I../.././gcc/../libdecnumber -I../libdecnumber -mmcu=avr35 -DL_mulsi3
-xassembler-with-cpp -c ../.././gcc/config/avr/libgcc.S -o
libgcc/avr35/_mulsi3.o
../.././gcc/config/avr/libgcc.S: Assembler messages:
../.././gcc/config/avr/libgcc.S:280: Error: illegal opcode movw for mcu avr3
../.././gcc/config/avr/libgcc.S:282: Error: illegal opcode movw for mcu avr3
make[3]: *** [libgcc/avr35/_mulsi3.o] Error 1
make[2]: *** [stmp-multilib] Error 2
make[1]: *** [all-gcc] Error 2
make: *** [all] Error 2
**********************************************************************
so whats the matter? what should i do?


thanks 4 your respect

Ahmad Zambarkah
Indonesia

Reply via email to