public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "James Sandys-Lumsdaine" <jas_sl@hotmail.com>
To: gcc-help@gcc.gnu.org
Subject: MIPS cross on Sun problems
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <20000308173903.49451.qmail@hotmail.com> (raw)
Message-ID: <20000401000000.-Vipw3yRyxpsT6jnjoCLz4fHs18L_-EhexPiHVxVVqE@z> (raw)

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

             reply	other threads:[~2000-04-01  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-08  9:39 James Sandys-Lumsdaine [this message]
2000-04-01  0:00 ` James Sandys-Lumsdaine
2000-03-08 12:11 James Sandys-Lumsdaine
2000-03-09 16:56 ` Alexandre Oliva
2000-04-01  0:00   ` Alexandre Oliva
2000-04-01  0:00 ` James Sandys-Lumsdaine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000308173903.49451.qmail@hotmail.com \
    --to=jas_sl@hotmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).