avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] New compiler won't compile


From: Michel Catudal
Subject: [avr-gcc-list] New compiler won't compile
Date: Mon, 12 Feb 2001 20:53:50 -0500

My Linux is SuSE 7.0 professional with the latest updates. I use a very recent 
libc for the AVR

Trying to compile gcc gives me this :

/usr/src/packages/BUILD/avr-gcc-20010108/gcc/xgcc 
-B/usr/src/packages/BUILD/avr-gcc-20010108/gcc/ -B/usr/local/avr/bin/ 
-B/usr/local/avr/lib/ -isystem /usr/local/avr/include -O2  -DCROSS_COMPILE
-DIN_GCC -W -W
all -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include 
 -DDF=SF -Dinhibit_libc -m
call-prologues -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. 
-I. -I. -I./. -I./config -I./
../include  -DL_divdi3 -c ./libgcc2.c -o libgcc/./_divdi3.o
/tmp/ccj2gpfo.s: Assembler messages:
/tmp/ccj2gpfo.s:119: Error: register required
/tmp/ccj2gpfo.s:219: Error: register required

<snip>

/tmp/ccj2gpfo.s:2444: Error: register required
/tmp/ccj2gpfo.s:2445: Error: register required
make[2]: *** [libgcc/./_divdi3.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/avr-gcc-20010108/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/avr-gcc-20010108/gcc'
make: *** [all-gcc] Error 2
Bad exit status from /var/tmp/rpm-tmp.22988 (%build)  

Fixing /usr/src/packages/BUILD/avr-gcc-20010108/gcc/gcc/config/avr/avr.c


void
asm_file_start (file)
     FILE *file;
{
  output_file_directive (file, main_input_filename);
  fprintf (file, "\t.arch %s\n", avr_mcu_name);
  fputs ("__SREG__ = 0x3f\n"
         "__SP_H__ = 0x3e\n"
         "__SP_L__ = 0x3d\n", file);
 
  fputs ("__tmp_reg__ = 0\n"
         "__zero_reg__ = 1\n"
         "_PC_ = 2\n", file);
 
  commands_in_file = 0;
  commands_in_prologues = 0;
  commands_in_epilogues = 0;
}                                                                               
                          

to :

void
asm_file_start (file)
     FILE *file;
{
  output_file_directive (file, main_input_filename);
  fprintf (file, "\t.arch %s\n", avr_mcu_name);
  fputs ("__SREG__ = 0x3f\n"
         "__SP_H__ = 0x3e\n"
         "__SP_L__ = 0x3d\n", file);
 
  fputs ("__tmp_reg__ = r0\n"
         "__zero_reg__ = r1\n"
         "_PC_ = 2\n", file);
 
  commands_in_file = 0;
  commands_in_prologues = 0;
  commands_in_epilogues = 0;
}                                                                               
                          
 

I get this after :

make[2]: Entering directory `/usr/src/packages/BUILD/avr-gcc-20010108/gcc'for d 
in libgcc avr3 libgcc/avr3 avr4 libgcc/avr4 avr5 libgcc/avr5; do \
  if [ -d $d ]; then true; else mkdir $d; fi \
done
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
/usr/src/packages/BUILD/avr-gcc-20010108/gcc/xgcc 
-B/usr/src/packages/BUILD/avr-gcc-20010108/gcc/ -B/usr/local/avr/bin/ 
-B/usr/local/avr/lib/ -isystem /usr/local/avr/include -O2  -DCROSS_COMPILE
-DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes 
-isystem ./include  -DDF=SF -Dinhibit_libc -mcall-prologues -g1  -DIN_LIBGCC2 
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I.
-I. -I. -I./. -I./config -I./../include  -mmcu=avr3 -DL_muldi3 -c ./libgcc2.c 
-o libgcc/avr3/_muldi3.o
/tmp/ccezKwnw.s: Assembler messages:
/tmp/ccezKwnw.s:2: Fatal error: redefinition of mcu type `avr3'
make[2]: *** [libgcc/avr3/_muldi3.o] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/avr-gcc-20010108/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/src/packages/BUILD/avr-gcc-20010108/gcc'
make: *** [all-gcc] Error 2


-- 
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://www.netonecom.net/~bbcat
We have all kinds of links
and many SuSE 7.0 Linux RPM packages



reply via email to

[Prev in Thread] Current Thread [Next in Thread]