LINUX.ORG.RU
решено ФорумAdmin

ERROR: failed to write: Connection reset by peer

 , ,


0

1

Привет, лор! Никак не могу решить проблему, всё вроде бы настроено правильно, но distcc постоянно твердит при запуске pump make -jсколько_нибудь в директории с исходниками ядра

distcc[8901] (dcc_writex) ERROR: failed to write: Connection reset by peer
distcc[8901] Warning: failed to distribute kernel/printk.c to 192.168.1.109,lzo,cpp, running locally instead
distcc[8913] (dcc_writex) ERROR: failed to write: Connection reset by peer
distcc[8913] Warning: failed to distribute mm/oom_kill.c to 192.168.1.109,lzo,cpp, running locally instead
distcc[8918] (dcc_pump_sendfile) ERROR: sendfile failed: Connection reset by peer
distcc[8918] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[8918] Warning: failed to distribute arch/x86/kernel/x86_init.c to 192.168.1.109,lzo,cpp, running locally instead
distcc[8920] (dcc_pump_readwrite) ERROR: failed to write: Broken pipe
distcc[8920] (dcc_writex) ERROR: failed to write: Broken pipe
distcc[8920] Warning: failed to distribute fs/super.c to 192.168.1.109,lzo,cpp, running locally instead
У компьютера с distcc-сервером адрес - 192.168.1.109, у компьютера, на котором запускаю компиляцию ядра - 192.168.1.254

Конфиги:

http://bpaste.net/show/62425/ - /etc/distcc/hosts на 192.168.1.254

http://bpaste.net/show/62426/ - /etc/conf.d/distcc на 192.168.1.109

Версии GCC одинаковые. Всем заранее благодарен за помощь.

Ответ на: комментарий от the-jon

у тебя точно все правильно настроено в /etc/conf.d/distcc ?

ну там listen или allow выставлены верно?

Посмотрел, вроде правильно. Ну тогда надо врубать дебаг и смотреть выхлоп

Pinkbyte ★★★★★
()
Последнее исправление: Pinkbyte (всего исправлений: 1)
Ответ на: комментарий от Pinkbyte

Включил, оказывается беда была из-за того, что distcc не мог записать временные файлы в /tmp.

Поправил. Но теперь при компиляции ядра

  CC      init/initramfs.o
distcc[19970] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[19945] (dcc_please_send_email_after_investigation) Warning: remote compilation of 'init/do_mounts_initrd.c' failed, retried locally and got a different result.
  CC      init/calibrate.o
distcc[19978] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[19910] (dcc_please_send_email_after_investigation) Warning: remote compilation of 'init/do_mounts.c' failed, retried locally and got a different result.

log-level distcc переключил в формат warning, в логе ничего.

Переключил опять в debug

distccd[2547] (dcc_r_sometoken_int) got FILE00000000
distccd[2547] (dcc_r_file) received 0 bytes to file /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/acpi/platform/forcing_technique_271828
distccd[2547] (dcc_r_token_int) got NAME00000045
distccd[2547] (dcc_r_token_string) got '/usr/src/linux-3.4.6-geek/include/linux/hdlc/forcing_technique_271828'
distccd[2547] (dcc_r_sometoken_int) got FILE00000000
distccd[2547] (dcc_r_file) received 0 bytes to file /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/linux/hdlc/forcing_technique_271828
distccd[2547] (dcc_r_token_int) got NAME00000047
distccd[2547] (dcc_r_token_string) got '/usr/src/linux-3.4.6-geek/include/linux/sunrpc/forcing_technique_271828'
distccd[2547] (dcc_r_sometoken_int) got FILE00000000
distccd[2547] (dcc_r_file) received 0 bytes to file /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/linux/sunrpc/forcing_technique_271828
distccd[2547] (dcc_r_token_int) got NAME0000004a
distccd[2547] (dcc_r_token_string) got '/usr/src/linux-3.4.6-geek/include/linux/unaligned/forcing_technique_271828'
distccd[2547] (dcc_r_sometoken_int) got FILE00000000
distccd[2547] (dcc_r_file) received 0 bytes to file /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/linux/unaligned/forcing_technique_271828
distccd[2547] (dcc_r_token_int) got NAME0000003e
distccd[2547] (dcc_r_token_string) got '/usr/src/linux-3.4.6-geek/include/net/forcing_technique_271828'
distccd[2547] (dcc_r_sometoken_int) got FILE00000000
distccd[2547] (dcc_r_file) received 0 bytes to file /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/net/forcing_technique_271828
distccd[2547] (dcc_r_token_int) got NAME00000044
distccd[2547] (dcc_r_token_string) got '/usr/src/linux-3.4.6-geek/include/net/netns/forcing_technique_271828'
distccd[2547] (dcc_r_sometoken_int) got FILE00000000
distccd[2547] (dcc_r_file) received 0 bytes to file /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/net/netns/forcing_technique_271828
distccd[2547] (dcc_set_output) changed output from "init/do_mounts.o" to "/tmp/distccd_05229972.o"
distccd[2547] (dcc_set_output) command after: gcc -MD -MF init/.do_mounts.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include -I/usr/src/linux-3.4.6-geek/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /usr/src/linux-3.4.6-geek/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(do_mounts) -DKBUILD_MODNAME=KBUILD_STR(mounts) -c -o /tmp/distccd_05229972.o init/do_mounts.c -MT init/do_mounts.o
distccd[2547] (dcc_check_compiler_masq) /usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/gcc is a safe symlink to x86_64-pc-linux-gnu-gcc
distccd[2547] (dcc_spawn_child) forking to execute: gcc -MD -MF init/.do_mounts.o.d -nostdinc -isystem /tmp/distccd_Ounhlh/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include -I/tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/arch/x86/include -Iarch/x86/include/generated -Iinclude -include /tmp/distccd_Ounhlh/usr/src/linux-3.4.6-geek/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(do_mounts) -DKBUILD_MODNAME=KBUILD_STR(mounts) -c -o /tmp/distccd_05229972.o init/do_mounts.c -MMD -MF /tmp/distcc_0de49972.deps
distccd[2547] (dcc_spawn_child) child started as pid5228
distccd[5228] (dcc_new_pgrp) entered process group
distccd[5228] (dcc_increment_safeguard) setting safeguard: _DISTCC_SAFEGUARD=1
distccd[2575] (dcc_collect_child) cc child 5222 terminated with status 0x100
distccd[2575] (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[2575] (dcc_x_token_int) send DONE00000003
distccd[2575] (dcc_x_token_int) send STAT00000100
distccd[2575] (dcc_x_file) send 535 byte file /tmp/distcc_44c19972.stderr with token SERR and compression 70
distccd[2575] (dcc_compress_lzo1x_alloc) compressed 535 bytes to 290 bytes: 54%
distccd[2575] (dcc_x_token_int) send SERR00000122
distccd[2575] (dcc_x_file) send 0 byte file /tmp/distcc_44ce9972.stdout with token SOUT and compression 70
distccd[2575] (dcc_x_token_int) send SOUT00000000
distccd[2575] (dcc_x_token_int) send DOTO00000000
distccd[2575] gcc init/do_mounts_initrd.c on localhost failed
distccd[2575] job complete

В чём соль? Или так и должно чтоли быть?

the-jon
() автор топика
Ответ на: комментарий от the-jon

ядро никогда не пробовал компилить через distcc, затрудняюсь ответить. Другие пакеты через emerge нормально собираются?

Pinkbyte ★★★★★
()
Ответ на: комментарий от Pinkbyte

Да, похоже всё нормально. Тему закрываю. Спасибо.

the-jon
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.