Discussion:
[fedora-arm] Cross-compiling to Fedora ARM using mock on x86_64?
Derek Atkins
2017-06-14 14:36:42 UTC
Permalink
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

--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
***@MIT.EDU PGP key available
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an em
Peter Robinson
2017-06-14 14:40:27 UTC
Permalink
Post by Derek Atkins
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.
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to arm-***@lists.fedoraproject.or
Robert Moskowitz
2017-06-14 15:15:15 UTC
Permalink
Post by Derek Atkins
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
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email
Jeffrey Bastian
2017-06-14 15:31:50 UTC
Permalink
Post by Derek Atkins
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_Versatile_Express_Emulation_with_QEMU

--
Jeff Bastian
Kernel QE - Hardware Enablement
Red Hat
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to arm-***@lists.fedo

Loading...