building a cross compiler for linux

Dave Korn dave.korn@artimi.com
Tue Dec 12 14:41:00 GMT 2006


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.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list