Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2 binary server on the same machine (x86 vs ARM)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sun Aug 24, 2014 9:18 am    Post subject: 2 binary server on the same machine (x86 vs ARM) Reply with quote

Hello,

I have already setup a binary server for my x86 machines.

Now, I would like to created a second one for ARM hosts ... but how ?
I mean, it looks to me I need 2 differents make.conf, but is playing with emerge's PORTAGE_CONFIGROOT enough ?

Can I share the same ebuild tree PORTDIR, temp dir PORTAGE_TMPDIR ? (stating I'll not update both binhost at the same time).
I think also I have to specify an alternative place for ARM packages PKGDIR, right ?

Well, all in all, am I in the right direction ?

Laurent
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Sun Aug 24, 2014 9:52 am    Post subject: Reply with quote

destroyedlolo,

Code:
emerge crossdev

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sun Aug 24, 2014 11:51 am    Post subject: Reply with quote

Yes, it's done, now it's a question of avoiding any local compilation :D
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Sun Aug 24, 2014 12:04 pm    Post subject: Reply with quote

destroyedlolo,

You can't avoid local compilation. Some packages (e.g. python and perl) build some code, then try to run it on the build host.
Also gcc must build locally.

The best all round solution is cross distcc running in pump mode.

On the ARM box (in my case a Raspberry Pi) you run
Code:
pump emerge -uDNav @world
and my AMD64 does most of the hard work.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Sun Aug 24, 2014 3:54 pm    Post subject: Reply with quote

You need separate directories for any directory which receives target-specific files. At a minimum, this includes PORTAGE_TMPDIR and PKGDIR. You can share PORTDIR and DISTDIR.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Sun Aug 24, 2014 8:27 pm    Post subject: Reply with quote

Thanks Hu for your tips,

NeddySeagoon wrote:
You can't avoid local compilation. Some packages (e.g. python and perl) build some code, then try to run it on the build host.
Also gcc must build locally.

I'll see : it will be my first "cross compiled" bin host :lol:
Anyway, I'll run the system from sata disk and, as you said, distcc will be my friend.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Wed Sep 10, 2014 8:06 pm    Post subject: Reply with quote

Well, I thought about it : for me (but I be wrong), I need to totally duplicate the ARM system on my BINHOST ... which unfortunately doesn't have enough disk space.
On this other hand, the Banana is fast enough for doing local emerging (with help of Distcc) so I give up for the moment :oops:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54214
Location: 56N 3W

PostPosted: Wed Sep 10, 2014 8:22 pm    Post subject: Reply with quote

destroyedlolo,

You can and should share /usr/portage (just the tree) and /usr/portage/distfiles (the sources)
You must make /usp/portage/packages arch specific.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Thu Sep 11, 2014 12:03 am    Post subject: Reply with quote

Well, I found explaining what I was missing Cross-Compiling With Portage :oops:

So I did
Code:
emerge-wrapper --target armv7a-hardfloat-linux-gnueabi --init

and fill etc/portage/* stuffs from my bPI one.
Great.

But I missed something about profile as emerge is complaining about :
Quote:
* ARCH is not set... Are you missing the '/usr/armv7a-hardfloat-linux-
* gnueabi/etc/portage/make.profile' symlink? Is the symlink correct? Is
* your portage tree complete?


Any tips to solve that ?

[edited] Missed the symlink ... compiling [/edited]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum