This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

MIPS Cross Compiler Question


I am working on building a cross compiler using the following
configuration:

Host System:  Solaris 2.8
              (UltraSparc 10)

Target System:  Harris RHC3100 CPU (MIPS Architecture, R3000 compatible)

Tools Versions:

    binutils-2.9.1
    gcc-2.95.3


I have not yet worked on compiling newlib as I have yet to compile gcc
sucessfully.  What happens is I configure and compile binutils with no
problem.  I configure and compile gcc, and it crashes with the error:

----------------------------------------------------------------------
./gcc-2.95.3/gcc/../include -c -DL${name} libgcc1.S; \
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \
  mv libgcc1.o ${name}.o; \
  mips-elf-ar rc tmplibgcc1.a ${name}.o; \
  rm -f ${name}.o; \
done
_m16addsf3
as: unrecognized option `-G'
make[1]: *** [libgcc1-asm.a] Error 1
make[1]: Leaving directory `/usr/share/src/elf/build-gcc/gcc'
make: *** [all-gcc] Error 2

----------------------------------------------------------------------

Anyone have any ideas what is happening here?  I have tried a number
of options and variations, but at the core I have been using this
sequence:

../gcc-2.95.3/configure        \
    --target=mips-elf          \
    --prefix=/usr/gcc-mips-elf \
    --with-gnu-as              \
    --with-gnu-ld              \
    -v
make all


I am using the GNU compiler gcc-2.95.3 and binutils 2.10.1
(precompiled SunFreeware Versions).  I have also included the
configure option '--enable-languages=c', which changes nothing, and
the same with all other options I have tried.  The new and old FAQs
have been un-helpful, and I haven't found anything that works in the
list archives yet...

Am I using the correct target...is 'mips-elf' the proper target for an
embedded MIPS R3000 processor?  The target system will be loaded by
way of S-Records through the PMON directly into cache (no system ram)
if that makes any difference on the target.  There is no OS sitting
under the program, it is run directly.

Anyone built such a cross compiler?  Any suggestions?  A quick reply
would be greatly appreciated as this project is under a bit of a time
crunch...

--David



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