Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc on sparc and a pentium4 machine
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Mon Jun 19, 2006 3:52 pm    Post subject: distcc on sparc and a pentium4 machine Reply with quote

Hi all,

I am running a sparc machine and want to use another p4 machine as a helper for this box. I followed the guides

http://www.gentoo.org/doc/en/distcc.xml
and
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml

I made the changes on the local system as specified. And on the remote system as follows:
Code:
ls -l  /usr/lib/distcc/bin/
total 4
lrwxrwxrwx  1 root root 25 Jun 19 23:54 c++ -> i686-pc-linux-gnu-wrapper
lrwxrwxrwx  1 root root 25 Jun 19 23:54 cc -> i686-pc-linux-gnu-wrapper
lrwxrwxrwx  1 root root 25 Jun 19 23:54 g++ -> i686-pc-linux-gnu-wrapper
lrwxrwxrwx  1 root root 25 Jun 19 23:54 gcc -> i686-pc-linux-gnu-wrapper
lrwxrwxrwx  1 root root 15 Jun 19 20:42 i686-pc-linux-gnu-c++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 19 20:42 i686-pc-linux-gnu-g++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 19 20:42 i686-pc-linux-gnu-gcc -> /usr/bin/distcc
-rwxr-xr-x  1 root root 72 Jun 19 22:26 i686-pc-linux-gnu-wrapper

where i686-pc-linux-gnu-wrapper file is as follows:
Code:
#!/bin/bash
exec /usr/lib/distcc/bin/i686-pc-linux-gnu-g${0:$[-2]} "$@"


both hosts have distccd daemon running. And the host files in /etc/distcc/hosts
contain the correspondin ips.

However, I still get lines like these while compiling things:
Code:

distcc[26168] (dcc_build_somewhere) Warning: failed to distribute, running locally instead
distcc[26173] (dcc_build_somewhere) Warning: failed to distribute, running locally instead


This is on the sparc machine. I haven't tried on the p4 machine, but I don't need that anyways.
FEATURES="distcc" is there in make.conf in both the machines too (ofcourse!).

So what could be the issue??

thanks
Saurabh
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Mon Jun 19, 2006 4:35 pm    Post subject: Reply with quote

Hrm, after reading the DistCC Cross Compiling Guide, it appears that you are trying to have the SPARC act as a distcc host for the Pentium 4 box. From what you're saying in your post though, it seems like you want the Pentium 4 to help speed-up builds for the SPARC. Can you clarify on which way you want it to work?
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Mon Jun 19, 2006 5:02 pm    Post subject: Reply with quote

Yes, I want the pentium4 to speed up my ultrasparc machine's code compilation.
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Mon Jun 19, 2006 5:33 pm    Post subject: Reply with quote

Then from what I can gather, I think you have things backwards. The document as written actually happens to be setup quite well for what you want to do. In particular, when you do code listings 1.1 and 1.4 on the Pentium 4 box, you should be able to quite literally do what it says since that's the correct CHOST that the distcc instance on the Pentium 4 box needs to be running.
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Mon Jun 19, 2006 6:00 pm    Post subject: Reply with quote

Code:
Note: The following instructions are to be performed only on the box running the emerge. Do not perform these steps on the helper boxes.


This is what it says just before section 1.1, so I think the host side atleast is correct..
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Mon Jun 19, 2006 6:21 pm    Post subject: Reply with quote

okay, I forgot to add the hosts to the conf.d file and the part of cross compiling, I had done it on both the machines, while it had to be done only on the host. So now I think cross compiling might be working, as I got this.
Code:
distcc[19647] ERROR: compile /var/tmp/ccache/pathsub.tmp.super.19635.i on 10.102.28.5 failed with exit code 110
gmake[1]: *** [host_pathsub.o] Error 110
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.4/work/mozilla/config'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-1.5.0.4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  mozilla-firefox-1.5.0.4.ebuild, line 176:   Called die

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


why's this??
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Mon Jun 19, 2006 6:27 pm    Post subject: Reply with quote

Do you have anymore error messages that go along with that?

Also if distcc has logging, do you have that turned on?
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Mon Jun 19, 2006 7:26 pm    Post subject: Reply with quote

no, those are the only errors I see. The default logging is to syslog, but I can't see anything there either.
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 903

PostPosted: Mon Jun 19, 2006 7:38 pm    Post subject: Reply with quote

man distcc wrote:
110 Compiler not found.

Typicallly this would mean that the ${CHOST}-gcc for the sparc was invoked on the pentium, but not found in the $PATH.
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Tue Jun 20, 2006 4:31 am    Post subject: Reply with quote

So what should I do then??

Code:
lrwxrwxrwx  1 root root 15 Jun 20 02:12 c++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 20 02:12 cc -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 20 02:12 g++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 20 02:12 gcc -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 20 02:12 i686-pc-linux-gnu-c++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 20 02:12 i686-pc-linux-gnu-g++ -> /usr/bin/distcc
lrwxrwxrwx  1 root root 15 Jun 20 02:12 i686-pc-linux-gnu-gcc -> /usr/bin/distcc


as this should work with the above things on the pentium.
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 903

PostPosted: Tue Jun 20, 2006 12:06 pm    Post subject: Reply with quote

On the pentium there is a cross-compiler named something like sparc-unknown-linux-gnu-gcc and in $PATH?
As Weeve pointed out, the configuration changes you have shown are for using the sparc as host for code distributed from the pentium.
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Tue Jun 20, 2006 3:24 pm    Post subject: Reply with quote

neither. The compiler doesn't exist on the p4 machine. What do I do to have that??


thanks
Saurabh
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 903

PostPosted: Tue Jun 20, 2006 4:04 pm    Post subject: Reply with quote

You would create a sparc cross-compiler toolchain on the pentium as described in the Distcc Cross-compiling Guide you linked in your first post.
I.e. on the pentium:
Code:
crossdev -t sparc
Back to top
View user's profile Send private message
sobers_2002
Veteran
Veteran


Joined: 16 Mar 2004
Posts: 1128

PostPosted: Wed Jun 21, 2006 9:05 pm    Post subject: Reply with quote

somehow I missed that!! Will try it and post back :)
_________________
Pdict - dockable dictionary client for linux
FREE97WIN: Use this code on Dreamhost and you get $97 off !!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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