Making progress, but...

Mark Palmerino mbp@csr-bos.com
Mon Feb 19 14:44:00 GMT 2001


Hi all,

I *think* I have successfully compiled and installed cross-dev versions of
binutils and gcc for m68k-coff.

First question, what do I need to compile to use stdio.h? Any pointers to
that would be great!

However, I'm not sure they got installed in a way that I was expecting.

When I built both of these I specified '--target=m68k-coff' but did not
specify any prefix. I think, then, things got put into /usr locations (e.g.,
/usr/local/bin, /usr/local/include etc.).

However, I'm curious about how I should be able to use gcc now that this has
been done.  I guess I thought I could do the following:

gcc -bm68k-coff -c hello.c

and get a compile, but this doesn't work, instead I get:

gcc -bm68k-coff -c hello.c
/var/tmp/cc005792.s: Assembler messages:
/var/tmp/cc005792.s:5: Error: Unknown pseudo-op:  `.even'
/var/tmp/cc005792.s:8: Error: Unrecognized opcode: `link.w'
/var/tmp/cc005792.s:9: Error: Unrecognized opcode: `jsr'
/var/tmp/cc005792.s:10: Error: Unrecognized opcode: `addq.l'
/var/tmp/cc005792.s:12: Error: Unrecognized opcode: `unlk'
/var/tmp/cc005792.s:13: Error: Unrecognized opcode: `rts'
gcc: file path prefix `/usr/lib/gcc-lib/m68k-coff/2.8.1/' never used

Also, if I try the following (with /usr/local/bin in my path),

m68k-coff-gcc -v -c hello.c

I get the this:

Using builtin specs.
gcc version 2.8.1
 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -Dmc68000
-D__embedded__ -D__mc68000__
-D__embedded__ -D__mc68000 -Asystem(embedded) -Amachine(mc68000)
-D__HAVE_68881__ -Dmc68020 -D
__mc68020 -D__mc68020__ hello.c /var/tmp/cc005847.i
GNU CPP version 2.8.1
#include "..." search starts here:
#include <...> search starts here:
 /usr/macppc/include
 /usr/local/include
 /usr/include
End of search list.
 cc1 /var/tmp/cc005847.i -quiet -dumpbase hello.c -version -o
/var/tmp/cc005847.s
m68k-coff-gcc: installation problem, cannot exec `cc1': No such file or
directory

So, it didn't find cc1.

If I do the following:

m68k-coff-gcc -bm68k-coff -v -c hello.c

I get:

Reading specs from /usr/local/lib/gcc-lib/m68k-coff/2.8.1/specs
gcc version 2.8.1
 /usr/local/lib/gcc-lib/m68k-coff/2.8.1/cpp -lang-c -v -undef -D__GNUC__=2
-D__GNUC_MINOR__=8
-Dmc68000 -D__embedded__ -D__mc68000__ -D__embedded__ -D__mc68000
-Asystem(embedded) -Amachine
(mc68000) -D__HAVE_68881__ -Dmc68020 -D__mc68020 -D__mc68020__ hello.c
/var/tmp/cc005851.i
GNU CPP version 2.8.1 (68k, Motorola syntax)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc-lib/m68k-coff/2.8.1/include
 /usr/local/m68k-coff/include
End of search list.
hello.c:1: stdio.h: No such file or directory

So, this looks like I need to compile and install whatever puts stdio.h into
place - what would that be?

Thanks.




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