public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: hjl@lucon.org (H.J. Lu)
To: rutt@tensilica.com
Cc: egcs@cygnus.com
Subject: Re: Problems building a cross compiler (toolchain)
Date: Sun, 29 Mar 1998 05:14:00 -0000	[thread overview]
Message-ID: <m0yIzSl-00058JC@ocean.lucon.org> (raw)
In-Reply-To: <199803251718.MAA01329@gertie.ma.tensilica.com>

> 
> I'm trying to build a cross compiler i686-linux -> mips-elf.  I tried to
> follow the instructions in
> ftp://ftp.cygnus.com/pub/embedded/crossgcc/FAQ-0.8.1 , but perhaps I haven't
> done as well as I could.  I'll give the exact steps I followed at the end of
> the message.
> 

I will look into this if it is still not solved next week.

> The problem is that the make of egcs errors out with:
> 
>     GNU assembler version 2.8.1 (mips-elf), using BFD version 2.8.1
>      mips-tfile -v -o _muldi3.o /tmp/cca01170.s
>     xgcc: installation problem, cannot exec `mips-tfile': No such file or directory
> 
> This happens when it is trying to compile _muldi3.o with the following
> command:
> 
>     /home/rutt/src/egcs-1.0.2/mips/gcc/xgcc \
>         -B/home/rutt/src/egcs-1.0.2/mips/gcc/ -O2  -DCROSS_COMPILE -DIN_GCC \
>         -g -O2 -I./include  -G 0 -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED \
>         -fexceptions    -I. -I../../gcc -I../../gcc/config -c -DL_muldi3 \
>         ../../gcc/libgcc2.c -o _muldi3.o -v
> 
> I found the source to mips-tfile in the egcs tree, but I can't build it:
> 
>     [rutt@gertie gcc]$ make mips-tfile
>     gcc -c -DCROSS_COMPILE -DIN_GCC    -g  -DHAVE_CONFIG_H     -I. -I../../gcc -I../../gcc/config ../../gcc/mips-tfile.c
>     ../../gcc/mips-tfile.c:719: mips/a.out.h: No such file or directory
> 
> >From glancing at it, I don't understand why I should need it.  It seems to be
> a COFF thing.
> 
> Here are the steps I followed:
> 
>      1. cd binutils-2.8.1
>      2. configure --target=mips-elf --host=i686-linux -prefix=/home/rutt/cross/mips 
>      3. make all install
>      4. cd ../egcs-1.0.2
>      5. mkdir mips
>      6. ../configure --target=mips-elf --host=i686-linux -prefix=/home/rutt/cross/mips 
>      7. make cross
> 

Are you using glibc 2? If you are not sure, I would recommend to leave
out the --host part and let configure figure out what your host is.


-- 
H.J.

  reply	other threads:[~1998-03-29  5:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-03-25 17:22 John C. Ruttenberg
1998-03-29  5:14 ` H.J. Lu [this message]
1998-03-28 19:24   ` John C. Ruttenberg
1998-04-02 11:32   ` Ian Lance Taylor
1998-03-30 16:18 ` Jim Wilson

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=m0yIzSl-00058JC@ocean.lucon.org \
    --to=hjl@lucon.org \
    --cc=egcs@cygnus.com \
    --cc=rutt@tensilica.com \
    /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).