Unable to create binaries?

Lars Kellogg-Stedman lars@larsshack.org
Wed May 17 10:49:00 GMT 2000

I've finally succeeded in building gcc as a cross compiler
(host=linux/intel, target=linux/sparc), but I haven't been able to
successfully generate SPARC binaries -- and I'm not sure what the problem

If I take the following code;

  void main() {
	printf("Hello, world!\n"):

And compile it:

  $ sparc-unknown-linux-gnu-gvv -o foo foo.c

I get a *huge* file (which, given my single-floppy target, is a problem):

  $ ls -l foo
  -rwxrwxr-x    1 lars     lars      4020838 May 17 13:45 foo*

'file' thinks it's a SPARC binary:

  $ file foo
  foo: ELF 32-bit MSB executable, SPARC, version 1, dynamically linked (uses shared libs), not stripped

But if I transfer it to a sparc system and try to run it, I get a very odd

  $ ./foo
  bash: ./foo: Is a directory


-- Lars

Lars Kellogg-Stedman <lars@larsshack.org> --> http://www.larsshack.org/

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