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: gcc & Coldfire


On Fri, May 1, 2009 at 12:35 PM, Matthew Lai <cyberfish@wecheer.com> wrote:
> You need to build a cross-compiler for your target.
>
> "./configure, make, make install" by default builds a native compiler for
> the host.

Many thanks for the reply. I had thought that might be my problem, but
I was afraid that if I put in any cross-compiler options, I might end
up compiling a version of gcc that RUNS on the m68k instead one that
compiles code to run on it. I am certainly getting closer now.

I erased the whole gcc directory and started over afresh. Here's what
I'm getting...

$ ./configure --target=m68k-elf --host=i686-pc-cygwin --program-prefix=m68k-

<lots of compiler happiness />

$ make

<lots and lots of compiler happiness />

        HEADERS="ansidecl.h" DEFINES="" \
        /bin/sh ./mkconfig.sh tconfig.h /home/Gre7g/gcc-3.4.6/gcc/xgcc
-B/home/Gre7g/gcc-3.4.6/gcc/ -B/usr/local/m68k-elf/bin/
-B/usr/local/m68k-elf/lib/ -isystem /usr/local/m68k-elf/include
-isystem/usr/local/m68k-elf/sys-include -O2 -DIN_GCC -DCROSS_COMPILE
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I. -I. -I./.
-I./../include -I../intl  -g0 -finhibit-size-directive
-fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss
-fno-unit-at-a-time  \
          -Dinhibit_libc -c ./crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
as: unrecognized option `-mc68020'
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/home/Gre7g/gcc-3.4.6/gcc'
make: *** [all-gcc] Error 2

So, at some point it's trying to assemble some 68020 code and it's
unhappy? I don't even know why it would be assembling m64k code just
yet, before the new compiler is built and installed.

Any ideas?
Gre7g


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