Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Raspberry pi 3 32bit - distcc - crossdev - MacOSX
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
vhristev
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Sat Jan 21, 2017 9:44 pm    Post subject: Raspberry pi 3 32bit - distcc - crossdev - MacOSX Reply with quote

Hey Guys ,

Anyone offload his Pi with hackintosh. I want to offload it on my Intel Quad Xeon W3520

I'm new to cross compiling and i stuck on OS X machine. Back in the days i had chain of ~30 machines but all of them was same arch.

Anyone did a MasOSX distcc and crossdev for ARM ?

Here is where I'm stuck:

Wiki i follow:
https://wiki.gentoo.org/wiki/Raspberry_Pi/Cross_building#crossdev

localhost bin # ls -l
total 4
lrwxrwxrwx 1 root root 15 Jan 21 18:34 armv7a-hardfloat-linux-gnueabi-c++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 Jan 21 18:34 armv7a-hardfloat-linux-gnueabi-c++-4.9.4 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 Jan 21 18:34 armv7a-hardfloat-linux-gnueabi-g++ -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 Jan 21 18:34 armv7a-hardfloat-linux-gnueabi-g++-4.9.4 -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 Jan 21 18:34 armv7a-hardfloat-linux-gnueabi-gcc -> /usr/bin/distcc
lrwxrwxrwx 1 root root 15 Jan 21 18:34 armv7a-hardfloat-linux-gnueabi-gcc-4.9.4 -> /usr/bin/distcc
-rwxr-xr-x 1 root root 86 Jan 21 18:45 armv7j-hardfloat-linux-gnueabi-wrapper
lrwxrwxrwx 1 root root 38 Jan 21 18:47 c++ -> armv7j-hardfloat-linux-gnueabi-wrapper
lrwxrwxrwx 1 root root 38 Jan 21 18:47 cc -> armv7j-hardfloat-linux-gnueabi-wrapper
lrwxrwxrwx 1 root root 38 Jan 21 18:47 g++ -> armv7j-hardfloat-linux-gnueabi-wrapper
lrwxrwxrwx 1 root root 38 Jan 21 18:47 gcc -> armv7j-hardfloat-linux-gnueabi-wrapper


Error from OS X:
(dcc_execvp) ERROR: failed to exec armv7a-hardfloat-linux-gnueabi-gcc: No such file or director
_________________
Being lazy means being smart
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jan 21, 2017 10:25 pm    Post subject: Reply with quote

vhristev,

You set up distcc on the heavy lifter as a helper. The symlinks you posted are not required for portage to use distcc.
You install distcc on the Pi anh set up the /etc/distcc/hosts file. distccd only runs on the helper.

If crossdev worked you will have /usr/armv7a-hardfloat-linux-gnueabi/ which is your armv7a-hardfloat-linux-gnueabi target directory.
Should you feel the need to pure cross compile stuff, it will install here.

You will also have /usr/bin/armv7a* which is your cross compile kit.

When your Pi distributes work, because you set the FEATURES in its make.conf, it should just work.

Testing the cross compiler on its own is a bit more difficult.

In /usr/armv7a-hardfloat-linux-gnueabi/etc/portage, fix the profile symlink. The embedded profile is not useful.
Set up /usr/armv7a-hardfloat-linux-gnueabi/etc/portage/make.conf That's the make.conf that will be used for pure cross (not cross distcc) compiling for the Pi.
Run
Code:
emerge-wrapper -t armv7a-hardfloat-linux-gnueabi --init

Now, in theory,
Code:
armv7a-hardfloat-linux-gnueabi-emerge Package1 Package2 ...
will install arm7a code into /usr/armv7a-hardfloat-linux-gnueabi/

This will mostly fail as /usr/armv7a-hardfloat-linux-gnueabi/ is empty ... you need to install a stage3 there or put up with stuff failing because of missing dependencies.
Its a lot of work just to test your cross toolchain.

Other things will fail as they are cross compile hostile, or poorly tested for cross compiling.
_________________
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
vhristev
n00b
n00b


Joined: 08 Jan 2014
Posts: 22

PostPosted: Mon Jan 23, 2017 2:23 pm    Post subject: Reply with quote

Hello ,

I'm trying to setup emerge and kernel compilation to use my x86 OS X machine.

That is the goal. I already test to compile code on OS X a
nd move it to Raspberry and its working.


#### Compile the code on OS X machine:
{12:12}g1r5-hack:~/Desktop@master✗✗✗✗✗✗ vhristev$ /usr/local/linaro/arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-gcc -g -o hello hello.c

#### Move the code to Raspberry Pi 3
{12:14}g1r5-hack:~/Desktop@master✗✗✗✗✗✗ vhristev$ scp hello vhristev@192.168.1.5:~/

#### Test the code on Raspberry
g1r5-berry vhristev # ./hello
Hello World
#### END

I just want to use emerge and kernel compile from Raspberry and my OS X to help out and at some point I can put in the chain my MacBook Pro

After i achieve OS X cross compilation I will try to add my Synology 1515+ .
_________________
Being lazy means being smart
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