LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-28-2004, 03:05 AM   #1
Moebius
Member
 
Registered: Dec 2002
Location: Milwaukee, WI
Distribution: Ubuntu, Kubuntu, Debian, CentOS
Posts: 216

Rep: Reputation: 30
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.
 
Old 10-15-2004, 12:02 PM   #2
MrJoshua
Member
 
Registered: Apr 2002
Location: Houston Texas
Distribution: Debian / Gentoo / RHEL
Posts: 209

Rep: Reputation: 31
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.
 
Old 01-09-2008, 07:20 AM   #3
Guerillero
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
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 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross Compiling dosnlinux Programming 5 03-01-2006 12:12 PM
wx widget and cross compiling guideweb Programming 0 09-21-2005 12:06 AM
cross-compiling? jon_k Programming 3 12-09-2004 10:36 AM
cross compiling with g++ hornofsalvation Linux - Newbie 2 10-09-2004 11:29 PM
Should compiling on a non-standard architecture be difficult? Travis86 Linux - Software 0 02-26-2004 11:12 PM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration