* [gentoo-catalyst] cross compilling for arm cpu
@ 2012-08-04 19:46 Cédric Caron
2012-08-04 20:10 ` Peter Stuge
0 siblings, 1 reply; 6+ messages in thread
From: Cédric Caron @ 2012-08-04 19:46 UTC (permalink / raw
To: gentoo-catalyst
[-- Attachment #1: Type: text/plain, Size: 258 bytes --]
Hello,
I used catalyst to cross compile a stage4 for my Raspberry Pi but this seems
to require some manual step to work.
Is anybody currently working on adding arm cross compiling support to
catalyst.
Best regards
Cédric
[-- Attachment #2: Type: text/html, Size: 2057 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] cross compilling for arm cpu
2012-08-04 19:46 [gentoo-catalyst] cross compilling for arm cpu Cédric Caron
@ 2012-08-04 20:10 ` Peter Stuge
2012-08-04 21:41 ` Cédric Caron
2012-08-17 11:58 ` Cédric Caron
0 siblings, 2 replies; 6+ messages in thread
From: Peter Stuge @ 2012-08-04 20:10 UTC (permalink / raw
To: gentoo-catalyst
Cédric Caron wrote:
> I used catalyst to cross compile a stage4 for my Raspberry Pi but
> this seems to require some manual step to work.
So what was your solution?
> Is anybody currently working on adding arm cross compiling support
> to catalyst.
I don't think actively no.
//Peter
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [gentoo-catalyst] cross compilling for arm cpu
2012-08-04 20:10 ` Peter Stuge
@ 2012-08-04 21:41 ` Cédric Caron
2012-08-05 15:30 ` Raúl Porcel
2012-08-17 11:58 ` Cédric Caron
1 sibling, 1 reply; 6+ messages in thread
From: Cédric Caron @ 2012-08-04 21:41 UTC (permalink / raw
To: gentoo-catalyst
> So what was your solution?
I user qemu-user to run the arm binary and distcc to use a native cross compiler.
The only problem is making chroot working with arm binary. The solution is to copy /usr/bin/qemu-static-arm and /usr/bin/qemu-static-arm-binfmt in the chroot directory.
I used this solution to build a simple stage4 with x11 for my Raspberry Pi.
You also need to modify chroot-functions.sh to fix a problem in get_libdir(). For now I just hardcoded the returned value.
https://bugs.gentoo.org/show_bug.cgi?id=429626
> I don't think actively no.
My solution only requires copying 2 files and deleting them at the end. This should not be difficult to add.
I can add a new option in catalyst to make this possible but I will need some help to do it properly. I never programed in python and my knowledge in bash is limited.
Cédric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-catalyst] cross compilling for arm cpu
2012-08-04 21:41 ` Cédric Caron
@ 2012-08-05 15:30 ` Raúl Porcel
2012-08-05 18:35 ` Cédric Caron
0 siblings, 1 reply; 6+ messages in thread
From: Raúl Porcel @ 2012-08-05 15:30 UTC (permalink / raw
To: gentoo-catalyst
On 08/04/12 23:41, Cédric Caron wrote:
>> So what was your solution?
>
> I user qemu-user to run the arm binary and distcc to use a native cross compiler.
>
> The only problem is making chroot working with arm binary. The solution is to copy /usr/bin/qemu-static-arm and /usr/bin/qemu-static-arm-binfmt in the chroot directory.
>
> I used this solution to build a simple stage4 with x11 for my Raspberry Pi.
>
> You also need to modify chroot-functions.sh to fix a problem in get_libdir(). For now I just hardcoded the returned value.
> https://bugs.gentoo.org/show_bug.cgi?id=429626
>
>> I don't think actively no.
>
> My solution only requires copying 2 files and deleting them at the end. This should not be difficult to add.
>
> I can add a new option in catalyst to make this possible but I will need some help to do it properly. I never programed in python and my knowledge in bash is limited.
>
> Cédric
>
>
Using qemu is not really crosscompiling, IMHO...although i agree its easier.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [gentoo-catalyst] cross compilling for arm cpu
2012-08-05 15:30 ` Raúl Porcel
@ 2012-08-05 18:35 ` Cédric Caron
0 siblings, 0 replies; 6+ messages in thread
From: Cédric Caron @ 2012-08-05 18:35 UTC (permalink / raw
To: gentoo-catalyst
> Using qemu is not really crosscompiling, IMHO...although i agree its easier.
I use qemu for python and shell scripts but c and c++ are really cross compiled using distcc to call x86 cross compiler.
It is probably possible to temporary add x86 binaries to replace some of the tools user but this will require more work.
And I plan to test distcc pump mode to do more native processing.
With this solution I am already compiling arm code faster and with more memory and storage available than on my Raspberry Pi
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [gentoo-catalyst] cross compilling for arm cpu
2012-08-04 20:10 ` Peter Stuge
2012-08-04 21:41 ` Cédric Caron
@ 2012-08-17 11:58 ` Cédric Caron
1 sibling, 0 replies; 6+ messages in thread
From: Cédric Caron @ 2012-08-17 11:58 UTC (permalink / raw
To: gentoo-catalyst
I created a bug in bugzilla with my patch.
https://bugs.gentoo.org/show_bug.cgi?id=431214
My version now includes a modified qemu-binfmt wrapper to run native version of selected tools
The only missing part to use a real cross compiler is a static version of gcc and any other tool you want to run natively.
Cédric
-----Original Message-----
From: Peter Stuge [mailto:peter@stuge.se]
Sent: samedi, 4. août 2012 10:11
To: gentoo-catalyst@lists.gentoo.org
Subject: Re: [gentoo-catalyst] cross compilling for arm cpu
C�dric Caron wrote:
> I used catalyst to cross compile a stage4 for my Raspberry Pi but
> this seems to require some manual step to work.
So what was your solution?
> Is anybody currently working on adding arm cross compiling support
> to catalyst.
I don't think actively no.
//Peter
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-08-17 12:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-04 19:46 [gentoo-catalyst] cross compilling for arm cpu Cédric Caron
2012-08-04 20:10 ` Peter Stuge
2012-08-04 21:41 ` Cédric Caron
2012-08-05 15:30 ` Raúl Porcel
2012-08-05 18:35 ` Cédric Caron
2012-08-17 11:58 ` Cédric Caron
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox