[opensuse-arm] Cross-compilation for armv7
Hi, please be patient with me, cross-compilation is completely new to me. I have an x86_64 host with opensuse 13.1 and want to cross-compile my own linux system for a raspberry pi. In my opensuse-repositories I found the two packages cross-arm-binutils (2.23.2-8.1.2) cross-armv7hl-gcc48-icecream-backend (4.8.1_20130909-3.2.1)
From what I unterstand, I should be able to cross-compile a linux system for armv7 after installing these two packages. Is this correct? In [1] it is stated that "openSUSE does not currently ship a cross-compiler for ARM." which is -- as far as I understand this -- a contradiction.
Ref [1] describes another solution which seems suboptimal to me. And from [2] I gather that cross-compilation currently does not work. This thread, however, deals with other versions of the packages given above. Do I have to expect the same problems? Thanks in advance for your help! Regards, Karl [1] https://en.opensuse.org/openSUSE:OpenSUSE_on_your_ARM_board [2] http://lists.opensuse.org/opensuse-arm/2015-07/msg00007.html -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi Karl, Am 14.11.2015 um 18:43 schrieb Karl Weber:
I have an x86_64 host with opensuse 13.1 and want to cross-compile my own linux system for a raspberry pi.
What exactly do you want to compile? osc does not need this.
In my opensuse-repositories I found the two packages
cross-arm-binutils (2.23.2-8.1.2) cross-armv7hl-gcc48-icecream-backend (4.8.1_20130909-3.2.1)
From what I unterstand, I should be able to cross-compile a linux system for armv7 after installing these two packages. Is this correct?
Please do not confuse people: armv7hl is Raspberry Pi 2 only, whereas you say "raspberry pi" above. Raspberry Pi is armv6hl. For the kernel it should not matter, but for the userspace it does.
In [1] it is stated that "openSUSE does not currently ship a cross-compiler for ARM." which is -- as far as I understand this -- a contradiction.
It is simply out-of-date - you can update it like any Wiki user can.
Ref [1] describes another solution which seems suboptimal to me.
And from [2] I gather that cross-compilation currently does not work. This thread, however, deals with other versions of the packages given above. Do I have to expect the same problems?
Yes, older armv7hl cross-compilers will not work out-of-the-box either, except when you manually create symlinks or other workarounds. OBS does not use cross-compilers, so those packages are pretty much untested. For aarch64 it does work because binutils and gcc names match. Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton; HRB 21284 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (2)
-
Andreas Färber
-
Karl Weber