harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Rogers (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-5948) Unable to build classlib on Windows: NTDDI_VERSION setting conflicts with _WIN32_WINNT
Date Wed, 13 Aug 2008 13:58:46 GMT
Unable to build classlib on Windows: NTDDI_VERSION setting conflicts with _WIN32_WINNT

                 Key: HARMONY-5948
                 URL: https://issues.apache.org/jira/browse/HARMONY-5948
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Harmony r685525
Windows XP (32bit Pentium 4) and Windows Vista (32bit AMD64x2), Windows SDK, Visual C++ 2008
Express Edition
            Reporter: Ian Rogers

I am trying to build Harmony's classlib from SVN on Windows but the build is failing on my
two Windows machines. On the Windows XP machine it fails with:

     [echo] Making "" in C:\jikesrvm\components\harmony\5.0M6\harmony\modules\au
     [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -FIsehmap.h
-D_X86_=1  -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0501 -DNTDDI_VERSION=0
x05010000 -D_WIN32_IE=0x0500 -DWINVER=0x0501 -Zi -Od -WX -GF -Gs -MD -Zm400   -D_CRT_SECURE_NO_DEPRECATE
 -D_CRT_SECURE_NO_WARNINGS  -D_SCL_SECURE_NO_DEPRECATE -D_DLL -D_MT -D_WINSOCKAPI_  /IC:\jikesrvm\components\harmony\5.0M6\harmony\deploy\include
/IC:\jikesrvm\components\harmony\5.0M6\harmony\deploy\jdk\include /I . -Fo..\shared\auth_copyright.obj
     [exec] auth_copyright.c
     [exec]     cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -FIsehmap.h -D_X86_=1
 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0501 -DNTDDI_VERSION=0x05010000 -D_WIN32_IE=0x0500
 -D_SCL_SECURE_NO_DEPRECATE -D_DLL -D_MT -D_WINSOCKAPI_ /IC:\jikesrvm\components\harmony\5.0M6\harmony\deploy\include
/IC:\jikesrvm\components\harmony\5.0M6\harmony\deploy\jdk\include /I. -Foauthwin32.obj authwin32.c
     [exec] authwin32.c
     [exec] C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\sdkddkver.h(240) : fatal
error C1189: #error :  NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
     [exec] NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\Bin\cl.EXE"'
: return code '0x2'
     [exec] Stop.


The failing part of the header file is:

#error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting


#define OSVERSION_MASK      0xFFFF0000
#define NTDDI_WINXP                         0x05010000

and NTDDI_VERSION from the command is 0x05010000. Also:

#define _WIN32_WINNT_WINXP                  0x0501

and from the command line _WIN32_WINNT=0x0501 .

The comment in the header file implies the Harmony definitions are failing a sanity check.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message