delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/18/10:48:40

From: "Ed Manlove" <emanlove AT ieee DOT org>
Newsgroups: comp.os.msdos.djgpp
Subject: Assembly error in cross compiler build
Lines: 61
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <Ewmh9.264$Qt2.75186216@news.netcarrier.net>
Date: Mon, 16 Sep 2002 11:34:06 -0400
NNTP-Posting-Host: 207.207.196.91
X-Complaints-To: news AT netcarrier DOT com
X-Trace: news.netcarrier.net 1032189092 207.207.196.91 (Mon, 16 Sep 2002 11:11:32 EDT)
NNTP-Posting-Date: Mon, 16 Sep 2002 11:11:32 EDT
Organization: NetCarrier Internet Services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I am getting the following assembly errors when building a cross compiler
for the hitachi 8300. I am trying to build binutils 2.121 and gcc 2.952 for
use with the LEGO Mindstorms RCX which contains a Hitachi 8300. I am using a
slightly modified build script from binutl-2.952 for both the binutils and
gcc.  I successfully configure and build binutils.  But with gcc I configure
without errors but make stops with the following

for name in _cmpsi2 _ucmpsi2 _divhi3 _divsi3 _mulhi3 _mulsi3; \
do \
  echo ${name}; \


c:/djgpp/gnu/gcc-2.952/build.djg/gcc/xgcc -Bc:/djgpp/gnu/gcc-2.952/build.djg
/gcc/ -Bc:/djgpp/h8300-hitachi-hms/bin/ -Ic:/djgpp/h8300-hitachi-hms/include
 -O2  -DCROSS_COMPILE -DIN_GCC     -O2 -g -I./include  -DDF=SF -DDI=SI -g1  
-DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I../../gcc -I../.
./gcc/config -I../../gcc/../include -c -DL${name} libgcc1.S; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  mv libgcc1.o ${name}.o; \
  h8300-hitachi-hms-ar rc tmplibgcc1.a ${name}.o; \
  rm -f ${name}.o; \
done
_cmpsi2
make.exe[1]: Leaving directory `c:/djgpp/gnu/gcc-2.952/build.djg/gcc'
SYSCALLS.c:341: warning: conflicting types for built-in function `alloca'
SYSCALLS.c:935: warning: conflicting types for built-in function `memcmp'
SYSCALLS.c:936: warning: conflicting types for built-in function `memcpy'
SYSCALLS.c:940: warning: conflicting types for built-in function `memset'
SYSCALLS.c:1334: warning: conflicting types for built-in function `strlen'
c:\djgpp\tmp\cc3wwOKe.s: Assembler messages:
c:\djgpp\tmp\cc3wwOKe.s:2: Error: no such instruction: `libgcc1 routines for
the Hitachi h8/300 cpu.'
c:\djgpp\tmp\cc3wwOKe.s:3: Error: no such instruction: `contributed by Steve
Chamberlain.'
c:\djgpp\tmp\cc3wwOKe.s:4: Error: invalid character '@' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:93: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:94: Error: no such instruction: `bne .L2'
c:\djgpp\tmp\cc3wwOKe.s:95: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:96: Error: no such instruction: `bne .L2'
c:\djgpp\tmp\cc3wwOKe.s:97: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:98: Error: no such instruction: `rts'
c:\djgpp\tmp\cc3wwOKe.s:100: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:101: Error: no such instruction: `bgt .L4'
c:\djgpp\tmp\cc3wwOKe.s:102: Error: no such instruction: `bne .L3'
c:\djgpp\tmp\cc3wwOKe.s:103: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:104: Error: no such instruction: `bls .L3'
c:\djgpp\tmp\cc3wwOKe.s:106: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:107: Error: no such instruction: `rts'
c:\djgpp\tmp\cc3wwOKe.s:109: Error: invalid character '.' in mnemonic
c:\djgpp\tmp\cc3wwOKe.s:111: Error: no such instruction: `rts'
make.exe[1]: *** [libgcc1-asm.a] Error 1
make.exe: *** [all-gcc] Error 2

Anyone have any thoughts about the possible issue here with building a cross
compiler?

--
Ed Manlove
emanlove AT eclipse DOT net


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019