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

Re: OT: Just a question - building live systems for arm on intel machines?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jun 21, 2017 at 03:49:16PM +0200, Hans wrote:
> Hi folks, 
> 
> sorry, to ask here, but I do not know where to ask else.
> 
> Just a question: Is it possible, to build live-file systems with live-build for 
> arm64 cpu's on an intel based system like i386 or amd64?

[...]

All this is subsumed under the moniker "cross build". And the short
answer is that yes, in principle it is possible (a decent C compiler,
for example, supports cross compiling, etc.).

In practice, though, things become... "interesting". For example,
what do you do if your build's "configure" interrogates your
system? Your system will give the wrong answers! So the build
system has to offer a way to provide pre-packaged answers ("yes,
this is an ARM with a hardware floating point unit" or whatever,
instead of the more comfortable "go find out for yourself").

And then, when the thing is built and you say "make test"? Do
you have an emulator around?

To get you started on how Debian tries to tackle that, see

  https://wiki.debian.org/CrossBuildPackagingGuidelines

So the answer is... for some packages it works, for some not. It
depends among other things on the build system.

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAllKfDsACgkQBcgs9XrR2kYy0ACfdw9bWW0nG75gWlcv4DFZ37qB
6UsAnRpgWLcDD8NpZIGCRjLxJORYdxE4
=QfsT
-----END PGP SIGNATURE-----


Reply to: