MIPS Cross Compiler Question
Michael K. Elwood
mkelwood@qsicorp.com
Mon May 21 16:31:00 GMT 2001
> 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
It appears that the build is using the wrong assembler. Did you install
binutils after you finished building it?
> 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...
We have a cross-development chain built for the mips-tx39-elf target.
mips-elf should also work as a target.
Loading directly into cache? Hmmm, that's an interesting setup. Is your
program really going to be that small, or is this just for preliminary
bootstraping of the hardware?
MKE
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list