Cross to MC68040 from cygwin on PC-NT.
Johansson Mikael
mikael.mj.johansson@volvo.com
Tue May 22 03:19:00 GMT 2001
Hello all!
Is this the right way to build a
cross-compiler for M68040 from PC-cygwin.
When I try to build gcc C-only I get:
as: unrecognized option '-c68020'
***Commands to build a cross-compiler for M68040 from host PC-Cygwin32.***
BINUTILS.
I configure the binutils ( assembler and linker etc) in bash at
/cygnus/tmp/src/binutils-2.11/ with the command:
bash-2.02$ ./configure --target=m68k-coff --prefix=/cygnus/usr/m68k-coff/
I build binutils with command:
bash-2.02$ make ( a lot of warnings comparing ANSI-C with traditional )
I install binutils with command:
bash-2.02$ make install
GCC.
bash-2.02$ cp -R newlib /cygnus/tmp/src/gcc-2.95.3
bash-2.02$ cp -R newlib /cygnus//usr/m68k/m68k-coff
bash-2.02$ mv -i texinfo /cygnus/tmp/src/gcc-2.95.3/notused_texinfo
I add the path c:\cygnus\usr\m68k\bin to cygnus.bat at:
/cygnus/cygwin-b20/
so gcc can find the cross-assembler mf.
This is done from windows explorer in notepad.exe.
bash-2.02$ ln -s /newlib-1.9.0/newlib newlib
bash-2.02$ ln -s /newlib-1.9.0/libgloss libgloss
bash-2.02$ ./configure --target=m68k --prefix=/cygnus/usr/m68k-coff
--with-newlib --with-included-gettext
--with-gnu-as --with-gnu-ld
--enable-languages=c
bash-2.02$ make all install
as: unrecognized option '-c68020'
**FUTURE COMMANDS AFTER FIXING THIS** (haven't done this yet but this
is what I have in mind)
NEWLIB
I configure newlib from:
/cygnus/tmp/src/newlib-2.11 with command
bash-2.02$ configure --target=m68k-coff --prefix=/cygnus/usr/m68k/
bash-2.02$ make
bash-2.02$ make install
ALL
I reconfigure gcc at /tmp/src/gcc-2.95.3/ with the command:
bash-2.02$ ./configure --target=m68k --prefix=/cygnus/usr/m68k-coff
--with-newlib --with-included-gettext
--with-gnu-as --with-gnu-ld
I build the rest of the compiler from:
/cygnus/tmp/src/gcc-2.95.3 with the command:
bash-2.02$ make all install ( see all_inst.txt and all_inst_err.txt )
kind regards Mikael Johansson
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list