Недавно я столкнулся с некоторыми проблемами при запуске distcc.Раньше он работал должным образом, пока я недавно не изменил IP-адрес клиента и хоста.
Сеть должна быть хорошо настроена (я могу пропинговать обе стороны, а ssh - raspberry pi)
однако я получаю эту ошибку: failed to resolve host: Name or service not known
это полный вывод:
distcc -c hello.cpp -v
distcc[11202] (dcc_trace_version) distcc 3.3.2 armv7l-unknown-linux-gnueabihf; built Oct 1 2018 12:26:39
distcc[11202] (dcc_recursion_safeguard) safeguard level=0
distcc[11202] (main) compiler name is "distcc"
distcc[11202] (dcc_scan_args) scanning arguments: cc -c hello.cpp -v
distcc[11202] (dcc_scan_args) found input file "hello.cpp"
distcc[11202] (dcc_scan_args) no visible output file, going to add "-o hello.o" at end
distcc[11202] compile from hello.cpp to hello.o
distcc[11202] (dcc_rewrite_generic_compiler) Rewriting 'cc' to 'gcc'
distcc[11202] (dcc_gcc_rewrite_fqn) Re-writing call to 'gcc' to 'armv7l-unknown-linux-gnueabihf-gcc' to support cross-compilation.
distcc[11202] (dcc_get_hostlist) not reading /root/.distcc/hosts: No such file or directory
distcc[11202] (dcc_parse_hosts_file) load hosts from /etc/distcc/hosts
distcc[11202] (dcc_parse_hosts) found tcp token "DISTCC_HOSTS="10.0.0.1:3635/8,lzo,cpp""
distcc[11202] (dcc_parse_options) got LZO option
distcc[11202] (dcc_parse_options) got CPP option
distcc[11202] (dcc_lock_host) got cpu lock on DISTCC_HOSTS="10.0.0.1:3635/8,lzo,cpp" slot 0 as fd4
distcc[11202] (dcc_lock_host) got cpu lock on localhost slot 0 as fd5
distcc[11202] (dcc_note_state) note state 3, file "(NULL)", host "localhost"
distcc[11202] (dcc_talk_to_include_server) Warning: INCLUDE_SERVER_PORT not set - did you forget to run under 'pump'?
distcc[11202] (dcc_build_somewhere) Warning: failed to get includes from include server, preprocessing locally
distcc[11202] (dcc_strip_dasho) result: armv7l-unknown-linux-gnueabihf-gcc -c hello.cpp -v
distcc[11202] (dcc_spawn_child) forking to execute: armv7l-unknown-linux-gnueabihf-gcc -E hello.cpp -v
distcc[11202] (dcc_spawn_child) child started as pid11203
distcc[11202] (dcc_strip_local_args) result: armv7l-unknown-linux-gnueabihf-gcc -c hello.cpp -v -o hello.o
distcc[11202] exec on DISTCC_HOSTS="10.0.0.1:3635/8,lzo,cpp": armv7l-unknown-linux-gnueabihf-gcc -c hello.cpp -v -o hello.o
distcc[11202] (dcc_note_state) note state 2, file "hello.cpp", host "DISTCC_HOSTS="10.0.0.1"
distcc[11203] (dcc_new_pgrp) entered process group
distcc[11203] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distcc[11202] (dcc_connect_by_name) connecting to DISTCC_HOSTS="10.0.0.1 port 3635
Using built-in specs.
COLLECT_GCC=armv7l-unknown-linux-gnueabihf-gcc
Target: armv7l-unknown-linux-gnueabihf
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-syst
em-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-mult
ilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16
Thread model: posix
gcc version 8.2.1 20181127 (GCC)
COLLECT_GCC_OPTIONS='-E' '-v' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mtls-dialect=gnu' '-marm' '-march=armv7-a+fp'
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/cc1plus -E -quiet -v -D_GNU_SOURCE hello.cpp -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -marm -march=armv7-a+fp
distcc[11202] (dcc_connect_by_name) ERROR: failed to resolve host DISTCC_HOSTS="10.0.0.1 port 3635: Name or service not known
distcc[11202] (dcc_unlock) release lock fd5
distcc[11202] (dcc_mark_timefile) mark /root/.distcc/lock/backoff_tcp_DISTCC_HOSTS="10.0.0.1_3635_0
distcc[11202] (dcc_unlock) release lock fd4
distcc[11202] Warning: failed to distribute hello.cpp to DISTCC_HOSTS="10.0.0.1:3635/8,lzo,cpp", running locally instead
distcc[11202] (dcc_get_hostlist) not reading /root/.distcc/hosts: No such file or directory
distcc[11202] (dcc_parse_hosts_file) load hosts from /etc/distcc/hosts
distcc[11202] (dcc_parse_hosts) found tcp token "DISTCC_HOSTS="10.0.0.1:3635/8,lzo,cpp""
distcc[11202] (dcc_parse_options) got LZO option
distcc[11202] (dcc_parse_options) got CPP option
distcc[11202] (dcc_lock_host) got cpu lock on localhost slot 0 as fd4
distcc[11202] exec on localhost: armv7l-unknown-linux-gnueabihf-gcc -c hello.cpp -v -o hello.o
distcc[11202] (dcc_note_state) note state 5, file "hello.cpp", host "localhost"
distcc[11202] (dcc_spawn_child) forking to execute: armv7l-unknown-linux-gnueabihf-gcc -c hello.cpp -v -o hello.o
distcc[11202] (dcc_spawn_child) child started as pid11205
distcc[11205] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
Using built-in specs.
COLLECT_GCC=armv7l-unknown-linux-gnueabihf-gcc
Target: armv7l-unknown-linux-gnueabihf
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues --enable-languages=c,c++,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --disable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp --host=armv7l-unknown-linux-gnueabihf --build=armv7l-unknown-linux-gnueabihf --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16
Thread model: posix
gcc version 8.2.1 20181127 (GCC)
COLLECT_GCC_OPTIONS='-c' '-v' '-o' 'hello.o' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mtls-dialect=gnu' '-marm' '-march=armv7-a+fp'
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/cc1plus -quiet -v -D_GNU_SOURCE hello.cpp -quiet -dumpbase hello.cpp -mfloat-abi=hard -mfpu=vfpv3-d16 -mtls-dialect=gnu -marm -march=armv7-a+fp -auxbase-strip hello.o -version -o /tmp/ccwqgO0I.s
ignoring nonexistent directory "/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../armv7l-unknown-linux-gnueabihf/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../include/c++/8.2.1
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../include/c++/8.2.1/armv7l-unknown-linux-gnueabihf
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../include/c++/8.2.1/backward
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/include
/usr/local/include
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/include-fixed
/usr/include
End of search list.
GNU C++14 (GCC) version 8.2.1 20181127 (armv7l-unknown-linux-gnueabihf)
compiled by GNU C version 8.2.1 20181127, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.20-GMP
warning: MPFR header version 4.0.1 differs from library version 4.0.2.
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62730
ignoring nonexistent directory "/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../armv7l-unknown-linux-gnueabihf/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../include/c++/8.2.1
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../include/c++/8.2.1/armv7l-unknown-linux-gnueabihf
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../../include/c++/8.2.1/backward
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/include
/usr/local/include
/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/include-fixed
/usr/include
End of search list.
GNU C++14 (GCC) version 8.2.1 20181127 (armv7l-unknown-linux-gnueabihf)
compiled by GNU C version 8.2.1 20181127, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.20-GMP
warning: MPFR header version 4.0.1 differs from library version 4.0.2.
GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=62730
Compiler executable checksum: d3200b52a911e83e1ece46f70339aecb
COMPILER_PATH=/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/
LIBRARY_PATH=/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-E' '-v' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mtls-dialect=gnu' '-marm' '-march=armv7-a+fp'
COLLECT_GCC_OPTIONS='-c' '-v' '-o' 'hello.o' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mtls-dialect=gnu' '-marm' '-march=armv7-a+fp'
as -v -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -meabi=5 -o hello.o /tmp/ccwqgO0I.s
GNU assembler version 2.31.1 (armv7l-unknown-linux-gnueabihf) using BFD version (GNU Binutils) 2.31.1
COMPILER_PATH=/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/
LIBRARY_PATH=/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/:/usr/lib/gcc/armv7l-unknown-linux-gnueabihf/8.2.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-c' '-v' '-o' 'hello.o' '-mfloat-abi=hard' '-mfpu=vfpv3-d16' '-mtls-dialect=gnu' '-marm' '-march=armv7-a+fp'
distcc[11202] (dcc_collect_child) cc child 11205 terminated with status 0
distcc[11202] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distcc[11202] compile hello.cpp on localhost completed ok
distcc[11202] (dcc_unlock) release lock fd4
distcc[11202] elapsed compilation time 0.163138s
distcc[11202] (dcc_exit) exit: code 0; self: 0.010758 user 0.000000 sys; children: 0.121348 user 0.030344 sys
distcc[11202] (dcc_cleanup_tempfiles_inner) deleted 2 temporary files
Есть идеи?
Кстати, сервер работает нахост:
systemctl status distccd-armv7h.service
● distccd-armv7h.service - A distributed C/C++ compiler
Loaded: loaded (/usr/lib/systemd/system/distccd-armv7h.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2019-06-08 14:27:18 CEST; 4h 39min ago
Docs: man:distccd(1)
Main PID: 17403 (distccd)
Tasks: 11 (limit: 4915)
Memory: 2.2M
CGroup: /system.slice/distccd-armv7h.service
├─17403 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17404 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17406 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17407 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17410 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17411 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17413 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17414 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17415 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
├─17416 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
└─17424 /usr/bin/distccd --no-detach --daemon --allow 127.0.0.1 --allow 10.0.0.0/24 --allow 10.0.1.0/24 --port 3635 --log-file /tmp/distccd-armv7h.log
Jun 08 14:27:18 leo-portable-i7 systemd[1]: distccd-armv7h.service: Main process exited, code=killed, status=15/TERM
Jun 08 14:27:18 leo-portable-i7 systemd[1]: distccd-armv7h.service: Succeeded.
Jun 08 14:27:18 leo-portable-i7 systemd[1]: Stopped A distributed C/C++ compiler.
Jun 08 14:27:18 leo-portable-i7 systemd[1]: Started A distributed C/C++ compiler.