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

Doug Broadwell dougb@value.net
Thu Sep 19 12:09:00 GMT 2002

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:

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

More information about the Newlib mailing list