All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: David Daney <ddaney@avtrex.com>
Cc: linux-mips@linux-mips.org
Subject: Re: native gcc for mipsel / uClibc (building or binaries)?
Date: Sun, 12 Feb 2006 22:48:13 +0100	[thread overview]
Message-ID: <43EFAD1D.9010100@wpkg.org> (raw)
In-Reply-To: <43EFA945.1030906@avtrex.com>

David Daney wrote:

> I have done it for mipsel-linux-glibc, however until last week gcc had 
> no support for uClibc, so it will probably not work with uClibc without 
> some patching to gcc.
> 
> The basic idea is that once you have a working cross toolchain just 
> configure gcc and binutils with: --build=i686-pc-linux-glibc 
> --target=mipsel-linux --host=mipsel-linux.  This will produce a native 
> toolchain.  You will have to copy the compile time portions of the C 
> library (include files and link time libraries) to the target, then you 
> should be all set.

Exactly that's my problem.

I have a compiler that generates binaries for mipsel/uclibc.

I compiled lots of software with it, so we can say it's functional.


Now, when I try to compile gcc (--build=i686-pc-linux-glibc
 > --target=mipsel-linux --host=mipsel-linux), it breaks, as during the 
build process gcc's ./configure has a schizophrenia: it tries to compile 
some parts for mipsel (as I'd expect), but it also tries to compile and 
execute the binaries during the build process.

This means, it creates some binaries/libs needed for the build process 
(like libiberty), then tries to run/use them, but as they are mipsel 
binaries, the build process breaks.

I tried that with gcc-4.0.2, and some earlier 3.3.6 and 3.4.5, without a 
success.


-- 
Tomasz Chmielewski
Software deployment with Samba
http://wpkg.org

  reply	other threads:[~2006-02-12 21:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-12 18:18 native gcc for mipsel / uClibc (building or binaries)? Tomasz Chmielewski
2006-02-12 19:27 ` Ilya A. Volynets-Evenbakh
2006-02-12 20:19   ` Tomasz Chmielewski
2006-02-12 20:32     ` Ilya A. Volynets-Evenbakh
2006-02-12 20:49       ` Tomasz Chmielewski
2006-02-12 21:31 ` David Daney
2006-02-12 21:48   ` Tomasz Chmielewski [this message]
2006-02-13 10:35     ` Richard Sandiford

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=43EFAD1D.9010100@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=ddaney@avtrex.com \
    --cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.