[distcc] invalid compiler path error

nac nac at measure-zero.jp
Sun Oct 26 07:54:00 GMT 2008

Hi, All.

I have made distcc and cross compilation between AMD
Geode(GentooLinux, i586-pc-linux-gnu) and
Intel Mac(Leopard). And I've met invalid compiler path error.

using software version:
gcc 4.1.2
distcc 2.18.3

gcc 4.1.2 (for cross compilation)
distcc 2.18.5 (Apple made)

I made sure that cross compilation works with small hello.c
program. And the path of the compiler for cross compilation
is /opt/cross-linux/bin.

I started distccd with following option;

$ echo $PATH
$ export DISTCCD_PATH=$PATH ; distccd --daemon --pid-file ~/distcc.pid --verbose

so then, linux side(small CPU), I run distcc client and got error message:

$ distcc i586-pc-linux-gnu-gcc -o hello -c hello.c
distcc[18841] (dcc_r_token_int) ERROR: protocol derailment: expected token "DONE"
distcc[18841] (dcc_explain_mismatch) ERROR: error context: "INDR00000002DONE00000001"
distcc[18841] Warning: failed to distribute hello.c to, running locally instead

Additionally, I run distcc client following absolute path then I
also got error;

$ distcc /opt/cross-linux/bin/i586-pc-linux-gnu-gcc -o hello -c hello.c
distcc[18877] (dcc_r_token_int) ERROR: protocol derailment: expected token "DONE"
distcc[18877] (dcc_explain_mismatch) ERROR: error context: "INDR00000002DONE00000001"
distcc[18877] Warning: failed to distribute hello.c to, running locally instead

So, it might be easy mistake or FAQ though, anyone has some ideas?
I really appreciate your help.
Thank you.


----- distccd log ----

distccd[1523] (main) chdir to /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-/
distccd[1523] (dcc_setup_daemon_path) daemon's PATH is /opt/cross-linux/bin:/opt/local/bin:/opt/local/sbin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
distccd[1523] (dcc_listen_by_addr) listening on
distccd[1523] (dcc_standalone_server) 2 CPUs online on this server
distccd[1523] (dcc_standalone_server) allowing up to 4 active jobs
distccd[1523] (dcc_ignore_sighup) ignoring SIGHUP
distccd[1524] (dcc_detach) setsid to session 1524
distccd[1524] (dcc_log_daemon_started) preforking daemon started (2.18.5-Apple.1 powerpc-apple-darwin9.0, built Sep 23 2007 19:10:52)
distccd[1524] (dcc_preforking_parent) up to 1 children
distccd[1524] (dcc_preforking_parent) up to 2 children
distccd[1524] (dcc_preforking_parent) up to 3 children
distccd[1524] (dcc_preforking_parent) up to 4 children
distccd[1525] (dcc_check_client) connection from
distccd[1525] (dcc_r_token_int) got DIST00000001
distccd[1525] (dcc_r_token_int) got ARGC00000005
distccd[1525] (dcc_r_argv) reading 5 arguments from job submission
distccd[1525] (dcc_r_token_int) got ARGV0000002a
distccd[1525] (dcc_r_argv) argv[0] = "/opt/cross-linux/bin/i586-pc-linux-gnu-gcc"
distccd[1525] (dcc_r_token_int) got ARGV00000002
distccd[1525] (dcc_r_argv) argv[1] = "-o"
distccd[1525] (dcc_r_token_int) got ARGV00000005
distccd[1525] (dcc_r_argv) argv[2] = "hello"
distccd[1525] (dcc_r_token_int) got ARGV00000002
distccd[1525] (dcc_r_argv) argv[3] = "-c"
distccd[1525] (dcc_r_token_int) got ARGV00000007
distccd[1525] (dcc_r_argv) argv[4] = "hello.c"
distccd[1525] (dcc_r_argv) got arguments: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc -o hello -c hello.c
distccd[1525] (dcc_scan_args) scanning arguments: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc -o hello -c hello.c
distccd[1525] (dcc_scan_args) found object/output file "hello"
distccd[1525] (dcc_scan_args) found input file "hello.c"
distccd[1525] compile from hello.c to hello
distccd[1525] (dcc_run_job) output file hello
distccd[1525] (dcc_input_tmpnam) input file hello.c
distccd[1525] (dcc_r_token_int) got DOTI00004687
distccd[1525] (dcc_r_file) received 18055 bytes to file /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_66b820b6.i
distccd[1525] (dcc_r_file_timed) 18055 bytes received in 0.001783s, rate 9889kB/s
distccd[1525] (dcc_set_input) changed input from "hello.c" to "/var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_66b820b6.i"
distccd[1525] (dcc_set_input) command after: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc -o hello -c /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_66b820b6.i
distccd[1525] (dcc_set_output) changed output from "hello" to "/var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_662220b6.o"
distccd[1525] (dcc_set_output) command after: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc -o /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_662220b6.o -c /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_66b820b6.i
distccd[1525] (dcc_spawn_child) forking to execute: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc -o /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_662220b6.o -c /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distccd_66b820b6.i
distccd[1525] (dcc_is_allowed_compiler) allowed compiler path: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc
distccd[1525] ERROR: Couldn't find matching compiler for '/opt/cross-linux/bin/i586-pc-linux-gnu-gcc'
distccd[1525] (dcc_spawn_child) ERROR: attempt to use unknown compiler aborted: /opt/cross-linux/bin/i586-pc-linux-gnu-gcc
distccd[1525] (dcc_x_token_int) send INDR00000002
distccd[1525] (dcc_x_token_int) send DONE00000001
distccd[1525] (dcc_x_token_int) send SINF00000013
distccd[1525] ERROR: Couldn't find matching compiler for '/opt/cross-linux/bin/i586-pc-linux-gnu-gcc'
distccd[1525] (dcc_x_token_int) send CVER00000000
distccd[1525] (dcc_x_token_int) send STAT00006400
distccd[1525] (dcc_x_file) send 327 byte file /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distcc_4c8f20b5.stderr with token SERR
distccd[1525] (dcc_x_token_int) send SERR00000147
distccd[1525] (dcc_x_file) send 0 byte file /var/folders/0V/0Vtcnx3UHMe6irnCeT4-9E+++TI/-Tmp-//distcc_4de520b5.stdout with token SOUT
distccd[1525] (dcc_x_token_int) send SOUT00000000
distccd[1525] (dcc_x_token_int) send DOTO00000000
distccd[1525] /opt/cross-linux/bin/i586-pc-linux-gnu-gcc hello.c on localhost failed with exit code 100
distccd[1525] job complete
distccd[1525] (dcc_cleanup_tempfiles) deleted 4 temporary files

More information about the distcc mailing list