This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Trouble building an Intel to SPARC cross-compiler


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]