Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-5948

Unable to build classlib on Windows: NTDDI_VERSION setting conflicts with _WIN32_WINNT

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Classlib
    • None
    • Harmony r685525
      Windows XP (32bit Pentium 4) and Windows Vista (32bit AMD64x2), Windows SDK, Visual C++ 2008 Express Edition

    Description

      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:

      build-native:
      [echo] Making "" in C:\jikesrvm\components\harmony\5.0M6\harmony\modules\au
      th\src\main\native/auth/windows
      [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 ..\shared\auth_copyright.c
      [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 -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. -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.

      BUILD FAILED

      The failing part of the header file is:

      #if (((OSVERSION_MASK & NTDDI_VERSION) == NTDDI_WINXP) && (_WIN32_WINNT != _WIN32_WINNT_WINXP))
      #error NTDDI_VERSION setting conflicts with _WIN32_WINNT setting
      #endif

      where:

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ian.rogers Ian Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: