[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC 2.6.1 Cross Compiler Questions...



This question is mostly for Andreas, but if anyone could help, I'd be most
appreciative. 

I've been using Andreas Schwab's m68k target for mint, and I just can't
seem to get it to run with my system's setup.  I'm trying to run a
cross-compiler on the Sun 4.1.2 here at COIL.  They have gcc 2.5.8
installed on the Sun.  First, I grab gcc-2.6.1.tar.gz off of my favorite
site.  Then, I grab gassrc04, utlsrc37, mntlib44, and mntinc44 off of
a.a.u.e.  I make gas, and it turns a into ~/gcc/lib/gcc-as.  I make the
utils, and they get all get put into ~/gcc/bin (except for
~/gcc/lib/gcc-ld).  Then I un-tgz the gcc-2.6.1 archive, and apply the
patches in Andreas' gcc-mint.tgz.  Then I set the target to m68000-mint
(after adding cpu_type=m68k to the configure script), edit the makefile to
correspond to my directory layout and try to compile.  It gets hung up on
the mint.h file.  Apparently, the Sun's compiler dislikes the notation, so
I edit mint.h to suit my needs.  Then, it gets hung up without a libgcc1.a
file.  If I make one with the gcc-2.6.1 distribution, then it seems to
generate assembler code causes libgcc2.a not to compile.  If I use the one
that is already on the Sun and make the libraries with my cross-compiler,
then anything I cross-compile for the Atari works only for a little while,
and then two-bombs. 

So my questions are...  Am I screwing anything up by changing my path
hierarchy?  How can I get the Sun's gcc to accept the mint.h file?  (It
gives illegal character errors which can be traced to the implicit
reference to "a4" in mint.h.  I believe it's BASE_ADDR (BASE_ADDR_NUM) or
something like that) How can I make a libgcc1.a that will work nicely with
gcc 2.6.1, and is it obvious what I'm doing wrong that would make bad
binaries? 

Sorry to be so ambiguous, but I have a lot of questions and don't want to
bog down the mailing list too much.  Thanks in advance! 

Jim Baumgardner (jbaumgar@bronze.coil.com)
"Ah, I see you have the machine that goes `ping!'" - Michael Palin