public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Trouble building an Intel to SPARC cross-compiler
@ 2003-05-28  9:03 Daniel Salomon
  0 siblings, 0 replies; only message in thread
From: Daniel Salomon @ 2003-05-28  9:03 UTC (permalink / raw)
  To: help-gcc

I am trying to build a cross-compiler on an i686-pc-linux-gnu host for 
generating SPARC Solaris code. My host has gcc-3.2.2 installed. I created 
the directory /usr/local/sparc-sun-solaris to use as my objdir, with 
/usr/local/downloads/gcc-3.2.3 as my scrdir. I moved to my objdir and I 
configured it with the command:
   $scrdir/configure --target=sparc-sun-solaris
After configuring, I executed the command "make" which runs for 20 minutes 
and aborts with the following errors:

../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm: Assembler messages:
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:1: Warning: rest of 
line ignored; first ignored character is `!'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:3: Warning: rest of 
line ignored; first ignored character is `!'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:4: Warning: rest of 
line ignored; first ignored character is `!'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:5: Warning: rest of 
line ignored; first ignored character is `!'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:6: Warning: rest of 
line ignored; first ignored character is `!'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:6: Error: no such 
instruction: `you can redistribute it and/or modify it'

[Similar warnings and errors omitted]

../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:57: Error: unknown 
pseudo-op: `.proc'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:61: Error: bad 
register name `%fp!Mark bottom frame pointer'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:62: Error: no such 
instruction: `ld [%sp+(16 * 4)+0],%l0!argc'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:63: Error: bad 
register name `%l1!argv'
../../downloads/gcc-3.2.3/gcc/config/sparc/sol2-c1.asm:65: Warning: rest of 
line ignored; first ignored character is `!'

And a whole bunch more similar warnings and errors on this file that seem to 
indicate that it does not understand the .asm code being assembled. It ends 
off with the errors:

make[1]: *** [crt1.o] Error 1
make: *** [all-gcc] Error 2

So it is failing while trying to generate crt1.o. I read in the document 
old.html included with the gcc documentation, that it is necessary to fetch 
crt1.o from the intended target machine, along with other object files and 
libraries. I tried doing this, and putting the downloaded files in the 
specified place, but they seem to be ignored, and I get the same errors. I 
have tried every reasonable combination of srcdir and objdir that I could 
think of, with no improvement.

In particular I tried putting the object & library files in 
/usr/local/sparc-sun-solaris/lib (as the document specifies).  I also tried 
putting the files in /usr/local/sparc-sun-solari/sparc-sun-solaris/lib.

It seems like an simple problem, but I just can't lick it. Can you help?

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-27 23:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28  9:03 Trouble building an Intel to SPARC cross-compiler Daniel Salomon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).