Open GoogleCodeExporter opened 9 years ago
I think I found some kind of a "bug"
If we just pass "-c" to the compiler, then, somehow, preprocessing is not
distrubuted and pump mode fails.
A small test case:(-c passed)
/path/to/workspace_venkrao/mainline_ccache_evaluation_scm_vkr/apps/distcc/bin/pu
mp
/path/to/workspace_venkrao/mainline_ccache_evaluation_scm_vkr/apps/distcc/bin/di
stcc
/home/venkrao/mainline_ccache_evaluation_scm_vkr/mips64-octeon2-linux-gnu-g++
-c foo.C -o foo.o
__________Using distcc-pump from
/path/to/workspace_venkrao/mainline_ccache_evaluation_scm_vkr/apps/distcc/bin
__________Found 1 available distcc servers
WARNING include server: Preprocessing locally. Include server not covering:
Could not locate name of translation unit: []. for translation unit 'unknown
translation unit'
distcc[10123] (dcc_talk_to_include_server) Warning: include server gave up
analyzing
distcc[10123] (dcc_build_somewhere) Warning: failed to get includes from
include server, preprocessing locally
__________Shutting down distcc-pump include server
====
Pass: (-c not passed)
[venkrao@bhlinb20 itrBuild]$
/var/fpwork/workspace_venkrao/mainline_ccache_evaluation_scm_vkr/apps/distcc/bin
/pump
/var/fpwork/workspace_venkrao/mainline_ccache_evaluation_scm_vkr/apps/distcc/bin
/distcc
/home/venkrao/mainline_ccache_evaluation_scm_vkr/mips64-octeon2-linux-gnu-g++
foo.C -o foo.o
__________Using distcc-pump from
/var/fpwork/workspace_venkrao/mainline_ccache_evaluation_scm_vkr/apps/distcc/bin
__________Found 1 available distcc servers
__________Shutting down distcc-pump include server
=====
I then tweaked the script :
<distcc_installation>lib64/python2.4/site-packages/include_server/parse_command.
py
to include "c"
on line 186 'c': lambda ps, arg: None,
but the results are same.
Could you take check this please?
Original comment by VENKATAK...@gmail.com
on 5 Apr 2014 at 6:14
Did I do something really stupid? Please check the sample test case.
Original comment by VENKATAK...@gmail.com
on 9 Apr 2014 at 5:34
You wrote:
error executing
'['/home/venkrao/mainline_ccache_evaluation_scm_vkr/mips64-octeon2-linux-gnu-g++
', '-x', 'c++', '-v', '-c', '/dev/null', '-o', '/dev/null']': [Errno 8] Exec
format error. for translation unit 'unknown translation unit'
Is that file
/home/venkrao/mainline_ccache_evaluation_scm_vkr/mips64-octeon2-linux-gnu-g++
marked as executable and does it start with "#!/bin/sh "?
If not, that could be the problem.
Original comment by fer...@google.com
on 9 Apr 2014 at 5:46
It is an executable file and shebang contains a '#!/bin/sh"
but sorry, that was so stupid of me.
The problem was I did not have the ,cpp,lzo in the
DISTCC_HOSTS environment variables. So, pump mode kept failing.
Original comment by VENKATAK...@gmail.com
on 10 Apr 2014 at 6:45
Original issue reported on code.google.com by
VENKATAK...@gmail.com
on 5 Apr 2014 at 5:37