SDV encountered errors when building the driver

Hi,

When I build my WDM driver project, it gets built successfully, however when I start the SDV from the visual studio, SDV failed with build errors. I haven’t tried SDV from Visual studio command prompt yet.

JFYI, I am using VS 2013 Professional, WDK 8.1 update and I am trying to run the SDV in Release configuration.

Errors encountered when building the driver for SDV is related to paths. “fatal error C1083: Cannot open include file: XXXX”

I made sure that there are no special characters and ‘-’ in any of the paths.

Has anyone faced this kind of issue earlier where normal build is success, but SDV build gets failed?

Thanks.

Let me make sure I understand what you’re asking:

You’re building your driver using the WDK integrated into VS. You’re not using an unsupported anything. You select x64 and release, and you build your driver using “Rebuild Solution” and it works fine.

THEN you don’t change the configuration, and you run SDV (Drivers… Static Driver Verifier…) and the SDV process fails with “can’t open include file xxx” where xxx is a file that’s part of your project?

Is that correct? More info would help…

The only time I’ve seen strange SDV errors was when I had some latent SDV files set to read-only (I accidentally checked them in as part of my project).

Peter
OSR
@OSRDrivers

Have you used SDV successfully before this? One way you can get this
failure is if you have VS2012 also installed on the system, if so SDV does
not work. This is a real problem for those of us who need to support
multiple clients with differing build configurations. While I have not
tested it, Microsoft says the problem of SDV working with multiple Visual
Studio’s installed is fixed for the Win10 WDK.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Tuesday, April 07, 2015 6:11 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] SDV encountered errors when building the driver

Hi,

When I build my WDM driver project, it gets built successfully, however when
I start the SDV from the visual studio, SDV failed with build errors. I
haven’t tried SDV from Visual studio command prompt yet.

JFYI, I am using VS 2013 Professional, WDK 8.1 update and I am trying to run
the SDV in Release configuration.

Errors encountered when building the driver for SDV is related to paths.
“fatal error C1083: Cannot open include file: XXXX”

I made sure that there are no special characters and ‘-’ in any of the
paths.

Has anyone faced this kind of issue earlier where normal build is success,
but SDV build gets failed?

Thanks.


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

I didn’t know that!

Is there a work-around? Or is it a “too bad, so sad” situation?

Peter
OSR
@OSRDrivers

Peter,

What you mentioned is exactly correct and xxx is part of my project. SDV was never run on this driver before.

Don,

VS2012 was uninstalled from this machine before installing VS 2013. I could run SDV on sample drivers successfully with the same configuration and on the same machine. I am getting the SDV build errors for this project.

It is totally uninstall one of the Visual Studio’s and the WDK, then kiss
your ass and pray. Sometimes the removal works and other times the only
solution is to format the disks on the system and start reloading. Because
of this even though I believe strongly in SDV, I have not used it for quite
some time,

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Tuesday, April 07, 2015 9:03 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] SDV encountered errors when building the driver

I didn’t know that!

Is there a work-around? Or is it a “too bad, so sad” situation?

Peter
OSR
@OSRDrivers


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Yeah, uninstalling VS (or Office, which is even worse) is indeed a dicey
proposition. It does usually works, but if it doesn’t, you’re completely
screwed.

Not that this will help you know, but in general, I have found VS2013 to a
lot less hostile than VS2012.

So, as a hail mary, I know that VS2013 and the Win8 WDK supports this lovely
(documented & legal) feature of a binary/archive dist of the toolchain. I
can’t find the link, but I’ve used it and it is possible to extend it (IMO)
to install other components, at least in some cases. Getting it to install
and use NMake was a bit of hack that I’ve since worked around by using ninja
instead (with CMake, both of which rock, BTW), but in any case, going
forward, if all you need is a WDK build environment and you’re feeling
lucky, you could consider trying the standalone dist (doesn’t use the
registry or common files) and see if you can edit the install xml file to
include it, assuming that SDV has some console list mode still (all
doubtful, alas).

SDV in the VS2013/WIN8 WDK rocks, BTW! Completely useless IMO before that,
so damn fine work improving it, MSFT!

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Tuesday, April 07, 2015 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] SDV encountered errors when building the driver

It is totally uninstall one of the Visual Studio’s and the WDK, then kiss
your ass and pray. Sometimes the removal works and other times the only
solution is to format the disks on the system and start reloading. Because
of this even though I believe strongly in SDV, I have not used it for quite
some time,

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Tuesday, April 07, 2015 9:03 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] SDV encountered errors when building the driver

I didn’t know that!

Is there a work-around? Or is it a “too bad, so sad” situation?

Peter
OSR
@OSRDrivers


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Assuming you can’t just use a VM for some reason, of course.

mm

-----Original Message-----
From: Martin O’Brien [mailto:xxxxx@gmail.com]
Sent: Tuesday, April 07, 2015 2:02 PM
To: ‘Windows System Software Devs Interest List’
Subject: RE: [ntdev] SDV encountered errors when building the driver

Yeah, uninstalling VS (or Office, which is even worse) is indeed a dicey
proposition. It does usually works, but if it doesn’t, you’re completely
screwed.

Not that this will help you know, but in general, I have found VS2013 to a
lot less hostile than VS2012.

So, as a hail mary, I know that VS2013 and the Win8 WDK supports this lovely
(documented & legal) feature of a binary/archive dist of the toolchain. I
can’t find the link, but I’ve used it and it is possible to extend it (IMO)
to install other components, at least in some cases. Getting it to install
and use NMake was a bit of hack that I’ve since worked around by using ninja
instead (with CMake, both of which rock, BTW), but in any case, going
forward, if all you need is a WDK build environment and you’re feeling
lucky, you could consider trying the standalone dist (doesn’t use the
registry or common files) and see if you can edit the install xml file to
include it, assuming that SDV has some console list mode still (all
doubtful, alas).

SDV in the VS2013/WIN8 WDK rocks, BTW! Completely useless IMO before that,
so damn fine work improving it, MSFT!

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Tuesday, April 07, 2015 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] SDV encountered errors when building the driver

It is totally uninstall one of the Visual Studio’s and the WDK, then kiss
your ass and pray. Sometimes the removal works and other times the only
solution is to format the disks on the system and start reloading. Because
of this even though I believe strongly in SDV, I have not used it for quite
some time,

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Tuesday, April 07, 2015 9:03 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] SDV encountered errors when building the driver

I didn’t know that!

Is there a work-around? Or is it a “too bad, so sad” situation?

Peter
OSR
@OSRDrivers


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Unfortunately, I have customers wedded to VS2012 (one of them is wedded to
Vista!), so SDV which also seems in some cases to have problems with Win7
WDK and VS2012 Win8 WDK co-residing has been worthless to me for so long, I
will need to do a major refresher to use it. This is ironic as I am a
former developer of static analysis tools, and a strong advocate, but the
SDV team screwed this one up beyond belief.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Martin O’Brien
Sent: Tuesday, April 07, 2015 2:02 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] SDV encountered errors when building the driver

Yeah, uninstalling VS (or Office, which is even worse) is indeed a dicey
proposition. It does usually works, but if it doesn’t, you’re completely
screwed.

Not that this will help you know, but in general, I have found VS2013 to a
lot less hostile than VS2012.

So, as a hail mary, I know that VS2013 and the Win8 WDK supports this lovely
(documented & legal) feature of a binary/archive dist of the toolchain. I
can’t find the link, but I’ve used it and it is possible to extend it (IMO)
to install other components, at least in some cases. Getting it to install
and use NMake was a bit of hack that I’ve since worked around by using ninja
instead (with CMake, both of which rock, BTW), but in any case, going
forward, if all you need is a WDK build environment and you’re feeling
lucky, you could consider trying the standalone dist (doesn’t use the
registry or common files) and see if you can edit the install xml file to
include it, assuming that SDV has some console list mode still (all
doubtful, alas).

SDV in the VS2013/WIN8 WDK rocks, BTW! Completely useless IMO before that,
so damn fine work improving it, MSFT!

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Burn
Sent: Tuesday, April 07, 2015 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] SDV encountered errors when building the driver

It is totally uninstall one of the Visual Studio’s and the WDK, then kiss
your ass and pray. Sometimes the removal works and other times the only
solution is to format the disks on the system and start reloading. Because
of this even though I believe strongly in SDV, I have not used it for quite
some time,

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Tuesday, April 07, 2015 9:03 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] SDV encountered errors when building the driver

I didn’t know that!

Is there a work-around? Or is it a “too bad, so sad” situation?

Peter
OSR
@OSRDrivers


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Don: Install VS 2013 (or 2012 if you prefer) in a VM, like mm said. It’ll take you 20 minutes (running in the background) and you’ll be good to go. Then go have a good time and enjoy the benefits of SDV.

OP: If you don’t have both VS 2012 and VS 2013 simultaneously installed and don’t have any of the files in the directories for your Solution marked read only… I don’t know what else to add.

Peter
OSR
@OSRDrivers

Peter,

I detest VM’s, on my dev system the run significantly worse than the
Pentium II system I use for old compatibility testing, and they drag the
rest of the system down to the same level. Even beyond that I have never
had good experiences with VM’s (except for getting paid by people who were
foolish enough to use a VM for all development and testing, then had to rush
to fix their driver to work in the real world). Ironically, I have a patent
for VM technology, and have done some work in that area, but I personally
don’t like it.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Tuesday, April 07, 2015 4:24 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] SDV encountered errors when building the driver

Don: Install VS 2013 (or 2012 if you prefer) in a VM, like mm said. It’ll
take you 20 minutes (running in the background) and you’ll be good to go.
Then go have a good time and enjoy the benefits of SDV.

OP: If you don’t have both VS 2012 and VS 2013 simultaneously installed and
don’t have any of the files in the directories for your Solution marked read
only… I don’t know what else to add.

Peter
OSR
@OSRDrivers


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Don, if you’re VM is both running more slowly than a (ballpark) decade old
chip and dragging the whole system down too, you might want to see if
you’re doing something wrong.

In the interest of full disclosure, I work for a virtualization company and
for/with three of the Xen founders, so perhaps I am biased, but that has
just not been my experience.

I don’t use them for hardware development, but otherwise, to me, testing in
a VM is awesome.

mm
On Apr 7, 2015 4:35 PM, “Don Burn” wrote:

> Peter,
>
> I detest VM’s, on my dev system the run significantly worse than the
> Pentium II system I use for old compatibility testing, and they drag the
> rest of the system down to the same level. Even beyond that I have never
> had good experiences with VM’s (except for getting paid by people who were
> foolish enough to use a VM for all development and testing, then had to
> rush
> to fix their driver to work in the real world). Ironically, I have a
> patent
> for VM technology, and have done some work in that area, but I personally
> don’t like it.
>
>
> Don Burn
> Windows Driver Consulting
> Website: http://www.windrvr.com
>
>
>
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
> Sent: Tuesday, April 07, 2015 4:24 PM
> To: Windows System Software Devs Interest List
> Subject: RE:[ntdev] SDV encountered errors when building the driver
>
> Don: Install VS 2013 (or 2012 if you prefer) in a VM, like mm said. It’ll
> take you 20 minutes (running in the background) and you’ll be good to go.
> Then go have a good time and enjoy the benefits of SDV.
>
> OP: If you don’t have both VS 2012 and VS 2013 simultaneously installed
> and
> don’t have any of the files in the directories for your Solution marked
> read
> only… I don’t know what else to add.
>
> Peter
> OSR
> @OSRDrivers
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Martin O’Brien wrote:

Don, if you’re VM is both running more slowly than a (ballpark) decade
old chip and dragging the whole system down too, you might want to see
if you’re doing something wrong.

(Actually, the Pentium II is closer to TWO decades old.)


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

You realize that every server on the planet runs in a VM now,right? Including every server at OSR. Even. Shit, even OSRONLINE and Lyris are in a VM. Gxd bless P2V.

Peter
OSR
@OSRDrivers

Impressive numbers. I won’t even ASK what you need 800GB of memory for.

In terms of VMs, 800GB of memory on ESX Server… no problem.

Peter
OSR
@OSRDrivers

> On Apr 7, 2015, at 16:27, Martin O’Brien wrote:
>
> Don, if you’re VM is both running more slowly than a (ballpark) decade old chip and dragging the whole system down too, you might want to see if you’re doing something wrong.
>

On Windows there’s some hoops to jump in terms of driver discs, but I find far too few people seem to be aware of virtio disk and network, or aren’t aware just how slow Virtualbox can be.
> I don’t use them for hardware development, but otherwise, to me, testing in a VM is awesome.
>

What sort of hardware are you developing against that means you can’t (or prefer not to) test it in a VM?


Bruce

On Apr 7, 2015, at 7:53 PM, Bruce Cran > wrote:

On Apr 7, 2015, at 16:27, Martin O’Brien > wrote:

Don, if you’re VM is both running more slowly than a (ballpark) decade old chip and dragging the whole system down too, you might want to see if you’re doing something wrong.

On Windows there’s some hoops to jump in terms of driver discs, but I find far too few people seem to be aware of virtio disk and network, or aren’t aware just how slow Virtualbox can be.

The concept of “slow” is a complicated one. The processors in a VM, for example, run at their full native speed. CPU-bound loads do quite well in a VM.

The penalties arise when you start doing I/O, and even that depends on how well the devices are virtualized.

Tim Roberts, xxxxx@probo.commailto:xxxxx
Providenza & Boekelheide, Inc.</mailto:xxxxx>

Yes, there can be issues, but those can usually be fixed. There are also
workloads that aren’t ideal for virtualization.

There are also virtualization solutions that suck :wink:

I don’t generally develop traditional drivers for hardware is what I meant
to say - never tried it with usb and so forth.

The exception to this is for nested hypervisor development/testing. That
I’ve done, but it didn’t seem generally relevant to bring up and even
there, you can’t do everything that way, but it’s enormously useful for
some scenarios and running nested hypervisors is common, so it’s
effectively “real” hardware in some cases.

mm
On Apr 7, 2015 10:56 PM, “Bruce Cran” wrote:

>
> On Apr 7, 2015, at 16:27, Martin O’Brien
> wrote:
>
> Don, if you’re VM is both running more slowly than a (ballpark) decade old
> chip and dragging the whole system down too, you might want to see if
> you’re doing something wrong.
>
>
> On Windows there’s some hoops to jump in terms of driver discs, but I find
> far too few people seem to be aware of virtio disk and network, or aren’t
> aware just how slow Virtualbox can be.
>
> I don’t use them for hardware development, but otherwise, to me, testing
> in a VM is awesome.
>
>
> What sort of hardware are you developing against that means you can’t (or
> prefer not to) test it in a VM?
>
> –
> Bruce
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Peter,

I either work with small firms (i.e. small or smaller than OSR), or else
work with people on server performance with machines as big or bigger than
described below. With these companies I don’t see VM’s. Personally, having
a bunch of VM’s on my dev system even when I get the performance is just a
royal PITA.

Don Burn
Windows Driver Consulting
Website: http://www.windrvr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@osr.com
Sent: Tuesday, April 07, 2015 10:14 PM
To: Windows System Software Devs Interest List
Subject: RE: Re: [ntdev] SDV encountered errors when building the driver

[quote]
Not my servers. Sure I run some infrastructure servers in VMs, but the main
app servers need 800 GB of RAM and 64 cores and those resources are hard to
come by in a VM [/quote]

Impressive numbers. I won’t even ASK what you need 800GB of memory for.

In terms of VMs, 800GB of memory on ESX Server… no problem.

Peter
OSR
@OSRDrivers


NTDEV is sponsored by OSR

Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev

OSR is HIRING!! See http://www.osr.com/careers

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

> On Apr 8, 2015, at 00:03, Tim Roberts wrote:
> The concept of “slow” is a complicated one. The processors in a VM, for example, run at their full native speed. CPU-bound loads do quite well in a VM.

That’s true, with the exception of products like Bochs and when running VMs for other architectures like MIPS or ARM on x86.

Also, depending on how it’s implemented there may be a slowdown as more processors are added.


Bruce