[RFC] setup: allow building with i686-w64-mingw32

JonY jon_y@users.sourceforge.net
Fri Jun 1 17:08:00 GMT 2012

On 6/2/2012 00:03, Yaakov (Cygwin/X) wrote:
> On 2012-06-01 03:47, JonY wrote:
>> On 6/1/2012 15:45, Yaakov (Cygwin/X) wrote:
>>> Fedora has switched from the i686-pc-mingw32 toolchain to the
>>> {i686,x86_64}-w64-mingw32 toolchains in F17.  This means that setup
>>> cannot currently be built on F17.
>>> The attached draft patch fixes most of the issues with the build.  (I
>>> just added the necessary mingw64-i686-* libraries to Ports.)  ntdll.h
>>> needs some more work though; perhaps JonY could provide some input?
>> Can you list some of the issues you've encountered with ntdll.h?
> 1) ddk/ntapi.h does not exist.

I'm not sure about that, Kai?

> 2) DDK headers can't find other DDK headers which they require.  IMHO
> those should be changed from <> includes to "" includes in mingw64-headers.

You are supposed to use -I/path/to/include/ddk to use the headers, this
is one of the differences with mingw.org.

> 3) Once I circumvent those, I get a ton of redefinition and conflicting
> declaration errors between winnt.h and ddk/ntddk.h.  Its too long to
> list here, so I suggest you give it a try.

PSDK should not be used together with the DDK, Kai suggests using
winternl.h in place of ntddk.h.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20120601/5100a135/attachment.sig>

More information about the Cygwin-apps mailing list