delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/01/13:10:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_THEBAT
X-Spam-Check-By: sourceware.org
Date: Wed, 1 Sep 2010 21:05:53 +0400
From: Andrey Repin <anrdaemon AT freemail DOT ru>
Reply-To: Andrey Repin <cygwin AT cygwin DOT com>
Message-ID: <1753318796.20100901210553@mtu-net.ru>
To: Christopher Faylor <cygwin AT cygwin DOT com>
Subject: Re: Cross-compiling for i686-pc-mingw32
In-Reply-To: <20100901152156.GA19294@ednor.casa.cgf.cx>
References: <50F6B64644A84DE8A7F93B2DE2DA14FA AT desktop2> <4C5D82A7 DOT 4010703 AT cwilson DOT fastmail DOT fm> <81291471 DOT 20100901183518 AT mtu-net DOT ru> <20100901152156 DOT GA19294 AT ednor DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Greetings, Christopher Faylor!

>>>> With cygwin-1.5.25 I can cross-compile libraries for native win32 by
>>>> starting with the following configure command:
>>>> 
>>>> ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin CC='gcc
>>>> -mno-cygwin' host_alias=i686-pc-mingw32
>>>> 
>>>> and that has worked fine on the few occasions that I've tried it.
>>>> 
>>>> However, with cygwin-1.7.5, it doesn't work.
>>
>>> For now, use CC='gcc-3 -mno-cygwin'. Soon you'll be able to use a real,
>>> honest-to-god cross compiler version of gcc-4 instead (e.g.
>>> "i686-pc-mingw32-gcc")
>>
>>Aww... now i'm struck with it.
>>Tried to compile http://www.acme.com/software/mini_httpd/
>>Installed gcc-mingw, it pulled up some additional packets including gcc
>>itself.
>>Then I ran make just for test. Cygwin build went fine, apart from htpasswd
>>(there's getline redefined in source), but I don't really need it.
>>Then tried to switch to mingw32 and...
>>
>>$ gcc -b i686-pc-mingw32 -O   -c mini_httpd.c
>>gcc: couldn't run `i686-pc-mingw32-gcc-3.4.4': No such file or directory
>>
>>Tried the suggested gcc-3 -mno-cygwin, and got a whole bunch of unresolved
>>function names.
>>So... am I doing something wrong or it's not yet ready to do so?

> Or, maybe if you're in the wrong mailing list.

> I don't see any reason to spend much time trying to help people not use
> Cygwin in this mailing list.  If you're having problems building
> something which is supposed to be built with MinGW then you should be
> checking out the resources at http://mingw.org/ .

It is not "supposed to", and it is building fine with cygwin (and working
surprisingly fine, too).
I just want to know, if it's expected behavior for now, or do I need some more
packages installed to be able to cross-compile applications, besides gcc-mingw
and associated.


--
WBR,
 Andrey Repin (anrdaemon AT freemail DOT ru) 01.09.2010, <21:03>

Sorry for my terrible english...


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019