Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-09-2007
timberwolf timberwolf is offline
Registered User
 
Name: Bailey Wu
Organization: University of Sydney
Project: DGC
 
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 17
Compiling Ice with distcc

Hi

Does any one know if I can compile ice with distcc and ccache?

I'm compiling on a laptop and with out distcc or ccache it's very slow.


Thanks
__________________
---------------------------------------------------------------------------
Orca robotics project
http://orca-robotics.sourceforge.net/
---------------------------------------------------------------------------
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
Reply With Quote
  #2 (permalink)  
Old 02-10-2007
Yunqiao Yin's Avatar
Yunqiao Yin Yunqiao Yin is offline
Registered User
 
Name: Yin Yunqiao
Organization: Baosteel
Project: real time process control system
 
Join Date: Jan 2004
Location: China
Posts: 56
Quote:
Originally Posted by timberwolf View Post
Hi

Does any one know if I can compile ice with distcc and ccache?

I'm compiling on a laptop and with out distcc or ccache it's very slow.


Thanks
No problem,just use it! We have built our project(including Ice source) with ccache&distcc for a long time. If you want to use distcc , you'd better have the same compiler on each host.
__________________
Yunqiao Yin
Baosteel
real-time process control
ICE中文论坛http://lingdoo.just.as 欢迎大家捧场
Reply With Quote
  #3 (permalink)  
Old 02-15-2007
timberwolf timberwolf is offline
Registered User
 
Name: Bailey Wu
Organization: University of Sydney
Project: DGC
 
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 17
Quote:
Originally Posted by Yunqiao Yin View Post
No problem,just use it! We have built our project(including Ice source) with ccache&distcc for a long time. If you want to use distcc , you'd better have the same compiler on each host.
I tried to use it but it didn't work. ice does not compile with anything other than CXX=g++ and CC=gcc. using it with distcc cache /usr/bin/gcc $* doesn't work.

Can I ask how you set things up for it to work?
__________________
---------------------------------------------------------------------------
Orca robotics project
http://orca-robotics.sourceforge.net/
---------------------------------------------------------------------------
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
Reply With Quote
  #4 (permalink)  
Old 02-16-2007
Yunqiao Yin's Avatar
Yunqiao Yin Yunqiao Yin is offline
Registered User
 
Name: Yin Yunqiao
Organization: Baosteel
Project: real time process control system
 
Join Date: Jan 2004
Location: China
Posts: 56
Quote:
Originally Posted by timberwolf View Post
I tried to use it but it didn't work. ice does not compile with anything other than CXX=g++ and CC=gcc. using it with distcc cache /usr/bin/gcc $* doesn't work.

Can I ask how you set things up for it to work?
config/Make.rules.Linux :
Code:
....
ifeq ($(CXX),c++)
   CXX = ccache c++    #add this line
   ifeq ($(MACHINE),sparc64)
      #
      # We are an ultra, at least, and so have the atomic instructions
      #
      USE_SPARC_ASM     = yes
      CXXARCHFLAGS      = -mcpu=ultrasparc -pipe -Wno-deprecated -DUSE_SPARC_ASM
   endif
....
and set the enviroments:
Code:
CCACHE_PREFIX=distcc
CCACHE_DIR=/path/to/cache/dir
CCACHE_LOGFILE=/path/to/ccache/logfile
DISTCC_HOSTS="host1 host2 host3 ..."
CCACHE_NOLINK=1
Then enjoy fast compile:
make -j 10
__________________
Yunqiao Yin
Baosteel
real-time process control
ICE中文论坛http://lingdoo.just.as 欢迎大家捧场
Reply With Quote
  #5 (permalink)  
Old 02-18-2007
timberwolf timberwolf is offline
Registered User
 
Name: Bailey Wu
Organization: University of Sydney
Project: DGC
 
Join Date: Apr 2006
Location: Sydney, Australia
Posts: 17
Quote:
Originally Posted by Yunqiao Yin View Post
config/Make.rules.Linux :
Code:
....
ifeq ($(CXX),c++)
   CXX = ccache c++    #add this line
   ifeq ($(MACHINE),sparc64)
      #
      # We are an ultra, at least, and so have the atomic instructions
      #
      USE_SPARC_ASM     = yes
      CXXARCHFLAGS      = -mcpu=ultrasparc -pipe -Wno-deprecated -DUSE_SPARC_ASM
   endif
....
and set the enviroments:
Code:
CCACHE_PREFIX=distcc
CCACHE_DIR=/path/to/cache/dir
CCACHE_LOGFILE=/path/to/ccache/logfile
DISTCC_HOSTS="host1 host2 host3 ..."
CCACHE_NOLINK=1
Then enjoy fast compile:
make -j 10
Thanks a lot man, I'll try it next time I compile.
__________________
---------------------------------------------------------------------------
Orca robotics project
http://orca-robotics.sourceforge.net/
---------------------------------------------------------------------------
Bailey Wu
Australian Centre for Field Robotics
http://www.cas.edu.au/content.php/266.html
University of Sydney
www.usyd.edu.au
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Ice-3 error orphean Help Center 13 01-10-2006 07:04 AM
HELP compiling !! akdess Help Center 1 04-07-2005 09:37 AM
Compiling Ice 1.2.0 on RH 9.0 Jan_Holst Help Center 2 02-02-2004 12:38 PM
Compiling ICE 1.2.0 catalin Help Center 7 01-16-2004 06:40 AM
Compiling ICE with VC 6.0 jpm Help Center 2 05-30-2003 06:51 PM


All times are GMT -4. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.