Hi,
I'm looking at building some packages for Fedora ARM. Is there any way I can use mock on my x86_64 system to cross-compile a package for ARM? I'm on Fedora 25, but I'm not seeing any cross-compiler options in mock. If I set arch or target I still get an error that x86_64 is not a valid platform to build for arm.
A good search seems to show some work done back in 2010 for Fedora 10, but that's 7-year-old code which I suspect wont work with modern stuff.
So what's the best way (short of building the packages on my poor low-powered ARM system) to get some packages built. E.g. python-crcmod.
Thanks,
-derek
On Wed, Jun 14, 2017 at 3:36 PM, Derek Atkins warlord@mit.edu wrote:
Hi,
I'm looking at building some packages for Fedora ARM. Is there any way I can use mock on my x86_64 system to cross-compile a package for ARM? I'm on Fedora 25, but I'm not seeing any cross-compiler options in mock. If I set arch or target I still get an error that x86_64 is not a valid platform to build for arm.
A good search seems to show some work done back in 2010 for Fedora 10, but that's 7-year-old code which I suspect wont work with modern stuff.
So what's the best way (short of building the packages on my poor low-powered ARM system) to get some packages built. E.g. python-crcmod.
mock doesn't support cross compiling. The only thing you can really cross compile is self contained things like the kernel/u-boot and similar stuff.
On 06/14/2017 10:36 AM, Derek Atkins wrote:
Hi,
I'm looking at building some packages for Fedora ARM. Is there any way I can use mock on my x86_64 system to cross-compile a package for ARM? I'm on Fedora 25, but I'm not seeing any cross-compiler options in mock. If I set arch or target I still get an error that x86_64 is not a valid platform to build for arm.
A good search seems to show some work done back in 2010 for Fedora 10, but that's 7-year-old code which I suspect wont work with modern stuff.
So what's the best way (short of building the packages on my poor low-powered ARM system) to get some packages built. E.g. python-crcmod.
Yo, Derek,
Some run a virtual arm machine on their x86_64 system and compile there.
Bob
On Wed, Jun 14, 2017 at 10:36:42AM -0400, Derek Atkins wrote:
So what's the best way (short of building the packages on my poor low-powered ARM system) to get some packages built. E.g. python-crcmod.
Depending on just how low-powered your ARM system is, it might be quicker to run an ARM virtual machine on your x86 system (emulating ARM with qemu).
https://fedoraproject.org/wiki/Architectures/ARM/F25/Installation#For_Versat...