GwenNelson / distcc

Automatically exported from code.google.com/p/distcc
GNU General Public License v2.0
0 stars 0 forks source link

Failed to send includes to include server using distcc-pump mode #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am running distcc 3.1 using "pump mode". I am running on a Sun 2.10 with
Solaris. The compiler option is gcc version 3.4.4. I am currently running
the distcc daemon on 3 servers, all Sun-Solaris. I am trying to compile a C
file by having both the preprocessing and compilation done remotely. Every
time I attempt this, I get the following message:

__________Using distcc-pump from /home/tholly/solaris_local/bin
__________Found        3 available distcc servers
WARNING include server: Preprocessing locally. Include server not covering:
Bailing out because include server spent more than 3.8s user time handling
request for translation unit 'cfilename.c
__________Shutting down distcc-pump include server

I have verbose set to on for both distcc and distccd. Here is what I see
pertaining to the issue in the log files:

distcc.log:

distcc[28211] (dcc_r_argv) reading 0 arguments from job submission
distcc[28211] (dcc_r_argv) got arguments: 
distcc[28211] Warning: include server gave up analyzing
distcc[28211] (dcc_build_somewhere) Warning: failed to get includes from
include server, preprocessing locally

distccd.log:

distccd[26802] (dcc_readx) ERROR: unexpected eof on fd5
distccd[26802] (dcc_r_token_int) ERROR: read failed while waiting for token
"DIST"
distccd[26802] (dcc_r_request_header) ERROR: client did not provide distcc
magic fairy dust

This is what happens every time no matter what the C file. It is failing to
send the includes to the include server and resorts to preprocessing
locally, but I do not know how to fix it.

Original issue reported on code.google.com by holl...@gmail.com on 11 Feb 2009 at 3:14

GoogleCodeExporter commented 9 years ago
I should add that I am in an environment with a NFS so all the header files are
common and available to any of the machines.

Original comment by holl...@gmail.com on 11 Feb 2009 at 3:21

GoogleCodeExporter commented 9 years ago
Is your code using Boost headers?
This warning

   WARNING include server: Preprocessing locally. Include server not covering:
   Bailing out because include server spent more than 3.8s user time handling
   request for translation unit 'cfilename.c

could be due to a known issue 
<http://code.google.com/p/distcc/issues/detail?id=16>.

Does this warning occur even for really simple code, e.g. an empty file, or a 
file
just containing "#include <stdio.h>"?
Try something like this

   echo "#include <stdio.h>" > foo.c
   pump distcc -c foo.c

and see if you still get the same message.

P.S. The distccd.log messages come from the lsdistcc call in the pump script; 
they
can safely be ignored.

Original comment by fergus.h...@gmail.com on 11 Feb 2009 at 5:44

GoogleCodeExporter commented 9 years ago
Not using Boost headers, just standard .h files in a C source library.

Original comment by holl...@gmail.com on 11 Feb 2009 at 9:36

GoogleCodeExporter commented 9 years ago
Does this warning occur even for really simple code, e.g. an empty file, or a 
file
just containing "#include <stdio.h>"?
What happens if you try something like this?

   echo "#include <stdio.h>" > foo.c
   pump distcc -c foo.c

Original comment by fergus.h...@gmail.com on 11 Feb 2009 at 9:51

GoogleCodeExporter commented 9 years ago
Running the tool on an empty file or foo.c as you mentioned works fine, it's 
only
when my own header files are included that I get the message: 

WARNING include server: Preprocessing locally. Include server not covering:
   Bailing out because include server spent more than 3.8s user time handling
   request for translation unit 'cfilename.c'

Original comment by holl...@gmail.com on 11 Feb 2009 at 11:40

GoogleCodeExporter commented 9 years ago
Sounds like this is probably another instance of issue 16.

You could try increasing USER_TIME_QUOTA in include_server/basics.py.

Original comment by fergus.h...@gmail.com on 12 Feb 2009 at 12:34

GoogleCodeExporter commented 9 years ago
Increasing USER_TIME_QUOTA from 3.8 to 20 seems to give the include server the 
time
it needs and distcc gcc runs successfully. I guess I'll play around with it 
more to
find out the minimum time it needs?

Also, does pump-distcc mode use the same server for preprocessing and compiling 
each
time it runs? Or does it do each step on a different server and maybe they're 
the
same out of coincidence in the randomization?

Original comment by holl...@gmail.com on 13 Feb 2009 at 1:58

GoogleCodeExporter commented 9 years ago
With pump mode, preprocessing and compilation are done together, as a single 
step.
Gcc does that more efficiently if you do it as a single step - it doesn't need 
to
produce the intermediate preprocessed output file.

Original comment by fergus.h...@gmail.com on 13 Feb 2009 at 2:27

GoogleCodeExporter commented 9 years ago
So pump mode knows this and doesn't send the output file to the remote server?

Original comment by holl...@gmail.com on 13 Feb 2009 at 3:47

GoogleCodeExporter commented 9 years ago
Yes, in pump mode distcc sends the source file and header files to the remote 
server, 
rather than preprocessing locally and sending the preprocessed output file to 
the
remote server.

Original comment by fergus.h...@gmail.com on 13 Feb 2009 at 4:34

GoogleCodeExporter commented 9 years ago
Same thing being run....now I am failing to compile remotely everytime and I 
get this
message: 

__________Using distcc-pump from /home/tholly/solaris_local/bin
__________Found        3 available distcc servers
__________Warning:        1 pump-mode compilation(s) failed on server, but 
succeeded
locally.
__________Distcc-pump was demoted to plain mode.  See the Distcc Discrepancy 
Symptoms
section in the include_server(1) man page.
__________Shutting down distcc-pump include server

Original comment by holl...@gmail.com on 23 Feb 2009 at 4:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
> 1 pump-mode compilation(s) failed on server, but succeeded locally.

In pump mode, distcc first tries compiling on the remote server.
If that fails, it retries the compilation locally.
If the local compilation succeeds, then it gives you the error message that you 
saw,
and for subsequent compilations (until you next invoke "pump" or "pump 
--startup"),
it will not attempt remote compilation.

You need to look at the other error messages to figure out why the compilation 
failed
remotely, but succeeded locally.

Original comment by fergus.h...@gmail.com on 23 Feb 2009 at 4:54

GoogleCodeExporter commented 9 years ago
Off topic question...have you seen or heard of distcc working with the Diab 
compiler
called dcc?

Original comment by holl...@gmail.com on 23 Feb 2009 at 6:56

GoogleCodeExporter commented 9 years ago
Would it be possible for distcc to run other tools remotely like lint for 
example, or
an assember without a -c or -S option? I see that if a compiler does not have 
one of
these two options, it is automatically run on localhost.

Original comment by holl...@gmail.com on 9 Mar 2009 at 3:22

GoogleCodeExporter commented 9 years ago
It would be possible only if there is a way to cheaply precompute the set of 
files
that the tool will read (and the set it will write).  In the case of lint, that
should be the same as for the compiler, so it can be computed the same way.  In 
the
case of an assembler, it should typically be straight-forward, although it 
depends on
whether the assembly language supports anything similar to #include.

In addition, the tool would run in a different directory on a different host, 
so if
it embeds the hostname and/or directory in its outputs, that could cause some
problems.  But such problems should not be much of an issue, I expect, for lint 
or
for an assembler.

It would be great to restructure the code which parses the command line so that 
it we
can more easily plug in different parsers for different commands.

P.S. This question is really a bit off-topic for this bug report.
It's better to ask questions like these on the distcc mailing list
rather than via the distcc issues list.

Original comment by fergus.h...@gmail.com on 10 Mar 2009 at 1:19

GoogleCodeExporter commented 9 years ago
Will do. Thanks.

Original comment by holl...@gmail.com on 10 Mar 2009 at 12:26

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
system:
cygwin+ads

_______Using distcc-pump from /usr/local/bin
TRACE: Starting socketserver /tmp/distcc-pump.N13504/socket
__________Found 2 available distcc servers

WARNING include server: Preprocessing locally. Include server not covering: 
Could not 
locate name of translation unit: ['ARM926EJ-S', 
'/interwork/noropi/norwpi/noswst', 
'softvfp', '../../modem/1x/cp/src/otasp.c']. for translation unit 'unknown 
translation unit'
distcc[11132] Warning: include server gave up analyzing
distcc[11132] (dcc_build_somewhere) Warning: failed to get includes from 
include 
server, preprocessing locally
OBJECT SXNAAHZ/autoconfigdiag.o

why?how to fix this issue?

thanks a lot!

jason CNH

Original comment by 2008jaso...@gmail.com on 17 May 2009 at 2:27