Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: GentooForum.de. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

14.06.2014, 11:12

distcc will nicht so richtig

Hi,
ich versuche gerade distcc daheim einzurichen.

Der Server ist ein Laptop mit gcc-4.8.2 und der Host hat auch gcc-4.8.2. Beides 64bit.

Auf dem Server läuft der Daemon:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
akoya-linux system # systemctl status distccd.service
● distccd.service - Distccd: A Distributed Compilation Server
   Loaded: loaded (/usr/lib64/systemd/system/distccd.service; disabled)
  Drop-In: /etc/systemd/system/distccd.service.d
           └─00gentoo.conf
   Active: active (running) since Sa 2014-06-14 10:55:35 CEST; 8min ago
 Main PID: 1262 (distccd)
   CGroup: /system.slice/distccd.service
           ├─1262 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110
           ├─1263 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110
           ├─1264 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110
           ├─1265 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110
           ├─1267 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110
           ├─1268 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110
           └─1269 /usr/bin/distccd --verbose --log-level info --no-detach --daemon --port 3632 -N 15 --allow 192.168.0.0/24 --allow 192.168.0.110


Auf dem Host is alles wir folgt eingerichtet:

make.conf:

Quellcode

1
2
3
...
FEATURES="distcc"
MAKEOPTS="-j7 -l3"


/etc/distcc/hosts:

Quellcode

1
192.168.0.104/5,cpp,lzo


$PATH:

Quellcode

1
/usr/lib/distcc/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.2


Nun starte ich auf dem Host das emergen eines Paketes:

Quellcode

1
pump emerge -av libXt


Und überwache das ganze über

Quellcode

1
DISTCC_DIR="/var/tmp/portage/.distcc" distccmon-text


Hier sehe ich das nur Lokal compiliert wird und alles andere geblockt wird.

In dem Log des Servers sehe ich nichts außer ein einziges mal:

Quellcode

1
2
3
4
5
6
7
Jun 14 11:02:23 akoya-linux distccd[1264]: (dcc_check_client) connection from 192.168.0.110:51848
Jun 14 11:02:23 akoya-linux distccd[1264]: compile from makestrs.c to makestrs.o
Jun 14 11:02:24 akoya-linux distccd[1264]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 11:02:24 akoya-linux distccd[1264]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 11:02:24 akoya-linux distccd[1264]: x86_64-pc-linux-gnu-gcc /var/tmp/portage/x11-libs/libXt-1.1.4/work/libXt-1.1.4/util/makestrs.c on localhost completed ok
Jun 14 11:02:24 akoya-linux distccd[1264]: job complete
Jun 14 11:02:24 akoya-linux distccd[1264]: (dcc_job_summary) client: 192.168.0.110:51848 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:225ms x86_64-pc-linux-gnu-gcc /var/tmp/portage/x11-libs/libXt-1.1.4/work...util/makestrs.c


Also einmal scheint es geklappt zu haben.
Ich sehe aber keinerlei Fehler warum die Verbindung geblockt wird.

Ich habe dann mal versucht den Kernel mit distcc zu kompilieren.
Auf dem host bekomme ich dauernt folgende Meldung:

Quellcode

1
failed to distribute, running locally instead


Das sind die Meldungen am Server:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
Jun 14 10:57:50 akoya-linux distccd[1265]: (dcc_job_summary) client: 192.168.0.110:51834 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:163ms gcc arch/x86/tools/relocs_common.c
Jun 14 10:57:51 akoya-linux distccd[1269]: (dcc_check_client) connection from 192.168.0.110:51837
Jun 14 10:57:51 akoya-linux distccd[1269]: compile from modpost.c to modpost.o
Jun 14 10:57:51 akoya-linux distccd[1267]: (dcc_check_client) connection from 192.168.0.110:51838
Jun 14 10:57:51 akoya-linux distccd[1267]: compile from sumversion.c to sumversion.o
Jun 14 10:57:51 akoya-linux distccd[1263]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:57:51 akoya-linux distccd[1263]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 10:57:51 akoya-linux distccd[1263]: gcc arch/x86/tools/relocs_32.c on localhost completed ok
Jun 14 10:57:51 akoya-linux distccd[1263]: job complete
Jun 14 10:57:51 akoya-linux distccd[1263]: (dcc_job_summary) client: 192.168.0.110:51832 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:344ms gcc arch/x86/tools/relocs_32.c
Jun 14 10:57:51 akoya-linux distccd[1264]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:57:51 akoya-linux distccd[1264]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 10:57:51 akoya-linux distccd[1264]: gcc arch/x86/tools/relocs_64.c on localhost completed ok
Jun 14 10:57:51 akoya-linux distccd[1264]: job complete
Jun 14 10:57:51 akoya-linux distccd[1264]: (dcc_job_summary) client: 192.168.0.110:51833 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:347ms gcc arch/x86/tools/relocs_64.c
Jun 14 10:57:51 akoya-linux distccd[1268]: (dcc_check_client) connection from 192.168.0.110:51839
Jun 14 10:57:51 akoya-linux distccd[1268]: compile from file2alias.c to file2alias.o
Jun 14 10:57:51 akoya-linux distccd[1267]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:57:51 akoya-linux distccd[1267]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 10:57:51 akoya-linux distccd[1267]: gcc scripts/mod/sumversion.c on localhost completed ok
Jun 14 10:57:51 akoya-linux distccd[1267]: job complete
Jun 14 10:57:51 akoya-linux distccd[1267]: (dcc_job_summary) client: 192.168.0.110:51838 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:263ms gcc scripts/mod/sumversion.c
Jun 14 10:57:51 akoya-linux distccd[1268]: (dcc_r_file_timed) 50912 bytes received in 0.010235s, rate 4858kB/s
Jun 14 10:57:51 akoya-linux distccd[1269]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:57:51 akoya-linux distccd[1269]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 10:57:51 akoya-linux distccd[1269]: gcc scripts/mod/modpost.c on localhost completed ok
Jun 14 10:57:51 akoya-linux distccd[1269]: job complete
Jun 14 10:57:51 akoya-linux distccd[1269]: (dcc_job_summary) client: 192.168.0.110:51837 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:668ms gcc scripts/mod/modpost.c
Jun 14 10:57:51 akoya-linux distccd[1268]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:57:51 akoya-linux distccd[1268]: gcc scripts/mod/file2alias.c on localhost completed ok
Jun 14 10:57:51 akoya-linux distccd[1268]: job complete
Jun 14 10:57:51 akoya-linux distccd[1268]: (dcc_job_summary) client: 192.168.0.110:51839 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:510ms gcc scripts/mod/file2alias.c
Jun 14 10:57:51 akoya-linux distccd[1265]: (dcc_check_client) connection from 192.168.0.110:51840
Jun 14 10:57:51 akoya-linux distccd[1265]: compile from bounds.c to bounds.s
Jun 14 10:57:51 akoya-linux distccd[1265]: (dcc_r_file_timed) 19603 bytes received in 0.003922s, rate 4881kB/s
Jun 14 10:57:51 akoya-linux distccd[1265]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:57:51 akoya-linux distccd[1265]: gcc kernel/bounds.c on localhost completed ok
Jun 14 10:57:51 akoya-linux distccd[1265]: job complete
Jun 14 10:57:51 akoya-linux distccd[1265]: (dcc_job_summary) client: 192.168.0.110:51840 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:39ms gcc kernel/bounds.c
Jun 14 10:57:52 akoya-linux distccd[1263]: (dcc_check_client) connection from 192.168.0.110:51841
Jun 14 10:57:52 akoya-linux distccd[1263]: compile from asm-offsets.c to asm-offsets.s
Jun 14 10:57:55 akoya-linux distccd[1263]: (dcc_readx) ERROR: unexpected eof on fd5
Jun 14 10:57:55 akoya-linux distccd[1263]: (dcc_r_token_int) ERROR: read failed while waiting for token "DOTI"
Jun 14 10:57:55 akoya-linux distccd[1263]: (dcc_job_summary) client: 192.168.0.110:51841 OTHER exit:0 sig:0 core:0 ret:108 time:2953ms
Jun 14 10:58:14 akoya-linux distccd[1264]: (dcc_check_client) connection from 192.168.0.110:51842
Jun 14 10:58:14 akoya-linux distccd[1264]: compile from asm-offsets.c to asm-offsets.s
Jun 14 10:58:14 akoya-linux distccd[1264]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:58:14 akoya-linux distccd[1264]: gcc arch/x86/kernel/asm-offsets.c on localhost failed
Jun 14 10:58:14 akoya-linux distccd[1264]: job complete
Jun 14 10:58:14 akoya-linux distccd[1264]: (dcc_job_summary) client: 192.168.0.110:51842 COMPILE_ERROR exit:1 sig:0 core:0 ret:0 time:280ms gcc arch/x86/kernel/asm-offsets.c
Jun 14 10:59:18 akoya-linux distccd[1267]: (dcc_check_client) connection from 192.168.0.110:51843
Jun 14 10:59:18 akoya-linux distccd[1267]: compile from ablk_helper.c to ablk_helper.o
Jun 14 10:59:18 akoya-linux distccd[1267]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:59:18 akoya-linux distccd[1267]: gcc arch/x86/crypto/ablk_helper.c on localhost failed
Jun 14 10:59:18 akoya-linux distccd[1267]: job complete
Jun 14 10:59:18 akoya-linux distccd[1267]: (dcc_job_summary) client: 192.168.0.110:51843 COMPILE_ERROR exit:1 sig:0 core:0 ret:0 time:331ms gcc arch/x86/crypto/ablk_helper.c
Jun 14 10:59:18 akoya-linux distccd[1269]: (dcc_check_client) connection from 192.168.0.110:51844
Jun 14 10:59:18 akoya-linux distccd[1269]: compile from traps.c to traps.o
Jun 14 10:59:19 akoya-linux distccd[1269]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:59:19 akoya-linux distccd[1269]: gcc arch/x86/kernel/traps.c on localhost failed
Jun 14 10:59:19 akoya-linux distccd[1269]: job complete
Jun 14 10:59:19 akoya-linux distccd[1269]: (dcc_job_summary) client: 192.168.0.110:51844 COMPILE_ERROR exit:1 sig:0 core:0 ret:0 time:282ms gcc arch/x86/kernel/traps.c
Jun 14 10:59:19 akoya-linux distccd[1268]: (dcc_check_client) connection from 192.168.0.110:51845
Jun 14 10:59:19 akoya-linux distccd[1268]: compile from init_64.c to init_64.o
Jun 14 10:59:19 akoya-linux distccd[1265]: (dcc_check_client) connection from 192.168.0.110:51846
Jun 14 10:59:19 akoya-linux distccd[1265]: compile from init.c to init.o
Jun 14 10:59:19 akoya-linux distccd[1265]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:59:19 akoya-linux distccd[1265]: gcc arch/x86/realmode/init.c on localhost failed
Jun 14 10:59:19 akoya-linux distccd[1265]: job complete
Jun 14 10:59:19 akoya-linux distccd[1265]: (dcc_job_summary) client: 192.168.0.110:51846 COMPILE_ERROR exit:1 sig:0 core:0 ret:0 time:360ms gcc arch/x86/realmode/init.c
Jun 14 10:59:19 akoya-linux distccd[1268]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:59:19 akoya-linux distccd[1268]: gcc arch/x86/mm/init_64.c on localhost failed
Jun 14 10:59:19 akoya-linux distccd[1268]: job complete
Jun 14 10:59:19 akoya-linux distccd[1268]: (dcc_job_summary) client: 192.168.0.110:51845 COMPILE_ERROR exit:1 sig:0 core:0 ret:0 time:458ms gcc arch/x86/mm/init_64.c
Jun 14 10:59:21 akoya-linux distccd[1263]: (dcc_check_client) connection from 192.168.0.110:51847
Jun 14 10:59:21 akoya-linux distccd[1263]: compile from fork.c to fork.o
Jun 14 10:59:22 akoya-linux distccd[1263]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 10:59:22 akoya-linux distccd[1263]: gcc kernel/fork.c on localhost failed
Jun 14 10:59:22 akoya-linux distccd[1263]: job complete
Jun 14 10:59:22 akoya-linux distccd[1263]: (dcc_job_summary) client: 192.168.0.110:51847 COMPILE_ERROR exit:1 sig:0 core:0 ret:0 time:395ms gcc kernel/fork.c
Jun 14 11:02:23 akoya-linux distccd[1264]: (dcc_check_client) connection from 192.168.0.110:51848
Jun 14 11:02:23 akoya-linux distccd[1264]: compile from makestrs.c to makestrs.o
Jun 14 11:02:24 akoya-linux distccd[1264]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 11:02:24 akoya-linux distccd[1264]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 11:02:24 akoya-linux distccd[1264]: x86_64-pc-linux-gnu-gcc /var/tmp/portage/x11-libs/libXt-1.1.4/work/libXt-1.1.4/util/makestrs.c on localhost completed ok
Jun 14 11:02:24 akoya-linux distccd[1264]: job complete


Hier scheint es auch erst zu funktioniert haben, das dann alles fehlschlägt.

Ich hoffe ihr könnt mir bei meinem problem weiterhelfen.

dsiggi

2

14.06.2014, 12:03

hmm vielleicht hilft dir das hier ?

https://code.google.com/p/distcc/issues/detail?id=40
''''''''''''''''''''''''''''''''''''''''''''''''
Gentoo-Linux
der G-Punkt eines Pc´s

''''''''''''''''''''''''''''''''''''''''''''''''

3

14.06.2014, 12:33

Hi,
ich hab mir den Beitrag mal angeschaut.

Als erstes habe ihc versucht am Host eine Datei mit dem inhalt

Quellcode

1
#include <stdio.h>
zu kompilieren.

Quellcode

1
pump distcc -c foo.c


Das hat wunderbar geklappt.
Hier die Ausgabe am Server:

Quellcode

1
2
3
4
5
6
7
Jun 14 12:31:07 akoya-linux distccd[1269]: (dcc_check_client) connection from 192.168.0.110:51856
Jun 14 12:31:07 akoya-linux distccd[1269]: compile from foo.c to foo.o
Jun 14 12:31:07 akoya-linux distccd[1269]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
Jun 14 12:31:07 akoya-linux distccd[1269]: (dcc_fix_debug_info) client_path_plus_slashes = ///////////////////
Jun 14 12:31:07 akoya-linux distccd[1269]: cc foo.c on localhost completed ok
Jun 14 12:31:07 akoya-linux distccd[1269]: job complete
Jun 14 12:31:07 akoya-linux distccd[1269]: (dcc_job_summary) client: 192.168.0.110:51856 COMPILE_OK exit:0 sig:0 core:0 ret:0 time:34ms cc foo.c


Dann habe ich mal die Variable USER_TIME_QUOTA in /usr/lib64/python2.7/site-packages/includes/basics.py von 3.8 auf 20 geändert.
Das hat aber nichts gebracht.

Bei Portage sagt mir distccmon-text immer noch das alles geblockt wird und auf dem Server gibt es keinerlei Ausgabe und bei make bekomme ich die Meldung das das Kompilieren auf dem Server fehlgeschlagen ist.

dsiggi

4

14.06.2014, 12:53

Kleine Richtigstelliung:

also ein pump make funktioniert jetzt wunderbar. Keine Fehler alles läuft.

Aber ein pump emerge will noch nicht. Es scheint wast so als ob emerge der Eintrage in der /etc/distcc/hosts nicht interessieren würde.
Alles wird hier lokal kompiliert.

Kann das damit zusammenhängen das die basics.py die ja zu distcc gehört, im site-packages-Verzeichnis von python2.7 liegt aber ich python3.3 als Standard verwende?

dsiggi