GNU bug report logs -
#77033
Deploy to machine with different architecture
Previous Next
Full log
View this message in rfc822 format
Hi Sergey, Roman,
Sergey Trofimov <sarg <at> sarg.org.ru> writes:
[...]
>>> I don't see a "system" field in the machine or operating system
>>> record. So I'm not sure if we have a way to infer that yet.
>>>
>>> Would it make sense to add such a field and chose the target
>>> architecture per machine?
>>>
>
> This totally makes sense to me and is the correct way. However I wonder
> if both the `system` and the `target` fields should be added, so that
> the user could choose either native or cross build.
We already have platform-system->target and platform-target->system, so
I assume having one or the other could be enough?. Looking at
machine-ssh-configuration, I also see we already have a 'system' field.
Perhaps 'guix deploy' could have a '--cross-build' option, or the record
could have a 'cross-build?' field, or both, with the CLI taking
precedence over the later, and the target type would be inferred from
the system via platform-system->target?
In my experience, assuming a powerful x86_64 workstation,
cross-compilation > native-compilation (on lower spec ARM machine) >
emulated native compilation (QEMU).
I hope I understood the context correctly :-).
--
Thanks,
Maxim
This bug report was last modified 88 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.