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]

MIPS cross on Sun problems


Hi all,

	I or my collegues have _never_ able to build a MIPS cross compiler on our 
Sun Sparc Solaris 2.6 workstations gcc-core-2.95.2. Any help would be 
greatly appreciated:

I am trying to build a mips-elf (or mips64-elf might do) cross compiler with 
the source so I can hack the source for a project of mine. I also have an 
SGI and x86 machine at my disposal if the Sun-Sparc-Solaris2.6 platform is a 
problem.

I am following the cross FAQ at 
http://www.objsw.com/CrossGCC/FAQ-4.html#ss4.1)

- Binutils installed and compiled succesfully
(pwd = ../build-binutils)
../binutils/configure --target=mips-elf --prefix=/work/jas/gcc/made 
--with-headers -v
make all install


Now I try to build the gcc-core-2.95.2 distribution:

../gcc-2.95.2/configure --target=mips-elf --prefix=/work/jas/gcc/made 
--with-headers -v
make all install

{
First problem is with the header dependencies for 
build-gcc/texinfo/makeinfo/  -
makeinfo.o: makeinfo.c ../lib/system.h ../config.h ../lib/getopt.h \
	makeinfo.h
multi.o: multi.c ../lib/system.h ../config.h makeinfo.h
}

Making all in makeinfo
make: Fatal error: Don't know how to make target `../lib/system.h'
Current working directory /work/jas/gcc/build-gcc/texinfo/makeinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /work/jas/gcc/build-gcc/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
Current working directory /work/jas/gcc/build-gcc/texinfo
*** Error code 1
make: Fatal error: Command failed for target `all-texinfo'

{
I side step the problem by commenting out the ../lib/xxx.h files
Compilation retried...
}

...
cp xgcc gcc-cross
/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/ 
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include 
-dumpspecs > tmp-specs
mv tmp-specs specs
touch stmp-headers
if [ -d /work/jas/gcc/made/mips-elf/sys-include ]; \
then \
  CC="/work/jas/gcc/build-gcc/gcc/xgcc -B/work/jas/gcc/build-gcc/gcc/ 
-B/work/jas/gcc/made/mips-elf/bin/ -I/work/jas/gcc/made/mips-elf/include 
-DCROSS_COMPILE -DIN_GCC  -DSVR4  -g -O2 -I./include     -I. 
-I../../gcc-2.95.2/gcc -Iinclude -I/work/jas/gcc/made/mips-elf/sys-include"; 
\
  export CC; \
  /bin/sh ../../gcc-2.95.2/gcc/scan-types.sh "../../gcc-2.95.2/gcc" 
 >tmp-deduced.h; \
  mv tmp-deduced.h deduced.h; \
else \
  touch deduced.h; \
fi
st-dummy.c:1: sys/types.h: No such file or directory
st-dummy.c:4: stdio.h: No such file or directory
st-dummy.c:5: time.h: No such file or directory
st-dummy.c:6: signal.h: No such file or directory
scan-types: could not invoke /work/jas/gcc/build-gcc/gcc/xgcc 
-B/work/jas/gcc/build-gcc/gcc/ -B/work/jas/gcc/made/mips-elf/bin/ 
-I/work/jas/gcc/made/mips-elf/include -DCROSS_COMPILE -DIN_GCC -DSVR4 -g -O2 
-I./include -I. -I../../gcc-2.95.2/gcc -Iinclude 
-I/work/jas/gcc/made/mips-elf/sys-include -E -I../../gcc-2.95.2/gcc/ on 
st-dummy.c
*** Error code 1
make: Fatal error: Command failed for target `deduced.h'
Current working directory /work/jas/gcc/build-gcc/gcc
*** Error code 1
make: Fatal error: Command failed for target `all-gcc'


Can't see a workaround for this - am I close or simply rubbing up the wrong 
tree??

Thanks in  advance.

Jas.

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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