[distcc] slight issue with icc and distcc

Martin Pool mbp at samba.org
Thu Nov 6 16:59:01 GMT 2003


On  5 Nov 2003, "Ahlborn, James T (MED)" <James.Ahlborn at med.ge.com> wrote:
> Hi,
> It took me a long time to figure out how to get icc (7.0) to work with
> distcc (2.11.2), and it turned out to be a rather silly problem.  I
> would get errors on some remote clients that looked like:
> 
> icc: error: unable to open 'iccSDFAgas'
> 
> The actual problem is that icc likes to create some random little temp
> files in the directory in which the build is running (and although icc
> *claims* that it uses the TMP environment variable, it seemed to ignore
> it for these temp files).  since the daemon is currently run in '/', icc
> is unable to create these temp files (depending on the permission of
> that dir on different boxes).  it seems to me that this problem can be
> fixed in one of two ways (well, intel could fix their compiler...):

I think you should file a bug with Intel.

> 1. come up with various scripts that redirect to the actual intel
> compiler, and along the way change the current dir if we are in the '/'
> dir.  this seems like too much work, for what seems to me to be a simple
> problem.
> 
> 2. add on option to distccd for which dir to run the compiler in (or
> just use the TMPDIR).

This would fix your problem.  I don't know if it is very generally
desirable; it's a good standard behaviour for daemons to run from /.   

Rather than adding an option you should probably just snip out the
chdir(/) line.

--
Martin
-------------- 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/20031107/d7198e7f/attachment.bin


More information about the distcc mailing list