Makefile errors in wdk project build

Hi all, the question is simple: during the building of my wdk driver on vs, those errors occurs:

Error 1 error U1087: cannot have : and :: dependents for same target   
  
in c:\winddk\7600.16385.0\bin\makefile.new  
  
!if $(USE_OBJECT_ROOT)  
  
{$(OBJ_PATH)\$O}.cxx{$(OBJ_PATH)\$O}.obj::  
 $(CXX_COMPILER_NAME) @\<\<$(CL_RSP)  
/Fo"$(OBJ_PATH)\$O/"  
/FC  
$(EX_CXX_COMPILER_FLAGS: =  
)  
$\<  
\<\<$(BUILD_NOKEEP)  
  
!endif \<--- here error   
  
Error 2 error MSB3073: The command "call C:\WINDDK\7600.16385.0\bin\setenv.bat C:\WINDDK\7600.16385.0 chk win7  
cd /d C:\Users\Numa\Documents\Visual Studio 2010\Projects\Minifilter1\Minifilter1  
build" exited with code 1.   
  
in Microsoft.MakeFile.Target  
  
<target name="Build" dependsontargets="PrepareForNMakeBuild;ResolveReferences;GetTargetPath" returns="$(NMakeManagedOutput)"><br> <vcmessage code="MSB8005" type="Warning" arguments="NMakeBuildCommandLine" condition="'$(NMakeBuildCommandLine)'==''"></vcmessage><br><exec command="$(NMakeBuildCommandLine)" condition="'$(NMakeBuildCommandLine)'!=''"></exec> &lt;-here error<br> </target>  
  

How can I solve it? Thanks

What are you trying to do exactly? Spawn a WDK build from VS? If so, you
might want to use DDKBUILD.BAT, available from either osronline.com or
hollistech.com.

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.it
Sent: Sunday, October 23, 2011 2:39 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Makefile errors in wdk project build

Hi all, the question is simple: during the building of my wdk driver on vs,
those errors occurs:

Error 1 error U1087: cannot have : and :: dependents for same target  
  
in c:\winddk\7600.16385.0\bin\makefile.new  
  
!if $(USE_OBJECT_ROOT)  
  
{$(OBJ_PATH)\$O}.cxx{$(OBJ_PATH)\$O}.obj::  
 $(CXX_COMPILER_NAME) @\<\<$(CL_RSP)  
/Fo"$(OBJ_PATH)\$O/"  
/FC  
$(EX_CXX_COMPILER_FLAGS: =  
)  
$\<  
\<\<$(BUILD_NOKEEP)  
  
!endif \<--- here error   
  
Error 2 error MSB3073: The command "call  
C:\WINDDK\7600.16385.0\bin\setenv.bat C:\WINDDK\7600.16385.0 chk win7  
cd /d C:\Users\Numa\Documents\Visual Studio  
2010\Projects\Minifilter1\Minifilter1  
build" exited with code 1.   
  
in Microsoft.MakeFile.Target  
  
<target name="Build">DependsOnTargets="PrepareForNMakeBuild;ResolveReferences;GetTargetPath"<br>Returns="$(NMakeManagedOutput)"&gt;<br> <vcmessage code="MSB8005" type="Warning">Arguments="NMakeBuildCommandLine"<br>Condition="'$(NMakeBuildCommandLine)'==''"/&gt;<br><exec command="$(NMakeBuildCommandLine)">Condition="'$(NMakeBuildCommandLine)'!=''"/&gt; &lt;-here error<br> </exec></vcmessage></target>  
  

How can I solve it? Thanks


NTFSD is sponsored by OSR

For our schedule of debugging and file system 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

Hello and thanks for your reply.

When I use ddkBuild from hollistech, the same (probably) error occurs, but in another form:

Error 1 error MSB3073: The command “ddkbuild -WNET checked .” exited with code 9009. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.MakeFile.Targets

> When I use ddkBuild from hollistech, the same (probably) error occurs,

but in another form:

I usually debug these problems by running ddkbuild from the command line,
then plugging exactly that command into MSDEV…

Hello rod, thanks for your reply! When I use the build evironment, I get this error out (the same on vs)

http://i.imgur.com/CQsNe.jpg

Big problem, how can I solve it?

I’d avoid using precompiled headers at this stage…

Big problem, how can I solve it?

So how can I build my ddk project?

Go to Windows Start, select the WDK, select build environments, choose one, with or without egg roll. Navigate in the command line to your project directory, enter “bld -Zc” and press enter.

Or download DDKBUILD, unzip it, enter a command line, navigate to your project and run “ddkbuild - [checked|free] [path to source|.] [options]”

Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net

On Oct 24, 2011, at 10:02 AM, xxxxx@yahoo.it wrote:

> So how can I build my ddk project?
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system 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

Hello, thanks for your reply!

Yes, it works, no more errors. But the out is weird: built in 0 sec?

No .sys in the project directory by the way!

Take a look at the log file (build(chk|fre)(os)(arch).log).

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.it
Sent: Monday, October 24, 2011 4:57 PM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Makefile errors in wdk project build

Hello, thanks for your reply!

Yes, it works, no more errors. But the out is weird: built in 0 sec?

No .sys in the project directory by the way!


NTFSD is sponsored by OSR

For our schedule of debugging and file system 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

Hello mm, thanks for your reply

the command just gives me as output a text file with this string:

BUILD: Computing Include file dependencies:

What was the exact command line you typed (to run the build)?

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.it
Sent: Monday, October 24, 2011 5:55 PM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Makefile errors in wdk project build

Hello mm, thanks for your reply

the command just gives me as output a text file with this string:

BUILD: Computing Include file dependencies:


NTFSD is sponsored by OSR

For our schedule of debugging and file system 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

build free win7 x86 .log

it just creates a file called buildfre_win7_x86.txt with:

“BUILD: Computing Include file dependencies:”

Use “build -c”


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> build free win7 x86 .log
>
> it just creates a file called buildfre_win7_x86.txt with:
>
> “BUILD: Computing Include file dependencies:”
>

Hey Maxim, thanks for the reply.

Same stuff (see above), it just creates this strange text file, no .sys in there.

(I navigate into my project folder the build -c right?)

Yes.

How about trying ‘build -ceZ -why.’

Also, just to be certain, you’re project directory contains EITHER a ‘dirs’
file or a SOURCES file (and possibly a Makefile) ?

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.it
Sent: Tuesday, October 25, 2011 3:49 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Makefile errors in wdk project build

Hey Maxim, thanks for the reply.

Same stuff (see above), it just creates this strange text file, no .sys in
there.

(I navigate into my project folder the build -c right?)


NTFSD is sponsored by OSR

For our schedule of debugging and file system 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

Hello mm,

well running build -ceZ -why gives me 2 errors in project directory

NMAKE: fatal error U1073: don’t know how to make C:…\ stdafx.obj (this is not included in the project)

nmake.exe /nologo BUILDMSG=Stop. -i /nologo /f c:\winddk.…\makefile.def … MAKEDIR_RELATIVE_TO_BASEDIR = failed - rc = 2

In my project dir there is a source file (no makefile is present, cos I’ve done a visualddk project)

Is that ‘source’ or ‘sources?’

I’m not sure what those error messages mean exactly, but it sounds like
you’re trying to do stuff with paths that you can’t.

How about posting the contents of your sources file?

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@yahoo.it
Sent: Tuesday, October 25, 2011 5:08 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] Makefile errors in wdk project build

Hello mm,

well running build -ceZ -why gives me 2 errors in project directory

NMAKE: fatal error U1073: don’t know how to make C:…\ stdafx.obj (this
is not included in the project)

nmake.exe /nologo BUILDMSG=Stop. -i /nologo /f c:\winddk.…\makefile.def
… MAKEDIR_RELATIVE_TO_BASEDIR = failed - rc = 2

In my project dir there is a source file (no makefile is present, cos I’ve
done a visualddk project)


NTFSD is sponsored by OSR

For our schedule of debugging and file system 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

The original source is:

http://pastebin.com/xC7LHYPu

but I obtain the same error with a simple:

http://pastebin.com/Lwr2uTiF

Thanks, Numa

Oh sorry, for the first source, I’ve, in the same dir, a user mode part and 2 headers for the filter.

The second one is “alone”