I've installed the winddk 3790, read the release notes and
getting started guide, and attempted to build the examples
but I've had no luck-- the build is silently failing.

Executing 'build -cZ' from the command prompt spawned
by "Windows 2000 Checked Build Environment" rapidly
scrolls through all the example directories (much too fast
to be building) and exits without errors. If I look into
an example (i.e. src\general\portio) at the build log
file, I see entries like the following:

> Compiling c:\winddk\3790\src\general\portio\sys
directory *************
> 'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1
NOPASS0=1 386=1'
> Bad command or file name

Any ideas? The log output is identical for every example
driver in the DDK. I'd expect building examples to "just
work" but I'm not familiar enough with this environment to
even begin to guess what is wrong. It should be mentioned
that I had this exact error mode using a previous Win2K
DDK, so I elected to grab the latest 2003 Server DDK in
the hopes that the integrated compiler, etc, would make
the effort easier.

Re: WinDDK Fails to Build Examples by Eliyas

Eliyas
Tue Jul 01 12:48:37 CDT 2003

I have a feeling that you didn't install the build environment properly.
There is a good chance that you might have unchecked something in the custom
install dialog. I would reinstall the kit and see if the problem persists.

--
-Eliyas
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx



Re: WinDDK Fails to Build Examples by David

David
Wed Jul 02 12:10:54 CDT 2003

Read the readme. Wrong command.

"Just E" <just.e@eudoramail.com> wrote in message
news:0b2001c340ac$3aadb100$a501280a@phx.gbl...
> Hello Eliyas,
>
> As per your suggestion I did a full uninstall, purged the
> install directory and re-installed the 2003 DDK preserving
> all default component selections for install (plus I added
> the "Illustrative Driver Examples"). The same errors
> occur. There are no product incompatibilities listed for
> the DDK, but I really have to wonder at this point.
> Following is some of the output from the build process--
> any further suggestions are greatly appreciated.
>
> Output:
> C:\WINDDK\3790>build -cZ
> ...
> BUILD: Examining c:\winddk\3790 directory tree for files
> to compile.
> BUILD: c:\winddk\3790\bin\x86\prefast\examples\sources(8):
> Unsupported TARGETTYPE value - LIB
> ...
> BUILD: Compiling c:\winddk\3790\src\set\pnpports directory
> ...
> BUILD: Linking c:\winddk\3790\src\setup\pnpports directory
> BUILD: Done
>
> <In buildchk_wnet_x86.log>
> ...
> Linking c:\winddk\3790\src\setup\pnpports directory
> ************
> 'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
> NTTEST= UMTEST= MAKEDLL=1 386=1'
> Bad command or file name
>
> Thanks in advance for any further assistance.
>
> >-----Original Message-----
> >I have a feeling that you didn't install the build
> environment properly.
> >There is a good chance that you might have unchecked
> something in the custom
> >install dialog. I would reinstall the kit and see if the
> problem persists.
> >
> >--
> >-Eliyas
> >This posting is provided "AS IS" with no warranties, and
> confers no rights.
> >http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
> >
> >
> >.
> >



Re: WinDDK Fails to Build Examples by Just

Just
Wed Jul 02 14:20:59 CDT 2003

Could you please be more specific? I've read both the
relnote.htm and install.htm; both files indicate
post-installation verification can be done by opening the
appropriate command build environment command window and
executing "build -cZ". I've not found any other command
that is to be run prior to "build -cZ" listed as part of
the install and verification procedure.

From relnote.htm:
"The result is that the correct set of drivers is always
built when a command window is started for a given build
environment, and the build -cZ command is issued from the
DDK's base directory."

From install.htm, Verifying DDK Installation, Item 2:
"In the command window, type the command build -cZ. This
command compiles and links the complete set of installed
sources. This can take more than 30 minutes to complete,
depending on which DDK components are installed and the
system on which the build is being performed."

So, could you please clarify what you believe I should be
doing?

E


>-----Original Message-----
>Read the readme. Wrong command.
>
>"Just E" <just.e@eudoramail.com> wrote in message
>news:0b2001c340ac$3aadb100$a501280a@phx.gbl...
>> Hello Eliyas,
>>
>> As per your suggestion I did a full uninstall, purged the
>> install directory and re-installed the 2003 DDK preserving
>> all default component selections for install (plus I added
>> the "Illustrative Driver Examples"). The same errors
>> occur. There are no product incompatibilities listed for
>> the DDK, but I really have to wonder at this point.
>> Following is some of the output from the build process--
>> any further suggestions are greatly appreciated.
>>
>> Output:
>> C:\WINDDK\3790>build -cZ
>> ...
>> BUILD: Examining c:\winddk\3790 directory tree for files
>> to compile.
>> BUILD: c:\winddk\3790\bin\x86\prefast\examples\sources(8):
>> Unsupported TARGETTYPE value - LIB
>> ...
>> BUILD: Compiling c:\winddk\3790\src\set\pnpports directory
>> ...
>> BUILD: Linking c:\winddk\3790\src\setup\pnpports directory
>> BUILD: Done
>>
>> <In buildchk_wnet_x86.log>
>> ...
>> Linking c:\winddk\3790\src\setup\pnpports directory
>> ************
>> 'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
>> NTTEST= UMTEST= MAKEDLL=1 386=1'
>> Bad command or file name
>>
>> Thanks in advance for any further assistance.
>>
>> >-----Original Message-----
>> >I have a feeling that you didn't install the build
>> environment properly.
>> >There is a good chance that you might have unchecked
>> something in the custom
>> >install dialog. I would reinstall the kit and see if the
>> problem persists.
>> >
>> >--
>> >-Eliyas
>> >This posting is provided "AS IS" with no warranties, and
>> confers no rights.
>> >http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
>> >
>> >
>> >.
>> >
>
>
>.
>

Re: WinDDK Fails to Build Examples by David

David
Wed Jul 02 15:31:50 CDT 2003

The README says "prefast build -cZ". Rather simple. The latest DDK doesn't
mention modifying the app, but the XP SP1 IFSKit does.

"Just E" <just.e@eudoramail.com> wrote in message
news:01af01c340cf$119c4dd0$a501280a@phx.gbl...
> Could you please be more specific? I've read both the
> relnote.htm and install.htm; both files indicate
> post-installation verification can be done by opening the
> appropriate command build environment command window and
> executing "build -cZ". I've not found any other command
> that is to be run prior to "build -cZ" listed as part of
> the install and verification procedure.
>
> From relnote.htm:
> "The result is that the correct set of drivers is always
> built when a command window is started for a given build
> environment, and the build -cZ command is issued from the
> DDK's base directory."
>
> From install.htm, Verifying DDK Installation, Item 2:
> "In the command window, type the command build -cZ. This
> command compiles and links the complete set of installed
> sources. This can take more than 30 minutes to complete,
> depending on which DDK components are installed and the
> system on which the build is being performed."
>
> So, could you please clarify what you believe I should be
> doing?
>
> E
>
>
> >-----Original Message-----
> >Read the readme. Wrong command.
> >
> >"Just E" <just.e@eudoramail.com> wrote in message
> >news:0b2001c340ac$3aadb100$a501280a@phx.gbl...
> >> Hello Eliyas,
> >>
> >> As per your suggestion I did a full uninstall, purged the
> >> install directory and re-installed the 2003 DDK preserving
> >> all default component selections for install (plus I added
> >> the "Illustrative Driver Examples"). The same errors
> >> occur. There are no product incompatibilities listed for
> >> the DDK, but I really have to wonder at this point.
> >> Following is some of the output from the build process--
> >> any further suggestions are greatly appreciated.
> >>
> >> Output:
> >> C:\WINDDK\3790>build -cZ
> >> ...
> >> BUILD: Examining c:\winddk\3790 directory tree for files
> >> to compile.
> >> BUILD: c:\winddk\3790\bin\x86\prefast\examples\sources(8):
> >> Unsupported TARGETTYPE value - LIB
> >> ...
> >> BUILD: Compiling c:\winddk\3790\src\set\pnpports directory
> >> ...
> >> BUILD: Linking c:\winddk\3790\src\setup\pnpports directory
> >> BUILD: Done
> >>
> >> <In buildchk_wnet_x86.log>
> >> ...
> >> Linking c:\winddk\3790\src\setup\pnpports directory
> >> ************
> >> 'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
> >> NTTEST= UMTEST= MAKEDLL=1 386=1'
> >> Bad command or file name
> >>
> >> Thanks in advance for any further assistance.
> >>
> >> >-----Original Message-----
> >> >I have a feeling that you didn't install the build
> >> environment properly.
> >> >There is a good chance that you might have unchecked
> >> something in the custom
> >> >install dialog. I would reinstall the kit and see if the
> >> problem persists.
> >> >
> >> >--
> >> >-Eliyas
> >> >This posting is provided "AS IS" with no warranties, and
> >> confers no rights.
> >> >http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >



Re: WinDDK Fails to Build Examples by Just

Just
Wed Jul 02 18:29:19 CDT 2003

David,

Thanks for that information. I'm installing from the
May'03 MSDN DDK DVD and it contains no top-level README nor
are there any README files within the DDK subdirectories
(win2003 or XP). At the risk of taking more of your time,
on what media and where do you find this README? I've read
all the installation documentation that seems appropriate
within the DDK directories yet it seems you have more
pertinent information. I'm not sure what you mean
regarding "modifying the app" and the IFS package (which I
have no intention of installing at this time).

On my media there does exist a "prefast_install.htm"
document that mentions something similar (but different) to
what you are mentioning:

"To see what PREfast does and how it works, see the
examples in the %PREFAST_ROOT%\examples\ directory. Go to
that directory in a DDK build environment and type prefast
build -cZ. Press ENTER, and then type prefast view. This
reports 33 defects. (The errors from the compiler are
intended.)"

Since I am not in %PREFAST_ROOT% to build the examples,
this does not seem appropriate.

I'll attempt your suggestion regardless later tonight and
update this thread when I have feedback to provide.

Thanks again.

>-----Original Message-----
>The README says "prefast build -cZ". Rather simple. The
latest DDK doesn't
>mention modifying the app, but the XP SP1 IFSKit does.
>
>"Just E" <just.e@eudoramail.com> wrote in message
>news:01af01c340cf$119c4dd0$a501280a@phx.gbl...
>> Could you please be more specific? I've read both the
>> relnote.htm and install.htm; both files indicate
>> post-installation verification can be done by opening the
>> appropriate command build environment command window and
>> executing "build -cZ". I've not found any other command
>> that is to be run prior to "build -cZ" listed as part of
>> the install and verification procedure.
>>
>> From relnote.htm:
>> "The result is that the correct set of drivers is always
>> built when a command window is started for a given build
>> environment, and the build -cZ command is issued from the
>> DDK's base directory."
>>
>> From install.htm, Verifying DDK Installation, Item 2:
>> "In the command window, type the command build -cZ. This
>> command compiles and links the complete set of installed
>> sources. This can take more than 30 minutes to complete,
>> depending on which DDK components are installed and the
>> system on which the build is being performed."
>>
>> So, could you please clarify what you believe I should be
>> doing?
>>
>> E
>>
>>
>> >-----Original Message-----
>> >Read the readme. Wrong command.
>> >
>> >"Just E" <just.e@eudoramail.com> wrote in message
>> >news:0b2001c340ac$3aadb100$a501280a@phx.gbl...
>> >> Hello Eliyas,
>> >>
>> >> As per your suggestion I did a full uninstall, purged the
>> >> install directory and re-installed the 2003 DDK
preserving
>> >> all default component selections for install (plus I
added
>> >> the "Illustrative Driver Examples"). The same errors
>> >> occur. There are no product incompatibilities listed for
>> >> the DDK, but I really have to wonder at this point.
>> >> Following is some of the output from the build process--
>> >> any further suggestions are greatly appreciated.
>> >>
>> >> Output:
>> >> C:\WINDDK\3790>build -cZ
>> >> ...
>> >> BUILD: Examining c:\winddk\3790 directory tree for files
>> >> to compile.
>> >> BUILD:
c:\winddk\3790\bin\x86\prefast\examples\sources(8):
>> >> Unsupported TARGETTYPE value - LIB
>> >> ...
>> >> BUILD: Compiling c:\winddk\3790\src\set\pnpports
directory
>> >> ...
>> >> BUILD: Linking c:\winddk\3790\src\setup\pnpports
directory
>> >> BUILD: Done
>> >>
>> >> <In buildchk_wnet_x86.log>
>> >> ...
>> >> Linking c:\winddk\3790\src\setup\pnpports directory
>> >> ************
>> >> 'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
>> >> NTTEST= UMTEST= MAKEDLL=1 386=1'
>> >> Bad command or file name
>> >>
>> >> Thanks in advance for any further assistance.
>> >>
>> >> >-----Original Message-----
>> >> >I have a feeling that you didn't install the build
>> >> environment properly.
>> >> >There is a good chance that you might have unchecked
>> >> something in the custom
>> >> >install dialog. I would reinstall the kit and see if the
>> >> problem persists.
>> >> >
>> >> >--
>> >> >-Eliyas
>> >> >This posting is provided "AS IS" with no warranties, and
>> >> confers no rights.
>> >> >http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
>> >> >
>> >> >
>> >> >.
>> >> >
>> >
>> >
>> >.
>> >
>
>
>.
>

Re: WinDDK Fails to Build Examples by David

David
Wed Jul 02 19:31:33 CDT 2003

I think you haven't been reading the HTM files correctly. Go back and
reread them. They say use the Windows Server 2003 check build environment
and don't even mention the Windows 2000 environment. Many of the samples do
not work with 2000. Your earlier question did mention the prefast
directory, so I didn't make a mistake. As a general rule, I don't build the
entire DDK, as I find it too slow and not very useful. I do load the entire
DDK and those drivers or samples I want to examine I will copy to a work
directory and compile them.

"Just E" <just.e@eudoramail.com> wrote in message
news:457e01c340f1$c2900420$a601280a@phx.gbl...
> David,
>
> Thanks for that information. I'm installing from the
> May'03 MSDN DDK DVD and it contains no top-level README nor
> are there any README files within the DDK subdirectories
> (win2003 or XP). At the risk of taking more of your time,
> on what media and where do you find this README? I've read
> all the installation documentation that seems appropriate
> within the DDK directories yet it seems you have more
> pertinent information. I'm not sure what you mean
> regarding "modifying the app" and the IFS package (which I
> have no intention of installing at this time).
>
> On my media there does exist a "prefast_install.htm"
> document that mentions something similar (but different) to
> what you are mentioning:
>
> "To see what PREfast does and how it works, see the
> examples in the %PREFAST_ROOT%\examples\ directory. Go to
> that directory in a DDK build environment and type prefast
> build -cZ. Press ENTER, and then type prefast view. This
> reports 33 defects. (The errors from the compiler are
> intended.)"
>
> Since I am not in %PREFAST_ROOT% to build the examples,
> this does not seem appropriate.
>
> I'll attempt your suggestion regardless later tonight and
> update this thread when I have feedback to provide.
>
> Thanks again.
>
> >-----Original Message-----
> >The README says "prefast build -cZ". Rather simple. The
> latest DDK doesn't
> >mention modifying the app, but the XP SP1 IFSKit does.
> >
> >"Just E" <just.e@eudoramail.com> wrote in message
> >news:01af01c340cf$119c4dd0$a501280a@phx.gbl...
> >> Could you please be more specific? I've read both the
> >> relnote.htm and install.htm; both files indicate
> >> post-installation verification can be done by opening the
> >> appropriate command build environment command window and
> >> executing "build -cZ". I've not found any other command
> >> that is to be run prior to "build -cZ" listed as part of
> >> the install and verification procedure.
> >>
> >> From relnote.htm:
> >> "The result is that the correct set of drivers is always
> >> built when a command window is started for a given build
> >> environment, and the build -cZ command is issued from the
> >> DDK's base directory."
> >>
> >> From install.htm, Verifying DDK Installation, Item 2:
> >> "In the command window, type the command build -cZ. This
> >> command compiles and links the complete set of installed
> >> sources. This can take more than 30 minutes to complete,
> >> depending on which DDK components are installed and the
> >> system on which the build is being performed."
> >>
> >> So, could you please clarify what you believe I should be
> >> doing?
> >>
> >> E
> >>
> >>
> >> >-----Original Message-----
> >> >Read the readme. Wrong command.
> >> >
> >> >"Just E" <just.e@eudoramail.com> wrote in message
> >> >news:0b2001c340ac$3aadb100$a501280a@phx.gbl...
> >> >> Hello Eliyas,
> >> >>
> >> >> As per your suggestion I did a full uninstall, purged the
> >> >> install directory and re-installed the 2003 DDK
> preserving
> >> >> all default component selections for install (plus I
> added
> >> >> the "Illustrative Driver Examples"). The same errors
> >> >> occur. There are no product incompatibilities listed for
> >> >> the DDK, but I really have to wonder at this point.
> >> >> Following is some of the output from the build process--
> >> >> any further suggestions are greatly appreciated.
> >> >>
> >> >> Output:
> >> >> C:\WINDDK\3790>build -cZ
> >> >> ...
> >> >> BUILD: Examining c:\winddk\3790 directory tree for files
> >> >> to compile.
> >> >> BUILD:
> c:\winddk\3790\bin\x86\prefast\examples\sources(8):
> >> >> Unsupported TARGETTYPE value - LIB
> >> >> ...
> >> >> BUILD: Compiling c:\winddk\3790\src\set\pnpports
> directory
> >> >> ...
> >> >> BUILD: Linking c:\winddk\3790\src\setup\pnpports
> directory
> >> >> BUILD: Done
> >> >>
> >> >> <In buildchk_wnet_x86.log>
> >> >> ...
> >> >> Linking c:\winddk\3790\src\setup\pnpports directory
> >> >> ************
> >> >> 'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1
> >> >> NTTEST= UMTEST= MAKEDLL=1 386=1'
> >> >> Bad command or file name
> >> >>
> >> >> Thanks in advance for any further assistance.
> >> >>
> >> >> >-----Original Message-----
> >> >> >I have a feeling that you didn't install the build
> >> >> environment properly.
> >> >> >There is a good chance that you might have unchecked
> >> >> something in the custom
> >> >> >install dialog. I would reinstall the kit and see if the
> >> >> problem persists.
> >> >> >
> >> >> >--
> >> >> >-Eliyas
> >> >> >This posting is provided "AS IS" with no warranties, and
> >> >> confers no rights.
> >> >> >http://www.microsoft.com/whdc/hwdev/driver/kb-drv.mspx
> >> >> >
> >> >> >
> >> >> >.
> >> >> >
> >> >
> >> >
> >> >.
> >> >
> >
> >
> >.
> >



Re: WinDDK Fails to Build Examples by Pavel

Pavel
Thu Jul 03 11:51:08 CDT 2003

Pardon me for the stupid question but you mentioned in your first post that
your OS is win2k upgraded from ME.
Are there any path elements or environment left over from ME, that cause
"Bad command or file name" message?

--



Re: WinDDK Fails to Build Examples by Skywing

Skywing
Fri Jul 04 23:34:34 CDT 2003

"Pavel A." <pavel_a@geeklife.com> wrote in message
news:enTy$qXQDHA.2768@tk2msftngp13.phx.gbl...
> Pardon me for the stupid question but you mentioned in your first post
that
> your OS is win2k upgraded from ME.
> Are there any path elements or environment left over from ME, that cause
> "Bad command or file name" message?
>
> --
>
>

Yes, that's a good point. "Bad command or file name" is a command.com
error, and not a cmd.exe error... Check your COMSPEC environmental variable
setting, perhaps?



Re: WinDDK Fails to Build Examples by Just

Just
Tue Jul 08 09:33:40 CDT 2003

It seems both a command prompt and the Windows Server 2003
Checked Build Environment shell have the same setting for
COMSPEC:

> C:\WINDDK\3790>set COMSPEC
> ComSpec=C:\WINDOWS\system32\COMMAND.COM

> C:\>set COMSPEC
> ComSpec=C:\WINDOWS\system32\COMMAND.COM

Since this is the only Win2k system to which I have access
(upgraded from ME), would somebody care to comment whether
this is the expected value?

Once again, many thanks for the assistance.

>-----Original Message-----
>"Pavel A." <pavel_a@geeklife.com> wrote in message
>news:enTy$qXQDHA.2768@tk2msftngp13.phx.gbl...
>> Pardon me for the stupid question but you mentioned in
your first post
>that
>> your OS is win2k upgraded from ME.
>> Are there any path elements or environment left over
from ME, that cause
>> "Bad command or file name" message?
>>
>> --
>>
>>
>
>Yes, that's a good point. "Bad command or file name" is
a command.com
>error, and not a cmd.exe error... Check your COMSPEC
environmental variable
>setting, perhaps?
>
>
>.
>

RESOLUTION Re: WinDDK Fails to Build Examples by Just

Just
Thu Jul 10 19:09:22 CDT 2003

Many, many thanks to all who helped. Here's the
resolution:

As noted, the COMSPEC should be set to indicate the path
to cmd.exe, not command.com. The incorrect value of
command.com seems to be a vestige from the update process
from WindowsME to Win2k. Creating a new user does not
provide the correct COMSPEC, so it should be changed
manually for the user or system-wide, as suggested in a
previous post.

On my Win2K system, the correct value for COMSPEC seems to
be:

C:\WINDOWS\system32\CMD.EXE

With the correct value of COMSPEC all seems to build
well. I would not be surprised if other environment
variables are improperly set, but this change alone allows
me to build the examples.

Once again, many thanks to all!


>-----Original Message-----
>"Just E" <just.e@eudoramail.com> wrote in message
>news:105d01c3455d$ecf28e20$a301280a@phx.gbl...
>> It seems both a command prompt and the Windows Server
2003
>> Checked Build Environment shell have the same setting
for
>> COMSPEC:
>>
>> > C:\WINDDK\3790>set COMSPEC
>> > ComSpec=C:\WINDOWS\system32\COMMAND.COM
>>
>> > C:\>set COMSPEC
>> > ComSpec=C:\WINDOWS\system32\COMMAND.COM
>>
>> Since this is the only Win2k system to which I have
access
>> (upgraded from ME), would somebody care to comment
whether
>> this is the expected value?
>>
>> Once again, many thanks for the assistance.
>>
>
>Yes! This is indeed your problem.
>
>Change COMSPEC to "C:\WINDOWS\system32\CMD.EXE" and
everything should start
>working :)
>
>CMD.EXE is a native - fully 32-bit - program, while
COMMAND.COM is still
>16-bit and runs under NTVDM, with many of the limitations
of the standard
>DOS command interpreter (making it unsuitable for
advanced scripting
>features, such as the DDK build environment uses).
>
>You can do this from Control Panel > System under
environmental variables.
>
>
>.
>