Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Problems using distcc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 26

PostPosted: Wed Apr 24, 2019 7:48 am    Post subject: [SOLVED] Problems using distcc Reply with quote

Hello,
I have some difficulties to finalize distcc use. I utterly fail to get emerge to use it.
Distcc is configured on (currently only) one client and helper. When testing it on the client :

Code:
export DISTCC_VERBOSE=1
distcc gcc -c hello.c -o hello.o


it works okay, the helper gets the request, compiles the file and sends the result.

I have
Code:
FEATURES="distcc"
in make.conf on the client, and the host list seems ok :
Code:
$ distcc-config --get-hosts
HELPER IP/10


But when I launch emerge, nothing gets to the helper except, sometimes, little runs that seem to come from some configure scripts, such as :

Code:
distccd[5743]: (dcc_check_client) connection from CLIENT IP:33252
distccd[5743]: compile from test-tc-tls.c to test-tc-tls
distccd[5743]: (dcc_r_file_timed) 320 bytes received in 0.000960s, rate 326kB/s
distccd[5743]: (dcc_collect_child) cc times: user 0.000000s, system 0.000000s, 0 minflt, 0 majflt
distccd[5743]: armv7a-hardfloat-linux-gnueabi-gcc /var/tmp/portage/sys-libs/glibc-2.28-r6/temp/test-tc-tls.c on localhost completed ok
distccd[5743]: job complete


What did I miss ?

Tia,


Last edited by Sargastic on Wed Apr 24, 2019 6:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2541
Location: Near Toronto

PostPosted: Wed Apr 24, 2019 3:59 pm    Post subject: Reply with quote

I had a distcc problem solved here:

https://forums.gentoo.org/viewtopic-t-1094694-highlight-.html

I don't know if your problem is at all related ...
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 26

PostPosted: Wed Apr 24, 2019 6:20 pm    Post subject: Reply with quote

albright wrote:
I had a distcc problem solved here:
https://forums.gentoo.org/viewtopic-t-1094694-highlight-.html


Yeah ! The default python was version 2. An eselect later, distcc does its job properly. Thanks.
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 537
Location: Romania

PostPosted: Wed Apr 24, 2019 6:21 pm    Post subject: Reply with quote

distcc can be debugged in several ways.

the client you want to do distcc-config --set-debug=1. attention even if successful in compiling the file, the extra debug will force most packages to fail, because of excessive debugging.

On the server, there's an option to start distccd in console with all debuging options witch is --wizard :) if that aint debugging enough (like I had to), you can always start distccd with strace.

but in gentoo most problems fix themselves when you select the right gcc version (both server and client have to have the same version. can't have server version 7, client version 8 ) and make sure gcc-config reflects that, and finally "eselect compiler-shadow update all" and you should be good to go.
Back to top
View user's profile Send private message
Sargastic
n00b
n00b


Joined: 28 Aug 2011
Posts: 26

PostPosted: Fri Apr 26, 2019 6:38 am    Post subject: Reply with quote

Thanks axl for the tips.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum