View previous topic :: View next topic |
Author |
Message |
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Wed Oct 12, 2022 1:34 pm Post subject: Distcc and crossdev question |
|
|
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 |
|
|
pingtoo l33t
Joined: 10 Sep 2021 Posts: 932 Location: Richmond Hill, Canada
|
Posted: Wed Oct 12, 2022 2:12 pm Post subject: Re: Distcc and crossdev question |
|
|
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 |
|
|
leonchik1976 Guru
Joined: 24 Jan 2010 Posts: 325
|
Posted: Wed Oct 12, 2022 2:25 pm Post subject: Re: Distcc and crossdev question |
|
|
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 |
|
|
pingtoo l33t
Joined: 10 Sep 2021 Posts: 932 Location: Richmond Hill, Canada
|
Posted: Wed Oct 12, 2022 2:40 pm Post subject: |
|
|
- /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 |
|
|
|