This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: as: unrecognized option `-c68020'


Joel Sherrill wrote:
> Somehow gcc is invoking the native as.  This usually indicates that you
> did not build using the instructions in the crossgcc FAQ
> (ftp.cygnus.com:/pub/embedded/crossgcc) and forgot to build/install
> binutils before moving on to gcc.

I'm doing a single source tree build.  As far as I can see I'm doing
everything as specified in the FAQ (except that I'm using the most up to
date versions).

I have just tried again, from scratch and got a different error.  the
difference may be because previously I use "make all" instead of "make
all install".

I've reread the crossgcc FAQ half a dozen times.  I'm probably missing
something obvious, but I just can't see it. If anyone can tell this poor
dumb programer which bit I'm getting wrong I'd be grateful.

My command sequence was

  131  tar xvzf binutils-2.8.1.tar.gz 
  132  tar xvzf gcc-2.7.2.2.tar.gz 
  133  pushd gcc-2.7.2.2
  134  patch -p1 < ../crossgcc-gcc-2.7.2.2.patch 
  135  popd
  136  tar xvzf newlib-1.8.0.tar.gz 
  137  one-tree-1.4.sh 
  138  mkdir build
  139  cd build
  140  ../src/configure --host=i586-pc-linux --target=m68k-aout 
--prefix=/usr/local -v
  141  make all install 2>&1 | tee buildlog.txt
 
The error I got was

_floatdixf
/tmp/cca12355.s: Assembler messages:
/tmp/cca12355.s:70: Error: operands mismatch -- statement `tstl a4'
ignored
make[3]: *** [libgcc2.a] Error 1
make[3]: Leaving directory `/vndev/gnu/build/gcc'
make[2]: *** [stmp-multilib-sub] Error 2
make[2]: Leaving directory `/vndev/gnu/build/gcc'
make[1]: *** [stmp-multilib] Error 1
make[1]: Leaving directory `/vndev/gnu/build/gcc'
make: *** [all-gcc] Error 2

It's all being done on Slackware Linux (with similar results on 2.0.0
and 2.0.30 kernels).

Neil
-- 
Neil Youngman,

Video Networks Ltd.		Videonet (tm) - Video On Demand