Changes

Jump to: navigation, search

Talk:Distcc With MSVC

2,631 bytes added, 14:11, 21 September 2007
Using filename containing slashes
[[User:Themystic|Themystic]] 21:11, 6 September 2007 (EDT)
 
Thanks a lot, I'll mail you later because I can't use mail service rightnow, I will mail to you later!
== 1, how to make several threads working together?==
[[User:Themystic|Themystic]] 21:08, 6 September 2007 (EDT)
 
 
== thanks for your reply: ==
 
 
I wonder that what's your method using the distcc-vc? because this question I mentioned here should be meet when somebody use distcc tools to compile the vc projects, but why there aren't anything about it? ^-^
 
I invoke the gnu make at the cygwin bash:$ make -j4 -fgnumakefile.mk all
 
cl option is: /nologo /MLd /w /W0 /GX /Z7 /Od /I /FR"./debug/\" /Fp"./debug/Lib-vrp.pch" /YX /Fd"./debug/\"
/FD /GZ /c
 
the error is :
fatal error C1033: cannot open program database 'directoryname\vc60.idb'
C:/Cygwin/tmp/distccd_de56c7fd.c(0) : fatal error C1033: cannot open program dat
abase 'c:\cygwin\tmp\vc60.idb'
distcc[3724] ERROR: compile filename.c on 1.1.1.1 failed with exit code 2
make: *** [debug/filename.obj] Error 2
distccd_8b6cc7fd.c
C:/Cygwin/tmp/distccd_8b6cc7fd.c(0) : fatal error C1033: cannot open program dat
abase 'c:\cygwin\tmp\vc60.idb'
distcc[7040] ERROR: compile filename.c on 1.1.1.1 failed with exit code 2
make: *** [debug/filename1.obj] Error 2
 
the read operation of the idb file is performed by cl.exe (maybe, because I don't access it (in my makefile, don't mention the file) but the cl.exe report the error), I thought maybe the cl.exe will accessed the file whenever compile a file?
== 2, how to dealwith the pdb file? Can the distcc maintain the debug informations when distributing the compile task? ==
[[User:Themystic|Themystic]] 21:04, 6 September 2007 (EDT)
 
Thanks, I tried just a few miutes before. By using of vc6's IDE , I can set the debug information's format(microsoft or coff), and can determinate whether the pdb file is used to hold debug-information, but the generated exe can't be debugged and the IDE says: the exe contains no debug informations.
 
how you test the distcc-vc? can you debug the exe file? what's the process? ^_^
 
== Specifying language to cl.exe ==
 
The Jan 4, 2007 news says:
<blockquote>
Both C/C++ preprocessed file ends in .i. cl has no way of knowning if it's a C/C++ preprocessed file.
</blockquote>
You can solve this problem by specifying the source file type to Visual C++ with /TP (for C++) or /TC (for C). You can also use /tp or /tc for specifying the language for each individual file. Documentation is in MSDN[http://msdn2.microsoft.com/en-us/library/032xwy55(VS.80).aspx].
 
== Using filename containing slashes ==
 
The Jan 4, 2007 news mentions that
<blockquote>
cl /cygdrive/c/home/temp/hello.c
</blockquote>
doesn't work, because the path is interpreted as an option. You can solve that by passing the filename (with path) to cl.exe in quotes. If your shell interprets quotes you may need to escape them. For example, from bash you could use
<pre>
cl \"/cygdrive/c/home/temp/hello.c\"
</pre>
1
edit

Navigation menu