Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200095 - sys-devel/catalyst-2.0.5_pre5 (or svn-trunk) patch to add support for sys-devel/icecream cluster compiling
Summary: sys-devel/catalyst-2.0.5_pre5 (or svn-trunk) patch to add support for sys-dev...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords: InVCS
Depends on: 200516
Blocks:
  Show dependency tree
 
Reported: 2007-11-23 16:57 UTC by Tais P. Hansen
Modified: 2007-11-27 14:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Adds sys-devel/icecream support to catalyst (2.0.5-icecream-support.diff,5.23 KB, patch)
2007-11-23 16:57 UTC, Tais P. Hansen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tais P. Hansen 2007-11-23 16:57:13 UTC
Here's a patch which enables sys-devel/icecream support for compiling targets in clusters.

Requires the icecream daemon to be running on the host which is running catalyst. It is not necessary to run the daemon inside catalyst as catalyst will use the build host's icecc job directory (/var/cache/icecream).

Remember to enable icecream by adding the keyword "icecream" to the options string in /etc/catalyst/catalyst.conf. Also remember to increase the number of make jobs by setting MAKEOPTS in /etc/catalyst/catalystrc. Icecream figures out how many jobs can be distributed automatically so you can set the number of jobs high without overloading the compile host. I.e. MAKEOPTS="-j15" is working just fine here.
Comment 1 Tais P. Hansen 2007-11-23 16:57:52 UTC
Created attachment 136784 [details, diff]
Adds sys-devel/icecream support to catalyst
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-24 06:24:31 UTC
Cool.  I'll definitely check this out...
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-25 05:39:12 UTC
Added to SVN... this will be released in a new catalyst shortly...
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-25 05:44:46 UTC
Just to note, neither of us are familiar with icecream or how its usage differs from that of distcc. If this breaks, you've bought it. We'll also probably CC you on any bugs that people file in this code :)
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-25 05:48:22 UTC
He's such a flirt, isn't he?

What he means is we'll need to defer to you on questions until we've gotten a grasp on the functionality of icecream.

This is in 2.0.5_pre6 which is going in the tree now.  Let me know if it doesn't work for you.
Comment 6 Tais P. Hansen 2007-11-27 12:40:47 UTC
I'm experiencing an issue with first stage building. The root-in-chroot stuff is doing weird things specifically breaking libperl configure (testing gcc) with permission problems. I'm working on figuring out why although I cannot reproduce it outside catalyst.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-27 12:45:30 UTC
Well, since it doesn't affect anything when it's not enabled, we're not going to touch the code. If you find a fix, please submit a patch.
Comment 8 Tais P. Hansen 2007-11-27 14:10:10 UTC
I've narrowed it down to a bug in icecreams handling of $PATH when searching for the actual compiler. Perl's configure script adds /usr/libexec to $PATH and icecream sees gcc in /usr/libexec/gcc and forgets to check if it's actually a file. I'll have a patch ready for icecream in a few minutes.