This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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 is. 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 error: $ ./foo bash: ./foo: Is a directory Help!? -- 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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |