This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: problem with cross-compilation i686-pc-mingw32
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 27 Mar 2008 11:32:20 -0000
- Subject: RE: problem with cross-compilation i686-pc-mingw32
- References: <47EB54F6.9080402@gmail.com>
\#Cyrille37\# wrote on 27 March 2008 08:04:
> Hello
> I could not find how to setup cygwin to make cross compilation for host
> i686-pc-mingw32.
>
> I've got packages like :
> gcc 3.4.4-3
> gcc-core 3.4.4-3
> gcc-g++ 3.4.4-3
> gcc-mingw 20040810-1
> gcc-mingw-core 20050522-1
> gcc-mingw-g++ 20050522-1
Ok, that's everything you need.
> but when running the configure for GMPlib it could not find
> some tools :
> checking compiler i686-pc-mingw32-gcc -m32 -O2
> -fomit-frame-pointer ... no
> checking compiler i686-pc-mingw32-gcc -O2 -fomit-frame-pointer ... no
> checking compiler gcc -m32 -O2 -fomit-frame-pointer ... yes
> checking compiler gcc -m32 -O2 -fomit-frame-pointer has
> sizeof(long)==4... yes ...
> checking for i686-pc-mingw32-g++... no
> checking for i686-pc-mingw32-c++... no
> checking for i686-pc-mingw32-gpp... no
> checking for i686-pc-mingw32-aCC... no
> checking for i686-pc-mingw32-CC... no
> checking for i686-pc-mingw32-cxx... no
> checking for i686-pc-mingw32-cc++... no
> checking for i686-pc-mingw32-cl... no
> checking for i686-pc-mingw32-FCC... no
> checking for i686-pc-mingw32-KCC... no
> checking for i686-pc-mingw32-RCC... no
> checking for i686-pc-mingw32-xlC_r... no
> checking for i686-pc-mingw32-xlC... no
> Do you know which packages are missing in my cygwin installation ?
Nothing is missing. What is happening is that cygwin's mingw
cross-compiler is actually built-in to the main system gcc. You activate it
by passing the flag "-mno-cygwin" to gcc. So you need to tell configure to
use the main system compiler and pass this flag when compiling. This can be
done by adding
CC_FOR_TARGET="gcc -mno-cygwin" CXX_FOR_TARGET="g++ -mno-cygwin"
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/