error building gcc-2.7.2 as cross-compiler for hitachi: libgcc1.a?

Delta-Utec delta-utec@delta-utec.com
Sat Apr 1 00:00:00 GMT 2000


background:
I have SW that has been developed for the Hitachi SH7032 some 
years ago and now want to recompile it. I successfully installed GCC-2.95.1 but 
that is too strict to compile this SW. As it was orriginally developed with 
GCC-2.7.2. The guy who orriginally wrote it suggested to install gcc-2.7.2 
again.
 
I have: 
 binutils-2.9.1
 gcc-2.7.2 
 crossgcc-gcc-2.7.2.patch
 gdb 4.18
 newlib-1.8.2
 
I did:
Create Makefile for binutils
./configure --target=sh-hitachi-hms
Build it:
make all install
 
cd ../gcc-2.7.2
rm -rf libf2c
apply patch for cross:
patch -p1 < cross-gcc-2.7.2.patch
make a link to the newlib
ln -s ../newlib-1.8.2/newlib
Create the Makefile 
./configure --target=sh-hitachi-hms --with-newlib 
--with-headers=../newlib-1.8.2/newlib/libc/include
build it:

make all.cross LANGUAGES="c c++" 
install-cross
 
Problem  
This worked all fine for gcc-2.95.1 BUT 
for GCC-2.7.2 it didn't finish building. The end of the error is listed below. 
In the install manual for gcc-2.7.2 they mention that this libgcc1.a is 
problematic, but the solution I couldn't substract from the info they gave 
me.
 
Your suggestions, thanks Erik
 
------------------------------ end of make.log 
file ----------------

touch stmp-headers
if [ -f libgcc2.ready ] ; then \
true; \
else \
touch libgcc2.ready; \
fi
rm -f tmplibgcc1.a libgcc1.S
cp ./config/sh/lib1funcs.asm libgcc1.S
for name in _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movstr _mulsi3 
_sdivsi3 _udivsi3; \
do \
echo ${name}; \
./xgcc -B./ -Dinhibit_libc -O2 -DCROSS_COMPILE -DIN_GCC -g -I./include -g1 
-I. -I. -I./config -c -DL${name} libgcc1.S; \
if [ $? -eq 0 ] ; then true; else exit 1; fi; \
mv libgcc1.o ${name}.o; \
/usr/sh-hitachi-hms/bin/ar rc tmplibgcc1.a ${name}.o; \
rm -f ${name}.o; \
done
_ashiftrt
/tmp/ccY4yHIc.s: Assembler messages:
/tmp/ccY4yHIc.s:35: Error: Rest of line ignored. First ignored character is 
`!'.
/tmp/ccY4yHIc.s:36: Error: Rest of line ignored. First ignored character is 
`!'.
/tmp/ccY4yHIc.s:37: Error: Rest of line ignored. First ignored character is 
`!'.
/tmp/ccY4yHIc.s:39: Error: Rest of line ignored. First ignored character is 
`!'.
/tmp/ccY4yHIc.s:40: Error: Rest of line ignored. First ignored character is 
`!'.
/tmp/ccY4yHIc.s:41: Error: Rest of line ignored. First ignored character is 
`!'.
/tmp/ccY4yHIc.s:81: Error: no such 386 instruction: `rotcl'
/tmp/ccY4yHIc.s:82: Error: no such 386 instruction: `rts'
/tmp/ccY4yHIc.s:83: Error: no such 386 instruction: `subc'
/tmp/ccY4yHIc.s:86: Error: no such 386 instruction: `shar'
DELETED similar list of these errors
make: *** [libgcc1-asm.a] Error 1

 
BEGIN:VCARD
VERSION:2.1
N:Erik;Michiel;and or
FN:Delta-Utec SRC
TEL;HOME;VOICE:+31 715230662
TEL;CELL;VOICE:see homepage
TEL;HOME;FAX:+31 715233309
ADR;HOME:;;Platschelpenbank 3;LEIDEN;;2317  ML;The Netherlands
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Platschelpenbank 3=0D=0ALEIDEN 2317  ML=0D=0AThe Netherlands
URL: http://www.delta-utec.demon.nl
EMAIL;PREF;INTERNET:delta-utec@delta-utec.com
REV:20000317T154057Z
END:VCARD



More information about the crossgcc mailing list