This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: m88k in cross compilation


Ian Lance Taylor wrote:

Palmax Maverick <palmax@gmail.com> writes:

I want to cross compile to m88k from my x86 computer with GNU/Debian stable.
I read your manual and I think that I have to compile gcc with
"--target=m88k" flag, because I don't find any debian package for do
it.

Note that m88k support was removed from gcc as of the 3.4 release. The last release to support the m88k was 3.3.

A quick try with the 'm88k-coff' embedded target told that gcc-2.95.3 can be built nicely with the libstdc++ and all (C and C++ only) but the later gcc-3.2.3 needed one patch before it succeeded to go to the libgcc.a compile. There it then crashed with an ICE...

 The patch was removing a '#define SUPPORT_ONE_ONLY TARGET_SVR4' (or
something) from the 'm88k/m88k.h' into the the 'm88k/sysv4.h' and
changing the 'TARGET_SVR4' to be '1' there. This sounded logical but
maybe was wrong... Anyhow the original caused the 'cpp-init.c' to
refer to the undefined symbol 'target_flags' coming from the TARGET_SVR4
macro...

 I used a self-built gcc-3.2.3 for Red Hat 7.3 on Red Hat 8.0 to compile
these GCC sources. The binutils version used was 2.13.90.0.something
(the last '2.13.90.0.x' on ftp.kernel.org) but maybe newer ones could
work too ("work" = "could be built").

 Maybe those OpenBSD ports for m88k have some more sane (than that of
mine) fixes for the later-than-gcc-2.9-branch GCCs...


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