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]

Cross-compiling ....


At the risk of being flamed out of existence ….

 

I am trying to build a cross-compiler that goes from a pc running windows 2000 to an embedded Motorola 68360 processor. I have failed in so many ways so far that I am about ready to give up.

 

Here are things I have tried:

 

1)       Dos configure/compile …. Did not work … this was expected.

2)       Dos compile using bash shell…. Did not work (out of memory) this was expected

3)       Cygwin compile … DID not work … this was NOT expected …. I hit several problems ….

a.       Most recently compile errors with function.c

 

gcc -c -DCROSS_COMPILE -DIN_GCC   -DDONT_HAVE_STDIO -DDONT_HAVE_SETJMP  -Dinhibi

t_libc  -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes

 -Wtraditional -pedantic -Wno-long-long  -DHAVE_CONFIG_H    -I. -I. -I. -I./. -I

./config -I./../include function.c -o function.o

function.c: In function `instantiate_decls':

function.c:3581: warning: comparison between signed and unsigned

function.c: In function `expand_function_end':

function.c:6982: `USE_RETURN_INSN' undeclared (first use in this function)

function.c:6982: (Each undeclared identifier is reported only once

function.c:6982: for each function it appears in.)

function.c: In function `thread_prologue_and_epilogue_insns':

function.c:7225: `USE_RETURN_INSN' undeclared (first use in this function)

make[1]: *** [function.o] Error 1

make[1]: Leaving directory `/home/Administrator/gcc-3.0.4/gcc'

make: *** [all-gcc] Error 2

 

b.       Precious bad option

 

/home/Administrator/gcc-3.0.4/gcc/xgcc -B/home/Administrator/gcc-3.0.4/gcc/ -B/u

sr/local/m68k-elf/bin/ -B/usr/local/m68k-elf/lib/ -isystem /usr/local/m68k-elf/i

nclude -DCROSS_COMPILE -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes

-Wmissing-prototypes -isystem ./include  -I. -I. -I. -I./. -I./config -I./../inc

lude  -g0 \

  -finhibit-size-directive -fno-inline-functions \

  -fno-exceptions  -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/Administrator/gcc-3.0.4/gcc'

make: *** [all-gcc] Error 2

 

 

 

I have tried various “targets” (m68k-coff, m68k-elf, mcore-elf).  I am working on getting a linux box going to see if I have any better luck there  (I don’t expect to).

 

So here are my questions/goals:

 

1)       Where is some good upto date documentation (either online or in  book) on how to use the Gnu compiler suite in an embedded system or at least as a cross-compiler? I need to be able to build the compiler (hopefully for many different targets) and do all the other fun things like specifying the memory layout.

2)       If there is not an answer to #1, then can anyone tell me how to solve the problems I am having above. I have looked (probably in all the wrong places) and tried to find the information I need to no avail.

 

Thanks,

 

 

 

Buddy Lott

 

BEGIN:VCARD
VERSION:2.1
N:Lott;Buddy
FN:Buddy Lott
EMAIL;PREF;INTERNET:BuddyLott@kmc-controls.com
REV:20020613T135616Z
END:VCARD

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