delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/13/17:32:55

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: mdssirds.comp.pge.com: esp5 set sender to esp5 AT pge DOT com using -f
Date: Mon, 13 Oct 2003 14:32:26 -0700
From: Edward Peschko <esp5 AT pge DOT com>
To: Andrew DeFaria <ADeFaria AT Salira DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: merging mingw and cygwin
Message-ID: <20031013213226.GC25036@mdssirds.comp.pge.com>
References: <20031011001648 DOT GG2659 AT mdssirds DOT comp DOT pge DOT com> <6 DOT 0 DOT 0 DOT 22 DOT 0 DOT 20031012123242 DOT 01d10978 AT mail DOT chariot DOT net DOT au> <20031012052757 DOT GB12191 AT mdssirds DOT comp DOT pge DOT com> <1065936902 DOT 844 DOT 19 DOT camel AT localhost> <20031012062347 DOT GA12677 AT mdssirds DOT comp DOT pge DOT com> <bmeida$gnh$1 AT sea DOT gmane DOT org> <20031013190000 DOT GB20245 AT mdssirds DOT comp DOT pge DOT com> <bmf0hl$fvb$1 AT sea DOT gmane DOT org> <20031013203527 DOT GA25036 AT mdssirds DOT comp DOT pge DOT com> <bmf39l$ls2$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <bmf39l$ls2$1@sea.gmane.org>
User-Agent: Mutt/1.4.1i

> >well, I'd expect to see the mingw application choke if I ran it through 
> >cmd.exe this way..
> >
> >I don't see why it would have to choke if it ran through *SH.EXE* this 
> >way. sh.exe - in either the mingw32 world or the the cygwin world - could 
> >handle the arguments. And that way, interoperate a lot better with Win32.
> >
> How (and why) should sh.exe convert anything for the program it's about 
> to exec? To do that it would have to be cognizant that this is a MingW 
> executable and therefore needs conversion of such things as pathnames. 
> How would it know that the underlying executable did not want 
> "Date/Time" as a string as opposed to some sort of filename? The shell 
> shouldn't been guessing and converting things like this because it just 
> doesn't know enough to guess right.

touche.. although you could use a mechanism like 'complete' in tcsh to 
enforce the conversion (complete recognizes things like paths, ip addresses,
email addresses, etc.) and enforces conversion by this mechanism. This would 
work in 95-99% of the cases.

> Really? How so? 'Cause I'm still able to use -mno-cygwin and produce 
> Windows only executables. Are you not able to do this? If not then why?

Like I said, try:

mingw > gcc -dM -e -xc /dev/null
cygwin > gcc -mno-cygwin -dM -E -xc /dev/null

cygwin makes 73 defines, mingw makes 38. If a large project uses any of the
cygwin defines, it will behave differently than if compiled with native mingw.

As I said, this is just the tip of the iceberg - who knows what patches that
mingw has made to gcc, ld, make, etc. which could affect the building and
running of large win32 packages. 

If the large packages built in mingw are tested via mingw, then mingw is the
only real way to a 'proper' win32 executable. And the only way to truly 
emulate mingw32 would be by merging it.

> Maybe the MingW package in Cygwin needs to be updated, however, I fail 
> to see the need for a MINGW or NO_CYGWIN flavor aside from what 
> currently exists (i.e. -mno-cygwin).

Because gcc is not the only place that has MINGW-isms in it; msys departs from
the cygwin standard and handles certain things differently. In order
to build MinGW packages right, the underlying tools have to work the same
as well.

MINGW and/or NO_CYGWIN simply wrap all of this up in a nice user friendly
package.

Ed

--
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/

- Raw text -


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