This is the mail archive of the
mailing list for the Cygwin project.
RE: building a cross compiler for linux
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Tue, 12 Dec 2006 14:41:02 -0000
- Subject: RE: building a cross compiler for linux
On 12 December 2006 09:55, Domen Vrankar wrote:
> I'm using this tutorila: http://x.cygwin.com/docs/cg/prog-build-cross.html
> for building a cygwin cross compiler for linux.
> I built binutils sucessfully but when trying to build gcc I get:
> configure: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
> This happens even though I use --host=i686-pc-linux.
But you don't mean to cross-compile: you mean to natively compile something
that just happens to be a cross-compiler itself.
So you should be using --target instead of --host.
Can't think of a witty .sigline today....
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html