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]

Re: Linux x86 to Solaris Sparc Cross Compiler


Alex Smith wrote:
> 
> Second, I modifed the files as you dictated, and after adding sparc.h to tm.h
> in my build area I managed to duplicate all of the bad mojo that I achived in
> my first step.
> 
> Here are the errors I'm getting know.  It seems that it is really expecting a
> sparc at this point.
> 
> /tmp/ccus5WBe.s:129: Error: no such 386 instruction: `save'
> /tmp/ccus5WBe.s:130: Error: Rest of line ignored. First ignored character is `!'
> ..
> /tmp/ccus5WBe.s:131: Error: no such 386 instruction: `wr'
> /tmp/ccus5WBe.s:132: Error: no such 386 instruction: `sra'
> /tmp/ccus5WBe.s:133: Error: bad register name ('%i1')
> /tmp/ccus5WBe.s:134: Error: no such 386 instruction: `andcc'
> /tmp/ccus5WBe.s:135: Error: no such 386 instruction: `mulscc'
> /tmp/ccus5WBe.s:136: Error: no such 386 instruction: `mulscc'

 Somehow it finds the x86-assembler before the sparc target one...
What does the './xgcc -print-search-dirs' say about the search
path for programs? Is the sparc target one there in the search
path?

 When configuring binutils and GCC, the same '--prefix=...' and
'--target=...' must be used, or the binutils install path fixed
for the GCC program search path... Also the same 'Catch-22' as
with the 'libiberty headers' may disable finding the right 'as'...

Cheers, Kai

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