- Edited
OK let's see where we are now.
root@bela:~/Bela# grep distcc Makefile
CLANG_PATH=distcc-clang
root@bela:~/Bela#
reference command line build on bela works (without specifying architecture):
root@bela:~/Bela/resources/network# distcc-clang -v -c udp-client.c
clang version 3.9.1-9 (tags/RELEASE_391/rc2)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/arm-linux-gnueabihf/6
Found candidate GCC installation: /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0
Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/6
Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/6.3.0
Selected GCC installation: /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0
Candidate multilib: .;@m32
Selected multilib: .;@m32
"/usr/lib/llvm-3.9/bin/clang" -cc1 -triple armv7-unknown-linux-gnueabihf -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name udp-client.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -v -dwarf-column-info -debugger-tuning=gdb -resource-dir /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include -internal-externc-isystem /usr/include/arm-linux-gnueabihf -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /root/Bela/resources/network -ferror-limit 19 -fmessage-length 80 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o - -x c udp-client.c
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target armv7l-unknown-linux-gnueabihf
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include
/usr/include/arm-linux-gnueabihf
/usr/include
End of search list.
clang version 3.9.1-19ubuntu1 (tags/RELEASE_391/rc2)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
"/usr/lib/llvm-3.9/bin/clang" -cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name distccd_ba396596.i -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -v -dwarf-column-info -debugger-tuning=gdb -coverage-file /tmp/distccd_ba666596.o -resource-dir /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1 -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 0 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/distccd_ba666596.o -x cpp-output /tmp/distccd_ba396596.i
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target x86_64-pc-linux-gnu
#include "..." search starts here:
End of search list.
root@bela:~/Bela/resources/network#
reference build works with specifying architecture:
root@bela:~/Bela/resources/network# distcc-clang -c -v ~/Bela/resources/network/udp-client.c -march=armv7-a
clang version 3.9.1-9 (tags/RELEASE_391/rc2)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/arm-linux-gnueabihf/6
Found candidate GCC installation: /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0
Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/6
Found candidate GCC installation: /usr/lib/gcc/arm-linux-gnueabihf/6.3.0
Selected GCC installation: /usr/bin/../lib/gcc/arm-linux-gnueabihf/6.3.0
Candidate multilib: .;@m32
Selected multilib: .;@m32
"/usr/lib/llvm-3.9/bin/clang" -cc1 -triple armv7-unknown-linux-gnueabihf -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name udp-client.c -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -v -dwarf-column-info -debugger-tuning=gdb -resource-dir /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1 -internal-isystem /usr/local/include -internal-isystem /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include -internal-externc-isystem /usr/include/arm-linux-gnueabihf -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdebug-compilation-dir /root/Bela/resources/network -ferror-limit 19 -fmessage-length 80 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o - -x c /root/Bela/resources/network/udp-client.c
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target armv7l-unknown-linux-gnueabihf
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/lib/llvm-3.9/bin/../lib/clang/3.9.1/include
/usr/include/arm-linux-gnueabihf
/usr/include
End of search list.
clang version 3.9.1-19ubuntu1 (tags/RELEASE_391/rc2)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
InstalledDir: /usr/bin
"/usr/lib/llvm-3.9/bin/clang" -cc1 -triple armv7-unknown-linux-gnueabihf -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name distccd_ff4c663b.i -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard -v -dwarf-column-info -debugger-tuning=gdb -coverage-file /tmp/distccd_fcec663b.o -resource-dir /usr/lib/llvm-3.9/bin/../lib/clang/3.9.1 -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 0 -fallow-half-arguments-and-returns -fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option -o /tmp/distccd_fcec663b.o -x cpp-output /tmp/distccd_ff4c663b.i
clang -cc1 version 3.9.1 based upon LLVM 3.9.1 default target x86_64-pc-linux-gnu
#include "..." search starts here:
End of search list.
root@bela:~/Bela/resources/network#
Here's the distcclog from the Ubuntu machine:
distccd[14752] (dcc_check_client) connection from 192.168.7.2:59770
distccd[14752] (check_address_inet) match client 0x207a8c0, value 0x207a8c0, mask 0xffffffff
distccd[14752] (dcc_r_token_int) got DIST00000001
distccd[14752] (dcc_r_token_int) got ARGC00000006
distccd[14752] (dcc_r_argv) reading 6 arguments from job submission
distccd[14752] (dcc_r_token_int) got ARGV0000000d
distccd[14752] (dcc_r_token_string) got 'clang-3.9-arm'
distccd[14752] (dcc_r_argv) argv[0] = "clang-3.9-arm"
distccd[14752] (dcc_r_token_int) got ARGV00000002
distccd[14752] (dcc_r_token_string) got '-v'
distccd[14752] (dcc_r_argv) argv[1] = "-v"
distccd[14752] (dcc_r_token_int) got ARGV00000002
distccd[14752] (dcc_r_token_string) got '-c'
distccd[14752] (dcc_r_argv) argv[2] = "-c"
distccd[14752] (dcc_r_token_int) got ARGV0000000c
distccd[14752] (dcc_r_token_string) got 'udp-client.c'
distccd[14752] (dcc_r_argv) argv[3] = "udp-client.c"
distccd[14752] (dcc_r_token_int) got ARGV00000002
distccd[14752] (dcc_r_token_string) got '-o'
distccd[14752] (dcc_r_argv) argv[4] = "-o"
distccd[14752] (dcc_r_token_int) got ARGV0000000c
distccd[14752] (dcc_r_token_string) got 'udp-client.o'
distccd[14752] (dcc_r_argv) argv[5] = "udp-client.o"
distccd[14752] (dcc_r_argv) got arguments: clang-3.9-arm -v -c udp-client.c -o udp-client.o
distccd[14752] (dcc_scan_args) scanning arguments: clang-3.9-arm -v -c udp-client.c -o udp-client.o
distccd[14752] (dcc_scan_args) found input file "udp-client.c"
distccd[14752] (dcc_scan_args) found object/output file "udp-client.o"
distccd[14752] compile from udp-client.c to udp-client.o
distccd[14752] (dcc_run_job) output file udp-client.o
distccd[14752] (dcc_input_tmpnam) input file udp-client.c
distccd[14752] (dcc_r_token_int) got DOTI00016dac
distccd[14752] (dcc_r_file) received 93612 bytes to file /tmp/distccd_ba396596.i
distccd[14752] (dcc_r_file_timed) 93612 bytes received in 0.011009s, rate 8304kB/s
distccd[14752] (dcc_set_input) changed input from "udp-client.c" to "/tmp/distccd_ba396596.i"
distccd[14752] (dcc_set_input) command after: clang-3.9-arm -v -c /tmp/distccd_ba396596.i -o udp-client.o
distccd[14752] (dcc_set_output) changed output from "udp-client.o" to "/tmp/distccd_ba666596.o"
distccd[14752] (dcc_set_output) command after: clang-3.9-arm -v -c /tmp/distccd_ba396596.i -o /tmp/distccd_ba666596.o
distccd[14752] (dcc_check_compiler_masq) /usr/local/bin/clang-3.9-arm is not a symlink
distccd[14752] (dcc_spawn_child) forking to execute: clang-3.9-arm -v -c /tmp/distccd_ba396596.i -o /tmp/distccd_ba666596.o
distccd[14752] (dcc_spawn_child) child started as pid32524
distccd[32524] (dcc_new_pgrp) entered process group
distccd[32524] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[14752] (dcc_collect_child) cc child 32524 terminated with status 0
distccd[14752] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[14752] (dcc_x_token_int) send DONE00000001
distccd[14752] (dcc_x_token_int) send STAT00000000
distccd[14752] (dcc_x_file) send 1002 byte file /tmp/distcc_b8066596.stderr with token SERR and compression 69
distccd[14752] (dcc_x_token_int) send SERR000003ea
distccd[14752] (dcc_x_file) send 0 byte file /tmp/distcc_b8246596.stdout with token SOUT and compression 69
distccd[14752] (dcc_x_token_int) send SOUT00000000
distccd[14752] (dcc_x_file) send 2192 byte file /tmp/distccd_ba666596.o with token DOTO and compression 69
distccd[14752] (dcc_x_token_int) send DOTO00000890
distccd[14752] clang-3.9-arm udp-client.c on localhost completed ok
distccd[14752] job complete
distccd[14752] (dcc_cleanup_tempfiles_inner) deleted 5 temporary files
distccd[14752] (dcc_job_summary) client: 192.168.7.2:59770 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:318ms clang-3.9-arm udp-client.c
distccd[14753] (dcc_check_client) connection from 192.168.7.2:59772
distccd[14753] (check_address_inet) match client 0x207a8c0, value 0x207a8c0, mask 0xffffffff
distccd[14753] (dcc_r_token_int) got DIST00000001
distccd[14753] (dcc_r_token_int) got ARGC00000006
distccd[14753] (dcc_r_argv) reading 6 arguments from job submission
distccd[14753] (dcc_r_token_int) got ARGV0000000d
distccd[14753] (dcc_r_token_string) got 'clang-3.9-arm'
distccd[14753] (dcc_r_argv) argv[0] = "clang-3.9-arm"
distccd[14753] (dcc_r_token_int) got ARGV00000002
distccd[14753] (dcc_r_token_string) got '-c'
distccd[14753] (dcc_r_argv) argv[1] = "-c"
distccd[14753] (dcc_r_token_int) got ARGV00000029
distccd[14753] (dcc_r_token_string) got '/root/Bela/resources/network/udp-client.c'
distccd[14753] (dcc_r_argv) argv[2] = "/root/Bela/resources/network/udp-client.c"
distccd[14753] (dcc_r_token_int) got ARGV0000000e
distccd[14753] (dcc_r_token_string) got '-march=armv7-a'
distccd[14753] (dcc_r_argv) argv[3] = "-march=armv7-a"
distccd[14753] (dcc_r_token_int) got ARGV00000002
distccd[14753] (dcc_r_token_string) got '-o'
distccd[14753] (dcc_r_argv) argv[4] = "-o"
distccd[14753] (dcc_r_token_int) got ARGV0000000c
distccd[14753] (dcc_r_token_string) got 'udp-client.o'
distccd[14753] (dcc_r_argv) argv[5] = "udp-client.o"
distccd[14753] (dcc_r_argv) got arguments: clang-3.9-arm -c /root/Bela/resources/network/udp-client.c -march=armv7-a -o udp-client.o
distccd[14753] (dcc_scan_args) scanning arguments: clang-3.9-arm -c /root/Bela/resources/network/udp-client.c -march=armv7-a -o udp-client.o
distccd[14753] (dcc_scan_args) found input file "/root/Bela/resources/network/udp-client.c"
distccd[14753] (dcc_scan_args) found object/output file "udp-client.o"
distccd[14753] compile from udp-client.c to udp-client.o
distccd[14753] (dcc_run_job) output file udp-client.o
distccd[14753] (dcc_input_tmpnam) input file /root/Bela/resources/network/udp-client.c
distccd[14753] (dcc_r_token_int) got DOTI00016eeb
distccd[14753] (dcc_r_file) received 93931 bytes to file /tmp/distccd_20816628.i
distccd[14753] (dcc_r_file_timed) 93931 bytes received in 0.012232s, rate 7499kB/s
distccd[14753] (dcc_set_input) changed input from "/root/Bela/resources/network/udp-client.c" to "/tmp/distccd_20816628.i"
distccd[14753] (dcc_set_input) command after: clang-3.9-arm -c /tmp/distccd_20816628.i -march=armv7-a -o udp-client.o
distccd[14753] (dcc_set_output) changed output from "udp-client.o" to "/tmp/distccd_20dc6628.o"
distccd[14753] (dcc_set_output) command after: clang-3.9-arm -c /tmp/distccd_20816628.i -march=armv7-a -o /tmp/distccd_20dc6628.o
distccd[14753] (dcc_check_compiler_masq) /usr/local/bin/clang-3.9-arm is not a symlink
distccd[14753] (dcc_spawn_child) forking to execute: clang-3.9-arm -c /tmp/distccd_20816628.i -march=armv7-a -o /tmp/distccd_20dc6628.o
distccd[14753] (dcc_spawn_child) child started as pid32547
distccd[32547] (dcc_new_pgrp) entered process group
distccd[32547] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[14753] (dcc_collect_child) cc child 32547 terminated with status 0
distccd[14753] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[14753] (dcc_x_token_int) send DONE00000001
distccd[14753] (dcc_x_token_int) send STAT00000000
distccd[14753] (dcc_x_file) send 0 byte file /tmp/distcc_27c16628.stderr with token SERR and compression 69
distccd[14753] (dcc_x_token_int) send SERR00000000
distccd[14753] (dcc_x_file) send 0 byte file /tmp/distcc_27996628.stdout with token SOUT and compression 69
distccd[14753] (dcc_x_token_int) send SOUT00000000
distccd[14753] (dcc_x_file) send 2192 byte file /tmp/distccd_20dc6628.o with token DOTO and compression 69
distccd[14753] (dcc_x_token_int) send DOTO00000890
distccd[14753] clang-3.9-arm /root/Bela/resources/network/udp-client.c on localhost completed ok
distccd[14753] job complete
distccd[14753] (dcc_cleanup_tempfiles_inner) deleted 5 temporary files
distccd[14753] (dcc_job_summary) client: 192.168.7.2:59772 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:286ms clang-3.9-arm /root/Bela/resources/network/udp-client.c
distccd[14754] (dcc_check_client) connection from 192.168.7.2:59774
distccd[14754] (check_address_inet) match client 0x207a8c0, value 0x207a8c0, mask 0xffffffff
distccd[14754] (dcc_r_token_int) got DIST00000001
distccd[14754] (dcc_r_token_int) got ARGC00000007
distccd[14754] (dcc_r_argv) reading 7 arguments from job submission
distccd[14754] (dcc_r_token_int) got ARGV0000000d
distccd[14754] (dcc_r_token_string) got 'clang-3.9-arm'
distccd[14754] (dcc_r_argv) argv[0] = "clang-3.9-arm"
distccd[14754] (dcc_r_token_int) got ARGV00000002
distccd[14754] (dcc_r_token_string) got '-c'
distccd[14754] (dcc_r_argv) argv[1] = "-c"
distccd[14754] (dcc_r_token_int) got ARGV00000002
distccd[14754] (dcc_r_token_string) got '-v'
distccd[14754] (dcc_r_argv) argv[2] = "-v"
distccd[14754] (dcc_r_token_int) got ARGV00000029
distccd[14754] (dcc_r_token_string) got '/root/Bela/resources/network/udp-client.c'
distccd[14754] (dcc_r_argv) argv[3] = "/root/Bela/resources/network/udp-client.c"
distccd[14754] (dcc_r_token_int) got ARGV0000000e
distccd[14754] (dcc_r_token_string) got '-march=armv7-a'
distccd[14754] (dcc_r_argv) argv[4] = "-march=armv7-a"
distccd[14754] (dcc_r_token_int) got ARGV00000002
distccd[14754] (dcc_r_token_string) got '-o'
distccd[14754] (dcc_r_argv) argv[5] = "-o"
distccd[14754] (dcc_r_token_int) got ARGV0000000c
distccd[14754] (dcc_r_token_string) got 'udp-client.o'
distccd[14754] (dcc_r_argv) argv[6] = "udp-client.o"
distccd[14754] (dcc_r_argv) got arguments: clang-3.9-arm -c -v /root/Bela/resources/network/udp-client.c -march=armv7-a -o udp-client.o
distccd[14754] (dcc_scan_args) scanning arguments: clang-3.9-arm -c -v /root/Bela/resources/network/udp-client.c -march=armv7-a -o udp-client.o
distccd[14754] (dcc_scan_args) found input file "/root/Bela/resources/network/udp-client.c"
distccd[14754] (dcc_scan_args) found object/output file "udp-client.o"
distccd[14754] compile from udp-client.c to udp-client.o
distccd[14754] (dcc_run_job) output file udp-client.o
distccd[14754] (dcc_input_tmpnam) input file /root/Bela/resources/network/udp-client.c
distccd[14754] (dcc_r_token_int) got DOTI00016eeb
distccd[14754] (dcc_r_file) received 93931 bytes to file /tmp/distccd_ff4c663b.i
distccd[14754] (dcc_r_file_timed) 93931 bytes received in 0.011458s, rate 8006kB/s
distccd[14754] (dcc_set_input) changed input from "/root/Bela/resources/network/udp-client.c" to "/tmp/distccd_ff4c663b.i"
distccd[14754] (dcc_set_input) command after: clang-3.9-arm -c -v /tmp/distccd_ff4c663b.i -march=armv7-a -o udp-client.o
distccd[14754] (dcc_set_output) changed output from "udp-client.o" to "/tmp/distccd_fcec663b.o"
distccd[14754] (dcc_set_output) command after: clang-3.9-arm -c -v /tmp/distccd_ff4c663b.i -march=armv7-a -o /tmp/distccd_fcec663b.o
distccd[14754] (dcc_check_compiler_masq) /usr/local/bin/clang-3.9-arm is not a symlink
distccd[14754] (dcc_spawn_child) forking to execute: clang-3.9-arm -c -v /tmp/distccd_ff4c663b.i -march=armv7-a -o /tmp/distccd_fcec663b.o
distccd[14754] (dcc_spawn_child) child started as pid32551
distccd[32551] (dcc_new_pgrp) entered process group
distccd[32551] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[14754] (dcc_collect_child) cc child 32551 terminated with status 0
distccd[14754] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[14754] (dcc_x_token_int) send DONE00000001
distccd[14754] (dcc_x_token_int) send STAT00000000
distccd[14754] (dcc_x_file) send 1002 byte file /tmp/distcc_f203663b.stderr with token SERR and compression 69
distccd[14754] (dcc_x_token_int) send SERR000003ea
distccd[14754] (dcc_x_file) send 0 byte file /tmp/distcc_f22c663b.stdout with token SOUT and compression 69
distccd[14754] (dcc_x_token_int) send SOUT00000000
distccd[14754] (dcc_x_file) send 2192 byte file /tmp/distccd_fcec663b.o with token DOTO and compression 69
distccd[14754] (dcc_x_token_int) send DOTO00000890
distccd[14754] clang-3.9-arm /root/Bela/resources/network/udp-client.c on localhost completed ok
distccd[14754] job complete
distccd[14754] (dcc_cleanup_tempfiles_inner) deleted 5 temporary files
distccd[14754] (dcc_job_summary) client: 192.168.7.2:59774 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:320ms clang-3.9-arm /root/Bela/resources/network/udp-client.c