Re: distcc and cross-compiling for FreeBSD on Linux/Solaris

2005-10-13 Thread Andrew P.
Today i had success compiling:

firefox on Debian/i386 with
gcc version 3.4.5 20050821 (prerelease) (Debian 3.4.4-8)
(worked out-of-the-box)

squid on FC4/amd64 with
gcc version 4.0.1 20050727 (Red Hat 4.0.1-5)
(required CFLAGS+=-m32 in /etc/make.conf
on the distcc client)

Both firefox and squid work flawlessly on
FreeBSD/i386 6.0-BETA5.

My roadmap is to build world and kernel
on both Linuxes (with other gcc versions)
and then to try and do it all on Solaris 10,
sparc64.

Wish me luck :-)


Cheerz,
Andrew P.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


distcc and cross-compiling for FreeBSD on Linux/Solaris

2005-10-10 Thread Andrew P.
We've got some mostly idle, but powerful sparc64
servers running Solaris 9/10, as well as a host of
Linux servers (x86 and x86_64). Of course, all the
real work is done on a pack of FreeBSD boxes :-)

Some days ago I started using ccache and distcc,
and I really love these tools. Now I want to get the
Solaris and Linux servers to do something useful
and compile world, kernels and ports for the
FreeBSD boxes. Is there a somewhat
comprehensive guide to this? Can somebody
share his experience with me? I'm now looking
into crosstool how-to's, but I have no knowledge
of gcc intrinsics, and some points are very hard
for me to understand.

Thanks,
Andrew P.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: distcc and cross-compiling for FreeBSD on Linux/Solaris

2005-10-10 Thread Garrett Cooper

On Oct 10, 2005, at 2:34 AM, Andrew P. wrote:


We've got some mostly idle, but powerful sparc64
servers running Solaris 9/10, as well as a host of
Linux servers (x86 and x86_64). Of course, all the
real work is done on a pack of FreeBSD boxes :-)

Some days ago I started using ccache and distcc,
and I really love these tools. Now I want to get the
Solaris and Linux servers to do something useful
and compile world, kernels and ports for the
FreeBSD boxes. Is there a somewhat
comprehensive guide to this? Can somebody
share his experience with me? I'm now looking
into crosstool how-to's, but I have no knowledge
of gcc intrinsics, and some points are very hard
for me to understand.

Thanks,
Andrew P.


Good luck with that effort. Not to treat it as the feat is  
entirely impossible, but I'm not sure how you would approach it  
without using GNU lib stuff since linux runs via GNU libs whereas  
FreeBSD uses their own libc package. Not only that, you would have to  
have equivalent compiling tools, have the libs compiled for multiple  
archs, etc. It's a fairly large project that many companies are  
actually working on right now for making into reality since computing  
clusters are becoming so prevalent nowadays.
Anyhow... not impossible (well, maybe for the kernel end of  
things, but not some of the packages in world or ports), but good  
luck ;)!

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: distcc and cross-compiling for FreeBSD on Linux/Solaris

2005-10-10 Thread Micah

Andrew P. wrote:

We've got some mostly idle, but powerful sparc64
servers running Solaris 9/10, as well as a host of
Linux servers (x86 and x86_64). Of course, all the
real work is done on a pack of FreeBSD boxes :-)

Some days ago I started using ccache and distcc,
and I really love these tools. Now I want to get the
Solaris and Linux servers to do something useful
and compile world, kernels and ports for the
FreeBSD boxes. Is there a somewhat
comprehensive guide to this? Can somebody
share his experience with me? I'm now looking
into crosstool how-to's, but I have no knowledge
of gcc intrinsics, and some points are very hard
for me to understand.

Thanks,
Andrew P.


Have you looked at 
http://www.opensource.apple.com/darwinsource/projects/other/distcc-31.0.81/linuxdoc/html/distcc-5.html
It hints that you need to install a gcc that was built for your target 
system on all machines that you're using.  I think distcc handles 
library inconsitencies for you (at least it claims that you need not 
have the same libraries installed on all machines).


HTH,
Micah
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: distcc and cross-compiling for FreeBSD on Linux/Solaris

2005-10-10 Thread Dan Nelson
In the last episode (Oct 10), Garrett Cooper said:
 On Oct 10, 2005, at 2:34 AM, Andrew P. wrote:
  We've got some mostly idle, but powerful sparc64 servers running
  Solaris 9/10, as well as a host of Linux servers (x86 and x86_64).
  Of course, all the real work is done on a pack of FreeBSD boxes :-)
 
  Some days ago I started using ccache and distcc, and I really love
  these tools. Now I want to get the Solaris and Linux servers to do
  something useful and compile world, kernels and ports for the
  FreeBSD boxes. Is there a somewhat comprehensive guide to this? Can
  somebody share his experience with me? I'm now looking into
  crosstool how-to's, but I have no knowledge of gcc intrinsics, and
  some points are very hard for me to understand.
 
 Good luck with that effort. Not to treat it as the feat is
 entirely impossible, but I'm not sure how you would approach it
 without using GNU lib stuff since linux runs via GNU libs whereas
 FreeBSD uses their own libc package.

Distcc takes care to only pass preprocessed source to remote hosts, and
only distributes source-object compile requests, so you don't need
FreeBSD headers or libraries on the other systems; just a
cross-compiler.  I can't help with setting up cross-compilers, but
since there's a FAQ entry on it (
http://distcc.samba.org/faq.html#cross-compile ), doing what you want
is certainly possible.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: distcc and cross-compiling for FreeBSD on Linux/Solaris

2005-10-10 Thread Garrett Cooper

On Oct 10, 2005, at 7:01 AM, Micah wrote:


Andrew P. wrote:


We've got some mostly idle, but powerful sparc64
servers running Solaris 9/10, as well as a host of
Linux servers (x86 and x86_64). Of course, all the
real work is done on a pack of FreeBSD boxes :-)
Some days ago I started using ccache and distcc,
and I really love these tools. Now I want to get the
Solaris and Linux servers to do something useful
and compile world, kernels and ports for the
FreeBSD boxes. Is there a somewhat
comprehensive guide to this? Can somebody
share his experience with me? I'm now looking
into crosstool how-to's, but I have no knowledge
of gcc intrinsics, and some points are very hard
for me to understand.
Thanks,
Andrew P.



Have you looked at http://www.opensource.apple.com/darwinsource/ 
projects/other/distcc-31.0.81/linuxdoc/html/distcc-5.html
It hints that you need to install a gcc that was built for your  
target system on all machines that you're using.  I think distcc  
handles library inconsitencies for you (at least it claims that you  
need not have the same libraries installed on all machines).


HTH,
Micah


IIRC, I think that the libraries are needed, but are semi- 
modular in the sense that all that you need to do is grab the libs  
and make sure your compiler is equivalent (ie no mixing gcc with cc,  
etc), and include the libs in your compilation. Not sure how you are  
going to grab the libs for FreeBSD though without possibly CVSup'ing  
the source, which I'm not saying is impossible-just a minute pain.  
So, in essence I may have been a bit too pessimistic about the task.
I didn't really get into the subject of distcc though I suppose  
and should have read a bit more in-depth articles earlier. I was just  
exploring instruction sets for compiling via the similar architecture  
for a LAN distcc farm, but gave up after realizing there were far too  
many clients with differing archs from my own, and the benefit wasn't  
worth my time since it was all for charity.

-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]