This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "as: unrecognized option -c68020" error making cross gcc



Doug Broadwell wrote:
> 
> I'm trying to make a cross m68k-coff compiler on i686-pc-linux-gnu following
> Bill Gatliff's "(very alpha) CrossGCC FAQ".  I made the binutils and then
> ran the following script to make the compiler:

This means you are using the wrong (probably native) assembler.  You
need to build and install binutils for m68k-coff before proceeding to
gcc.  Make sure that the m68k-coff binutils is in your PATH.

> export TARGET=m68k-coff
> 
> export PREFIX=/opt/gnu/gcc-3.2/${TARGET}
> 
> export PATH=${PREFIX}/bin:$PATH
> 
> cd m68k-coff
> 
> ../src/configure --target=${TARGET} --prefix=${PREFIX} --without-headers \
> 
> --with-newlib 2>&1 | tee ../configure.log
> 
> make all-gcc install-gcc 2>&1 | tee ../make.log
> 
> ----------------------------------------------------------
> 
> After much compiling I get the following error:
> 
> ----------------------------------------------------------
> 
> mkdir libgcc
> 
> mkdir m68000
> 
> mkdir libgcc/m68000
> 
> mkdir m5200
> 
> mkdir libgcc/m5200
> 
> mkdir mcpu32
> 
> mkdir libgcc/mcpu32
> 
> mkdir m68040
> 
> mkdir libgcc/m68040
> 
> mkdir m68060
> 
> mkdir libgcc/m68060
> 
> mkdir msoft-float
> 
> mkdir libgcc/msoft-float
> 
> mkdir m68040/msoft-float
> 
> mkdir libgcc/m68040/msoft-float
> 
> mkdir m68060/msoft-float
> 
> mkdir libgcc/m68060/msoft-float
> 
> if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
> 
> /opt/gnu/gcc-3.2/m68k-coff/gcc/xgcc -B/opt/gnu/gcc-3.2/m68k-coff/gcc/ -nostd
> inc -B/opt/gnu/gcc-3.2/m68k-coff/m68k-coff/newlib/ -isystem
> /opt/gnu/gcc-3.2/m68k-coff/m68k-coff/newlib/targ-include -isystem
> /opt/gnu/gcc-3.2/src/newlib/libc/include -B/opt/gnu/gcc-3.2/m68k-coff/m68k-c
> off/bin/ -B/opt/gnu/gcc-3.2/m68k-coff/m68k-coff/lib/ -isystem
> /opt/gnu/gcc-3.2/m68k-coff/m68k-coff/include -O2 -DIN_GCC -DCROSS_COMPILE -W
>  -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
> ./include -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I
> ../../src/gcc -I../../src/gcc/. -I../../src/gcc/config -I../../src/gcc/../in
> clude -DL_mulsi3 -xassembler-with-cpp -c
> ../../src/gcc/config/m68k/lb1sf68.asm -o libgcc/./_mulsi3.o
> 
> as: unrecognized option `-c68020'
> 
> make[2]: *** [libgcc/./_mulsi3.o] Error 1
> 
> make[2]: Leaving directory `/opt/gnu/gcc-3.2/m68k-coff/gcc'
> 
> make[1]: *** [stmp-multilib] Error 2
> 
> make[1]: Leaving directory `/opt/gnu/gcc-3.2/m68k-coff/gcc'
> 
> make: *** [all-gcc] Error 2
> 
> ----------------------------------------------------------
> 
> Help.  Doug Broadwell

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


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