This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
Re: [RFU] mingw64
On Aug 8 01:54, JonY wrote:
> On 8/8/2011 01:11, Corinna Vinschen wrote:
> > Hi Jon,
> >
> > I just found that there's a packaging bug in
> > mingw64-x86_64-headers-1.0b_svn4214-1.tar.bz2:
> >
> > $ tar tjf mingw64-x86_64-headers-1.0b_svn4075-1.tar.bz2 | egrep '(wdm|mce).h'
> > usr/x86_64-w64-mingw32/sys-root/mingw/include/ddk/mce.h
> > usr/x86_64-w64-mingw32/sys-root/mingw/include/ddk/wdm.h
> >
> > but:
> >
> > $ tar tjf mingw64-x86_64-headers-1.0b_svn4214-1.tar.bz2 | egrep '(wdm|mce).h'
> > $
> >
> > However:
> >
> > $ cd /usr/x86_64-w64-mingw32/sys-root/mingw/include/ddk
> > $ egrep '(wdm|mce).h' ntddk.h
> > #include <wdm.h>
> > #include <mce.h>
> >
> > Could you please update mingw64-x86_64-headers?
> >
> >
> > Thanks,
> > Corinna
> >
>
> Hmm, the header should still be there, not sure where it went. About
> time for a package refresh too. I'll take a few days to update them if
> everything goes smoothly.
Ok.
Btw., I just found that the same headers are missing in
mingw64-i686-headers-1.0b_svn4214-1.tar.bz2, so it's not target
dependent. I didn't check for other missing headers, though.
I just noticed the problem because I created a testcase which
included ddk/ntddk.h.
And here's another problem. Even with the older svn4075 headers
I have a problem when building stuff using ddk headers:
$ cat > x.c <<EOF
#include <ddk/ntddk.h>
int main() { return 0; }
EOF
$ x86_64-w64-mingw32-gcc -g -o x x.c
In file included from x.c:1:0:
/usr/x86_64-w64-mingw32/sys-root/mingw/include/ddk/ntddk.h:38:17: fatal error: wdm.h: No such file or directory
compilation terminated.
The problem is that ntddk.h does not include <ddk/wdm.h>, but only
<wdm.h>, so every time I want to build something using the ddk headers I
have to add something like -I=/mingw/include/ddk to the gcc command
line. Is that intentional? From my perspective, this is a bug in the
ddk headers.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat