X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; q=dns; s=default; b=pb8
	2riTN+e+RlY1EkvafBHmN8Psqu5LzFhAmfBkYMXOgL8WjnPAgNz1K84djIWEH67Z
	g9cjb21e5WihegQGWdWS0EnoWzEq7UMy5Hv9XBwMYH2ZEDwv6/7o5hLDsQ+tJJox
	DApeQiE6O9KzleYE1wHE2UavG0zjl7N4/XP/p9JQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:content-type:content-transfer-encoding; s=default; bh=zROhsxNhO
	bAy7PxJMxNoVxPOAC8=; b=qQOGkDkP7C0Yl9Viua3pIZrXwX/VsazdBjQ1lqGHC
	uHE0LGzmsH3EhmWJdYqYU7xdftCIygWd0ePLvnNt9WjOnIqx8kUIBedxafHLOvhx
	4xDLHrM++mZ7fI0Koq8kDz2IMn0621HVhnADFhQu8sR1TVUXZBgRDOfgmCoK7Seo
	D4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
X-Spam-SWARE-Status: No, score=-5.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_TRUST,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,TW_WH autolearn=ham version=3.3.1
Message-ID: <51625CAE.2030703@cwilson.fastmail.fm>
Date: Mon, 08 Apr 2013 01:59:10 -0400
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Bug in ddk headers when used from cygwin
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Recompiling getVolInfo (part of the csih package) with latest cygwin 
(32bit) toolchain:

gcc -ggdb -O2 -pipe 
-fdebug-prefix-map=/usr/src/packages/csih/csih-0.9.6-2/build=/usr/src/debug/csih-0.9.6-2 
-fdebug-prefix-map=/usr/src/packages/csih/csih-0.9.6-2/src/csih-0.9.6=/usr/src/debug/csih-0.9.6-2 
-I/usr/include/w32api -I/usr/include/w32api/ddk   -c -o getVolInfo.o 
getVolInfo.c
In file included from /usr/include/w32api/ddk/ntddk.h:38:0,
                  from /usr/include/w32api/ddk/ntifs.h:34,
                  from getVolInfo.c:30:
/usr/include/w32api/ddk/wdm.h:68:20: fatal error: intrin.h: No such file 
or directory
compilation terminated.



getVolInfo is a cygwin program that uses some w32api stuff under the 
hood.  It includes ntifs.h, which include ntddk.h, whch in turn include 
wdm.h, which (tries to) include intrin.h.

But intrin.h is only shipped in the mingw(64) compiler toolchains.  So 
this looks like a bug: if the w32api header files for cygwin refer to a 
separate header file that is not included as part of that toolchain's 
installation footprint...

Any suggestions for a fix?

--
Chuck



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