Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Distcc and crossdev question
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
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Wed Oct 12, 2022 1:34 pm    Post subject: Distcc and crossdev question Reply with quote

Hi, i'm trying to follow this guide: https://wiki.gentoo.org/wiki/Distcc
to set distcc for raspberry pi 4.
I really confused what configuration should be made on client side and which of configuration should be done on build server side?
or everything should be done on both?

also, trying to set crossdev on build server (Parallels Desktop VM on Mac Studio):
# crossdev -t aarch64-unknown-linux-gnu
* Refusing to create a cross-compiler using the same
* target name as your host utils

so - should i omit this step?
Back to top
View user's profile Send private message
pingtoo
l33t
l33t


Joined: 10 Sep 2021
Posts: 932
Location: Richmond Hill, Canada

PostPosted: Wed Oct 12, 2022 2:12 pm    Post subject: Re: Distcc and crossdev question Reply with quote

leonchik1976 wrote:
Hi, i'm trying to follow this guide: https://wiki.gentoo.org/wiki/Distcc
to set distcc for raspberry pi 4.
I really confused what configuration should be made on client side and which of configuration should be done on build server side?
or everything should be done on both?

also, trying to set crossdev on build server (Parallels Desktop VM on Mac Studio):
# crossdev -t aarch64-unknown-linux-gnu
* Refusing to create a cross-compiler using the same
* target name as your host utils

so - should i omit this step?
What is "configuration" you refer to? emerge USE flags? distcc runtime configure?

Is your VM running Gentoo also?

The error messages you got from crossdev indicate your host (the environment you run the crossdev -t ... command already have the target (aarch64-unknown-linux-gnu) tool chain installed therefor you don't need to run crossdev -t ... any more. distccd will be able to find matching compiler on the VM to use in builds with distcc.
Back to top
View user's profile Send private message
leonchik1976
Guru
Guru


Joined: 24 Jan 2010
Posts: 325

PostPosted: Wed Oct 12, 2022 2:25 pm    Post subject: Re: Distcc and crossdev question Reply with quote

pingtoo wrote:
leonchik1976 wrote:
Hi, i'm trying to follow this guide: https://wiki.gentoo.org/wiki/Distcc
to set distcc for raspberry pi 4.
I really confused what configuration should be made on client side and which of configuration should be done on build server side?
or everything should be done on both?

also, trying to set crossdev on build server (Parallels Desktop VM on Mac Studio):
# crossdev -t aarch64-unknown-linux-gnu
* Refusing to create a cross-compiler using the same
* target name as your host utils

so - should i omit this step?
What is "configuration" you refer to? emerge USE flags? distcc runtime configure?

Is your VM running Gentoo also?

The error messages you got from crossdev indicate your host (the environment you run the crossdev -t ... command already have the target (aarch64-unknown-linux-gnu) tool chain installed therefor you don't need to run crossdev -t ... any more. distccd will be able to find matching compiler on the VM to use in builds with distcc.


VM is gentoo, and i referring to those configurations:
1. /etc/systemd/system/distccd.service.d/00gentoo.conf
2. /etc/distcc/hosts
3. /etc/env.d/03distcc_ccache
4. distccd.service
Back to top
View user's profile Send private message
pingtoo
l33t
l33t


Joined: 10 Sep 2021
Posts: 932
Location: Richmond Hill, Canada

PostPosted: Wed Oct 12, 2022 2:40 pm    Post subject: Reply with quote

  • /etc/systemd/system/distccd.service.d/00gentoo.conf
    is only for distccd on your VM. it is control additional options used for distccd, most significant option is to control which node(s) allow to connect to distccd.
  • /etc/distcc/hosts
    is for your build machine (the RPI4) to tell where distccd running (the VM)
  • /etc/env.d/03distcc_ccache
    is for your build machine (the RPI4). however I don't use ccache so I don't know what actually is.
  • distccd.server
    is a systemd service file to be running on VM to start/stop distccd
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