Compiling gcc-2.95.2 for use as m68k cross compiler

Mark Palmerino mbp@csr-bos.com
Fri Mar 2 04:07:00 GMT 2001


A quick addendum to the following list:

I edit the generated Makefile in the build-gcc295 directory so that target
canonical looks like

target_canonical = m68k-coff

rather than

target_canonical = m68k-unknown-coff

I had trouble with this when using the 2.8.1 sources. Maybe this is not
necessary now, or worse, will cause other things to break.

Any guidance on whether this is the right thing to do?

Thanks.


> Here are the steps I have taken so far and I will add steps that your last
> response suggest in order to build the cross-compiler:
> 
> 1. Got the gcc-2.95.2 sources
> 2. Untarred them into /h/crossgcc/gcc-2.95.2
> 3. Applied the patch file that purportedly changes some things to get this
> to compile for MachTen (on a Mac).
> 4. Edited ../gcc-2.95.2/gcc/config/m68k/m68k-none.h to make 68332 the
> default
> 5. Edited ../gcc-2.95.2/gcc/config/m68k/t-m68kbare and commented out all the
> lines that reference MULTI* - here is the snippet from that file as it
> stands now:
> 
> -------------------------- clip -----------------------
> #MULTILIB_OPTIONS = m68000/m68020/m5200/mcpu32 m68881/msoft-float
> #MULTILIB_DIRNAMES =
> #MULTILIB_MATCHES = m68000=mc68000 m68000=m68302 mcpu32=m68332
> m68020=mc68020 m68020=m68040
> m68020=m68060
> #MULTILIB_EXCEPTIONS = m68000/msoft-float m5200/m68881 m5200/msoft-float
> mcpu32/m68881 mcpu
> 32/msoft-float
> 
> #LIBGCC = stmp-multilib
> INSTALL_LIBGCC = install-multilib
> -------------------------- clip -----------------------
> 
> As you can see, I have left the 'INSTALL_LIBGCC' uncommented - is this
> correct for what I want to do? (Kai, this is how I've interpreted your
> suggestions on this matter, however, we all know how well I've interpreted
> your suggestions in the past!)
> 
> 6. Created a /h/crossgcc/build-gcc295 directory
> 7. From that build directory, ran ../gcc-2.95.2/configure --target=m68k-coff
> 
> 8. New suggested step: Make the following directory:
> /usr/local/lib/gcc-lib/m68k-coff/2.95.2
> 
> 9. make all


------
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