Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Joseph_S_1
Beginner
118 Views

I'm getting compile errors building msr.sys on Win10 using WDK 7.1

I Installed the WDK 7.1 (incidentally I have WDK 8.1 and WDK 10 installed)

I opened a WDK 7.1 x86 Fre Win7 build environment window

I navigated to the WinMSRDriver\Win7 folder and ran Build -Z

This is the output:

D:\PCM-V2.11\WinMSRDriver\Win7>build -Z
path contains nonexistant c:\users\joseph\appdata\roaming\npm, removing
path contains nonexistant %userprofile%\appdata\local\microsoft\windowsapps, removing
BUILD: Compile and Link for x86
BUILD: Start time: Fri Oct 07 15:16:26 2016
BUILD: Examining d:\pcm-v2.11\winmsrdriver\win7 directory for files to compile.
    d:\pcm-v2.11\winmsrdriver\win7 Invalidating OACR warning log for 'root:x86fre'
BUILD: Compiling and Linking d:\pcm-v2.11\winmsrdriver\win7 directory
Configuring OACR for 'root:x86fre' - <OACR on>
Compiling - msrmain.c
1>errors in directory d:\pcm-v2.11\winmsrdriver\win7
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(160) : error C2275: 'PROCESSOR_NUMBER' : illegal use of this type as an expression
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(160) : error C2146: syntax error : missing ';' before identifier 'ProcNumber'
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(160) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(161) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(173) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(174) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(174) : error C2224: left of '.Group' must have struct/union type
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(175) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(175) : error C2224: left of '.Number' must have struct/union type
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(189) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(190) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(190) : error C2224: left of '.Group' must have struct/union type
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(191) : error C2065: 'ProcNumber' : undeclared identifier
1>d:\pcm-v2.11\winmsrdriver\win7\msrmain.c(191) : error C2224: left of '.Number' must have struct/union type
1>NMAKE : fatal error U1073: don't know how to make 'C:\Program'
1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed - rc = 2

BUILD: Finish time: Fri Oct 07 15:16:26 2016
BUILD: Done

    3 files compiled - 4 Warnings - 16 Errors

If I run bcz from the prompt I get nearly the same output, with the same errors.

Any thoughts? Thanks!

0 Kudos
1 Reply
Joseph_S_1
Beginner
118 Views

Replicated this on another win10 system with no other WDKs installed.

  1. Install WDK 7.1 into default path C:\WinDDK\7600.16385.1
  2. Unzip PCM into folder D:\IntelPerformanceCounterMonitor-V2.11
  3. Run build -Z (or bcz) in directory D:\IntelPerformanceCounterMonitor-V2.11\WinMSRDriver\Win7

Attached is a the log file from the build

 

Reply