[distcc] Re: distcc and cl.exe (MS Visual compiler)

mbp at sourcefrog.net mbp at sourcefrog.net
Mon Jun 14 22:09:39 GMT 2004

On 14 Jun 2004, Frederic Paolucci <fpaolucci at call.fr> wrote:
> tmcc.exe is based on gcc, than I think it could work with low efforts...
> In order to investigate my problem, I created a very simple file named
> file.c (attached to this message) that contains only a main() function.
> Then I wrote
>    tmcc.exe -c file.c -E > precompiled.c
>    tmcc.exe -c precompiled.c -o file.o
> It generated a file file.o that seems OK ; I attached precompiled.c to this
> message.
> Then, preprocessing and compiling separately by hand seem to work.

OK, that's good.
> I did another test to understand what happens ; I used 2 computers
> (localhost and RemoteCompture)...
> I set DISTCC_SAVE_TEMPS=1 and DISTCC_HOSTS=RemoteComputer (I did not set
> localhost to "force" distcc to send file through the network). In order to
> see what parameter were passed to tmcc, I created a file named tmcc.bat in
> the same folder as tmcc.exe (both on my local and remote computers) that
> contains:
>    @echo %1 %2 %3 %4 %5 %6 %7 %8 %9
>    tmcc %1 %2 %3 %4 %5 %6 %7 %8 %9

This echos the tmcc command, which is what's breaking it.

If you turn on DISTCC_VERBOSE=1 then you will get a more useful trace
and you won't need the batch file.

> Then I wrote:
>    distcc tmcc.bat -c file.c -o file.o
> Then it returned:
> Catastrophic error: could not open source file "\tmp\distccd_d31d7104.i"
> 1 catastrophic error detected in the compilation of
> "\tmp\distccd_d31d7104.i".
> Compilation terminated.
> tmcc: tmcfe command failed
> -c /tmp/distccd_d31d7104.i -o /tmp/distccd_d8cd7104.o
> C:\cygwin>tmcc -c /tmp/distccd_d31d7104.i -o /tmp/distccd_d8cd7104.o
> -c file.c -o file.o
> e:\videotel\root>tmcc -c file.c -o file.o
> In addition it created a file /tmp/distcc_6c937102.i (attached to this
> message).
> Is it normal that /tmp/distccd_d31d7104.i and distcc_6c937102.i don't have
> the same filename?

Yes, that's fine.

Maybe it's a problem with path names?  What if you set TMPDIR=/tmp/
before running it?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/distcc/attachments/20040615/f0f4fc14/attachment.bin

More information about the distcc mailing list