delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/23/10:24:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW
X-Spam-Check-By: sourceware.org
From: Sam Steingold <sds AT gnu DOT org>
To: cygwin AT cygwin DOT com, Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Subject: Re: i686-w64-mingw32-gcc & ntifs.h
In-Reply-To: <4E52D5C5.4060106@cwilson.fastmail.fm> (Charles Wilson's message of "Mon, 22 Aug 2011 18:18:45 -0400")
References: <svliuq67y2 DOT fsf AT smsv2-L DOT wtc DOT algo> <4E4D9487 DOT 4080103 AT users DOT sourceforge DOT net> <sv39gy47h5 DOT fsf AT smsv2-L DOT wtc DOT algo> <4E4E38B9 DOT 9010803 AT users DOT sourceforge DOT net> <20110819120044 DOT GA2506 AT calimero DOT vinschen DOT de> <svr54h2ql5 DOT fsf AT smsv2-L DOT wtc DOT algo> <4E4F08D3 DOT 3060007 AT users DOT sourceforge DOT net> <CAEwic4YRYiOPP+6AQH_UrnO0pTpc6xYTZrV4bC-esAACXxCOaQ AT mail DOT gmail DOT com> <87fwkunsna DOT fsf AT gnu DOT org> <4E5229ED DOT 9050805 AT users DOT sourceforge DOT net> <svfwktf8v4 DOT fsf AT smsv2-L DOT wtc DOT algo> <4E52D5C5 DOT 4060106 AT cwilson DOT fastmail DOT fm>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)
Mail-Copies-To: never
Reply-To: sds AT gnu DOT org
X-Disclaimer: You should not expect anyone to agree with me.
Mail-Followup-To: cygwin AT cygwin DOT com, Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Date: Tue, 23 Aug 2011 10:23:43 -0400
Message-ID: <svzkj0dx5c.fsf@smsv2-L.wtc.algo>
MIME-Version: 1.0
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

> * Charles Wilson <pltjva AT pjvyfba DOT snfgznvy DOT sz> [2011-08-22 18:18:45 -0400]:
>
> On 8/22/2011 5:13 PM, Sam Steingold wrote:
>> PS. Why are cygwin/mingw and msys/mingw so different?
>
> They are not different. In fact, 'cygwin/mingw.org' and 'msys/mingw.org'
> are identical (except for the emulation environment under which they
> run: msys vs. cygwin).
>
> You're confused by the existence of the separate "mingw64" project.
>
> There are three different "flavors" of mingw-ish compilers:
>   1. mingw.org (32bit only)
>
>   2. mingw64.sf.net
>      a) 32bit
>      b) 64bit
>
> Cygwin provides cross-compiler toolchains for each of these three "flavors":
>
> 1)  i686-pc-mingw32-gcc
> 2a) i686-w64-mingw32-gcc
> 2b) x86_64-w64-mingw32-gcc

OK, thanks. The bottom line is that I should stick with
i686-pc-mingw32-gcc and forget the others even exist. Cool.

Now,

$ egrep -r '#define *STATUS_SUCCESS' /usr/*-mingw32/sys-root/mingw/include/
/usr/i686-pc-mingw32/sys-root/mingw/include/ddk/ntstatus.h:#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
/usr/i686-pc-mingw32/sys-root/mingw/include/ntdef.h:#define STATUS_SUCCESS ((NTSTATUS)0)
/usr/i686-pc-mingw32/sys-root/mingw/include/subauth.h:#define STATUS_SUCCESS 0
/usr/i686-w64-mingw32/sys-root/mingw/include/ntstatus.h:#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
/usr/i686-w64-mingw32/sys-root/mingw/include/subauth.h:#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
/usr/x86_64-w64-mingw32/sys-root/mingw/include/ntstatus.h:#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)
/usr/x86_64-w64-mingw32/sys-root/mingw/include/subauth.h:#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)

Which one should I include for STATUS_SUCCESS: ddk/ntstatus or ntdef?
(I am using i686-pc-mingw32-gcc now exclusively).

Note that both w64 versions have ntstatus.h in the right place (defined
as the place where visual studio places it).
Is this a known bug in mingw?
Will it be fixed?

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 11.0.60900031
http://openvotingconsortium.org http://jihadwatch.org http://palestinefacts.org
http://www.memritv.org http://mideasttruth.com http://ffii.org
Lottery is a tax on statistics ignorants.  MS is a tax on computer-idiots.

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