Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120076 - have catalyst automatically setup a cross-compiling environment
Summary: have catalyst automatically setup a cross-compiling environment
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: http://www.gentoo.org/doc/en/cross-co...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-23 10:19 UTC by Andrew Gaffney (RETIRED)
Modified: 2007-10-12 00:08 UTC (History)
2 users (show)

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


Attachments
automatically sets up cross-distcc-fu (cat2.patch,891 bytes, patch)
2006-01-23 10:20 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new patch that uses single quotes instead of double quotes to create the wrapper (cat2.patch,1.04 KB, patch)
2006-01-24 07:07 UTC, Andrew Gaffney (RETIRED)
Details | Diff
new (hopefully) working patch (cat2.patch,859 bytes, patch)
2006-01-24 08:09 UTC, Andrew Gaffney (RETIRED)
Details | Diff
slightly different approach to wrapper script (cat2.patch,783 bytes, patch)
2006-01-24 14:05 UTC, Andrew Gaffney (RETIRED)
Details | Diff
patch (catalyst.patch,1006 bytes, patch)
2007-04-27 02:29 UTC, Andrew Gaffney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2006-01-23 10:19:48 UTC
I came up with a very easy method for seamless cross-compiling with distcc. It's described in <http://www.gentoo.org/doc/en/cross-compiling-distcc.xml>. I've put together a patch to automatically perform these steps when the user wants to use distcc with catalyst.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-01-23 10:20:52 UTC
Created attachment 77926 [details, diff]
automatically sets up cross-distcc-fu

This is against catalyst-2.0_rc20, but the changes are localized so easy to put into any version.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2006-01-24 07:07:19 UTC
Created attachment 77998 [details, diff]
new patch that uses single quotes instead of double quotes to create the wrapper

I'm currently running an amd64 stage1 build with this patch. It is distributing properly to the sparc.
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2006-01-24 08:09:06 UTC
Created attachment 78003 [details, diff]
new (hopefully) working patch

When I switched to single quotes in the last patch, it killed the ${CHOST} substitution when writing out the wrapper script. This should fix that.
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2006-01-24 14:05:06 UTC
Created attachment 78029 [details, diff]
slightly different approach to wrapper script

I just finished a stage 1, 2, and 3 build using this final patch.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-02-01 13:14:35 UTC
Got any ideas on how to make this work on CHOST=i[3456]86-* stuff?  I have no problem adding this, but don't want to introduce any new bugs/problems with it.
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2006-02-01 13:50:12 UTC
Well, that only works if someone puts 'export CC=cc' in their envscript, and even then some builds don't work with it. The method is already broken to begin with.

The proper way to do this is to build a i586-pc-linux-gnu "cross-compiler" on a i686-pc-linux-gnu box or just create symlinks in the proper place.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-20 18:05:31 UTC
OK.  I (finally) have a clue and have looked at this.  It looks good except for the cleanup.  We don't want to just remove everything.  Instead, we should be restoring it to its previous state, so we can still have a distcc package if this were a LiveCD.
Comment 8 Andrew Gaffney (RETIRED) gentoo-dev 2007-04-27 02:29:40 UTC
Created attachment 117356 [details, diff]
patch

This updates the patch to put /usr/lib/distcc/bin/ back to the way it was before we touch it, instead of just clearing it all together.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-11 23:39:23 UTC
OK.  This is in SVN now and will show up in 2.0.5_pre4 or later.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-12 00:08:12 UTC
This should be fixed in 2.0.5_pre4.  Please test this version of catalyst (or newer) and report back if it does not work.

Thanks