View previous topic :: View next topic |
Author |
Message |
axl Veteran
Joined: 11 Oct 2002 Posts: 1146 Location: Romania
|
Posted: Tue May 09, 2017 12:03 pm Post subject: |
|
|
I know they have to be the same version. But I recently ran into this issue. gcc-config was properly set on both systems. 6.3.0.
I don't remember which package I was compiling, but the makefile was generated to compile with a specific version of the gcc executable, like: armv6j-hardfloat-linux-gnueabi-gcc-6.3.0 and distccd wasn't aware that there was such an executable on the server. otherwise if you use armv6j-hardfloat-linux-gnueabi-gcc it will use the version of gcc that gcc-config points too.
I imagine all the links in /usr/lib/distcc/bin/ have their use. right? again. after you install or delete a version of gcc, it's a good idea to redo the links. especially if you have this many:
Code: | ls -all /usr/lib/distcc/bin/
total 8
drwxr-xr-x 2 root root 4096 May 7 14:16 .
drwxr-xr-x 3 root root 17 Sep 26 2016 ..
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-c++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-c++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-c++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-g++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-g++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-g++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-gcc-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-gcc-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 aarch64-unknown-linux-gnu-gcc-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-c++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-c++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-c++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-g++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-g++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-g++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-gcc-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-gcc-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv6j-hardfloat-linux-gnueabi-gcc-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-c++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-c++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-c++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-g++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-g++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-g++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-gcc-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-gcc-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 armv7a-hardfloat-linux-gnueabi-gcc-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-c++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-c++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-c++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-g++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-g++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-g++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-gcc-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-gcc-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 i686-pc-linux-gnu-gcc-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-c++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-c++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-c++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-g++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-g++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-g++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-gcc-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-gcc-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 powerpc64-unknown-linux-gnu-gcc-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-c++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-c++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-c++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-g++-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-g++-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-g++-6.3.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-gcc-4.9.3 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-gcc-5.4.0 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 May 7 14:16 x86_64-pc-linux-gnu-gcc-6.3.0 -> /usr/bin/distcc
|
If I am mistaken, I apologize. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54799 Location: 56N 3W
|
Posted: Tue May 09, 2017 1:22 pm Post subject: |
|
|
axl,
I'm unable to test properly until the weekend. I only have a binary Gentoo until then.
My statement is based on switching compiler versions just with gcc-config and messing up by only switching the client (Raspberry Pi) end.
Like you, I use cross distcc too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
axl Veteran
Joined: 11 Oct 2002 Posts: 1146 Location: Romania
|
Posted: Tue May 09, 2017 3:44 pm Post subject: |
|
|
I might have been wrong. I wanted to look those links up a bit more seriously but I just didn't have the time. Meanwhile though, I did figure out a scenario in which you have to recompile distcc.
Let's say you have a pi and a laptop like the original poster. For the sake of avoiding versions, let's say all work with version X. just X.
And you already had distcc compiled on laptop. Now, i'm not sure it enough to just compile crossdev gcc, and distccd is a go.
So let's say you dont need to recompile distcc when you add/delete another version of gcc. because gcc-config handles that. but, you do need to recompile it (or remake those links) at least when you add another arch to a distcc server.
Does that make sense? |
|
Back to top |
|
|
|
|
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
|
|