[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Emulated buildds (for SCC architectures)?

On Fri, Mar 18, 2005 at 06:58:50PM -0800, Thomas Bushnell BSG wrote:
> Peter 'p2' De Schrijver <p2@mind.be> writes:
> > A much faster solution would be to use distcc or scratchbox for
> > crosscompiling.
> Debian packages cannot be reliably built with a cross-compiler,
> because they very frequently need to execute the compiled binaries as
> well as just compile them.

That's exactly the problem which is solved by using distcc or
scratchbox. distcc basically sends preprocessed source to another
machine and expects an object back. So you run the build on a machine of
the target arch (or an emulator), but the compiler part is actually a
small program which sends the source to the fast machine running the
cross compiler and expects the object code back. 
Scratchbox provides a sandbox on the machine doing the cross compile, in which 
target binaries can be executed by either running them on a target board
sharing the sandbox filesystem using NFS or by running them in qemu.


Peter (p2).

Attachment: signature.asc
Description: Digital signature

Reply to: