X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "Dave Korn" To: References: <47EB54F6 DOT 9080402 AT gmail DOT com> Subject: RE: problem with cross-compilation i686-pc-mingw32 Date: Thu, 27 Mar 2008 11:32:20 -0000 Message-ID: <041b01c88ffe$384cc6c0$2708a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <47EB54F6.9080402@gmail.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/