LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   distcc cross architecture compiling (https://www.linuxquestions.org/questions/linux-software-2/distcc-cross-architecture-compiling-236096/)

Moebius 09-28-2004 02:05 AM

distcc cross architecture compiling
 
I know, I've read the distcc guide (http://www.gentoo.org/doc/en/distcc.xml), but it doesn't really go into much depth in terms of Cross-Compiling. And I've also googled, but can't find much that's relevant or at least straight forward.

Here's my situation. I've got a number of computers.
1) an amd64
2) an x86 Athlon Thunderbird
3) an x86 Pentium 3
4) sometimes an x86 P4 laptop when I have it booted into knoppix.

I suppose my first and easiest questions is: when I'm setting the hosts should I include the computer thats only sometimes there? Will it just try to find it and if it doesn't find it, move on? Or will it freak when it can't find that IP address?

And here's the big issue. How can I use distcc across all these different platforms? I installed distcc on all of them, set up the hosts, did everything the distcc guide says, and emerged crossdev. I also just upgraded all the computers' gcc versions to 3.3.4-r1.

When I tried the compile on the Athlon box I wasn't surprised when I got this error:
Code:

cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: CPU you selected does not support x86-64 instruction set
distcc[32398] ERROR: compile apr_snprintf.c on 192.168.1.17 failed
make[4]: *** [apr_snprintf.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: CPU you selected does not support x86-64 instruction set
distcc[32496] ERROR: compile apr_strnatcmp.c on 192.168.1.17 failed
make[4]: *** [apr_strnatcmp.lo] Error 1
make[4]: *** [apr_strtok.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/apache-2.0.51-r1/work/httpd-2.0.51/srclib/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.0.51-r1/work/httpd-2.0.51/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.51-r1/work/httpd-2.0.51/srclib'
make: *** [all-recursive] Error 1

!!! ERROR: net-www/apache-2.0.51-r1 failed.
!!! Function src_compile, Line 190, Exitcode 2
!!! problem compiling Apache2 :(

Is this possible? How can I do it?

Thanks.

MrJoshua 10-15-2004 11:02 AM

I am working on this currently I have a pair of dual Opteron servers and Athlon clients, using Gentoo. If I figure out anything I will post it here.

Guerillero 01-09-2008 06:20 AM

Did u find a solution?
 
Hallo,
two years since u posted here. Did u find any solution to ur problem? I would like to have the same thing running here on two machines, one of them is 64 bits, both runnign ubuntu.
Thx in advance

Quote:

Originally Posted by Moebius (Post 1201787)
I know, I've read the distcc guide (http://www.gentoo.org/doc/en/distcc.xml), but it doesn't really go into much depth in terms of Cross-Compiling. And I've also googled, but can't find much that's relevant or at least straight forward.

Here's my situation. I've got a number of computers.
1) an amd64
2) an x86 Athlon Thunderbird
3) an x86 Pentium 3
4) sometimes an x86 P4 laptop when I have it booted into knoppix.

I suppose my first and easiest questions is: when I'm setting the hosts should I include the computer thats only sometimes there? Will it just try to find it and if it doesn't find it, move on? Or will it freak when it can't find that IP address?

And here's the big issue. How can I use distcc across all these different platforms? I installed distcc on all of them, set up the hosts, did everything the distcc guide says, and emerged crossdev. I also just upgraded all the computers' gcc versions to 3.3.4-r1.

When I tried the compile on the Athlon box I wasn't surprised when I got this error:
Code:

cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: CPU you selected does not support x86-64 instruction set
distcc[32398] ERROR: compile apr_snprintf.c on 192.168.1.17 failed
make[4]: *** [apr_snprintf.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
cc1: error: CPU you selected does not support x86-64 instruction set
cc1: error: CPU you selected does not support x86-64 instruction set
distcc[32496] ERROR: compile apr_strnatcmp.c on 192.168.1.17 failed
make[4]: *** [apr_strnatcmp.lo] Error 1
make[4]: *** [apr_strtok.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/apache-2.0.51-r1/work/httpd-2.0.51/srclib/apr/strings'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/apache-2.0.51-r1/work/httpd-2.0.51/srclib/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.51-r1/work/httpd-2.0.51/srclib'
make: *** [all-recursive] Error 1

!!! ERROR: net-www/apache-2.0.51-r1 failed.
!!! Function src_compile, Line 190, Exitcode 2
!!! problem compiling Apache2 :(

Is this possible? How can I do it?

Thanks.



All times are GMT -5. The time now is 06:33 AM.