Re: Debian cross infrastructure maintenance proposal
Volker Grabsch wrote:
On Mon, Apr 17, 2006 at 05:03:14PM +0200, firstname.lastname@example.org wrote:
Somehow, I miss an improtant step of getting Debian packages
cross-compiled on Debian. Current state of affairs is that they
1. require patching to cross-compile cleanly (--host, --build etc).
that's the way I am currently exploring for *-uclibc, arm-eabi
That's the way I also currently prepare packages.
2. require a solution like scratchbox to create an emulation
environment for the --host target on the --build host
in this case, scratchbox would need to be in Debian I think
As Nikita explained to me, there is a big difference in the HOST
and BUILD environments: compiled binaries won't run if they are
cross compiled. So there will always be packages which need to
compile some parts for the HOST and some part for the BUILD
Hopefully, there will not be many packages that need to
run stuff on the --host target (but, perl comes to mind).
Another way me be to emulate the HOST environment. For example,
for w32 cross compiling you would need "wine" or similar, but
I don't think this is the way to go. It's much more complicated
than simply to differ between HOST and BUILD architecture.
Yes, for other CPUs a full emulator would be required (e.g. qemu).
I am also not really in favor of this solution, but again, for stuff
like perl this might be the only way...