Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
distcc for windows (suggestion)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Gherald2
Guru
Guru


Joined: 02 Jul 2003
Posts: 326
Location: Madison, WI USA

PostPosted: Thu Jul 03, 2003 9:31 pm    Post subject: distcc for windows (suggestion) Reply with quote

Because Gentoo is (pretty much) the most compiler-intensive environment this side of the galaxy, I think it would be cool if someone were to develop a binary distribution of distcc and the cygwin API.... for cross compiling Gentoo stuff on Windows.

I know this would be cool for me right now because at home I have two Gentoo boxes, along with three Windows ones. And at work there are about 30 Windows boxes I could make use of after hours.

Hmm, aparently forum users can't start a poll. Well just post here if you would like to see this happen. Maybe we can get an experienced developer interested in the project. If not, well, I will try and put something together myself... but its gonna quite awhile for a n00b like me to figure it all out, which is why I think a prebuilt distcc and cygwin combination might be useful to others.
Back to top
View user's profile Send private message
BradB
Apprentice
Apprentice


Joined: 18 Jun 2002
Posts: 190
Location: Christchurch NZ

PostPosted: Thu Jul 03, 2003 10:24 pm    Post subject: Reply with quote

Boot the boxes into knoppix or the gentoo liveCD if it includes distcc.
Brad
_________________
Microsoft - bringing the pain right into your home since 1982
Back to top
View user's profile Send private message
Gherald2
Guru
Guru


Joined: 02 Jul 2003
Posts: 326
Location: Madison, WI USA

PostPosted: Thu Jul 03, 2003 10:40 pm    Post subject: Reply with quote

Thanks for the suggestion, it is indeed one possible solution. However, I would like to have distcc running in the background on the windows boxen so that I can compile on-demand when the rest of my family isn't busy fragging each other. Having to boot to another OS is not as convenient.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Fri Jul 04, 2003 12:50 am    Post subject: Reply with quote

It's not super hard to compile it all yourself. I just did it and I'm working on writing up a howto but I'm not home right now and after tonight will be without a computer till the middle of next week. Hopefully I can get it posted shortly after that. I would post my binaries to d/l but with glibc and all it's 49MB. I don't have that kind of web space anywhere and I don't fee confident enough to set up a publicly available web server on my box right now. Just keep track of where you install everything then you can tar it up and put it on multiple windows boxes without needing to compile it all on each one.

These two links are pretty good but I did run ito a couple issues.
cygwin-to-linux-cross-howto
http://cvs.gentoo.org/~aiken/cygwin-cross/

I followed aiken's mostly. I had to use binutils 2.13.1, later versions wouldn't compile. Be sure to get your kernel headers as mentioned in the first link, aiken negleted to mention that. Use the regular gcc source, the cygwin gcc source didn't want to compile for me. You may get an error about __mempcpy during your gcc compile. Search google for it, there is a workaround out there. Basicaly you have to go in and make a #ifdef statement always false in the file that failed to compile. Also there is a note at the end of khan's howto about making gcc not add the exe extension to compiled executables. I don't think you need to do that for distcc to work properly but I did it anyway. I used distcc-2.5 and it compiled without a hitch. Hope this helps for now.
Back to top
View user's profile Send private message
joshdr77
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 180

PostPosted: Fri Jul 04, 2003 1:57 am    Post subject: Reply with quote

this is an awesome idea....keep my poseted for ne developments.. :)
Back to top
View user's profile Send private message
Gherald2
Guru
Guru


Joined: 02 Jul 2003
Posts: 326
Location: Madison, WI USA

PostPosted: Fri Jul 04, 2003 4:06 am    Post subject: Reply with quote

Excellent, and thanks for the links! I would pobably be able to figure it out with that info.

Yet I still think a binary distribution would be cool... for convenience sake, as I am sure there are plenty of people out there like me who would have no other use for a cygwin installation, and are too lazy (or clueless) to figure out how to build their own cross compiler.

My work email can handle a 50mb attachment, and I have a place I could host it as of right now. The problem is, I am not sure how much longer I will have that host availeable.... it will probably only last a few months.

So if you can package your binaries well and write a proper guide to using them, I am sure you could find someone willing to host it. Either gentoo.org or sourceforge would probably be willing. This has the potential to help a lot of people IMHO.
Back to top
View user's profile Send private message
joshdr77
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 180

PostPosted: Sun Jul 06, 2003 10:36 am    Post subject: Reply with quote

if someone has a win32 binary can they plz msg me, coz i would really love it?
Back to top
View user's profile Send private message
yaubi
Apprentice
Apprentice


Joined: 15 Jan 2003
Posts: 194
Location: Oxford, UK

PostPosted: Sun Jul 06, 2003 11:11 am    Post subject: Reply with quote

I don't think a win32 binary of distcc will be a good idea. 'caus, if I understand how distcc works, it is simply a network-frontend to gcc. So it needs gcc to do his job. To get gcc running on a windows workstation, you have to install cygwin on it. So, when you already have cygwin installed on a computer, why do you want a win32 binary for distcc ? it's probably simplier to get distcc running through cygwin.
_________________
Avatar de X-Ryl669. Merci à lui ! :)
Back to top
View user's profile Send private message
Gherald2
Guru
Guru


Joined: 02 Jul 2003
Posts: 326
Location: Madison, WI USA

PostPosted: Sun Jul 06, 2003 8:27 pm    Post subject: Reply with quote

The idea is to combine distcc and cygwin and gcc and whatever else is necessary into a simple package (perhaps just a .zip file?) than can be installed and used without any hassle.

If PowerFactor doesn't get back to me I will try and cobble this together myself.
Back to top
View user's profile Send private message
joshdr77
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 180

PostPosted: Mon Jul 07, 2003 1:02 am    Post subject: Reply with quote

sounds good :)
Back to top
View user's profile Send private message
bonsaikitten
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 213
Location: Shanghai, China

PostPosted: Mon Jul 07, 2003 9:48 pm    Post subject: Reply with quote

Gentoo on Cygwin is work in progress.
Check www.toso-digitals.de/gentoo/index.html for progress update.
As soon as we get the base system stable distcc et al will follow (this also accelerates testing and development, so it's in the best interest of the developers :-) )

Cross-compiling between Linux and Windows is not recommended at the moment, sometimes it works, but I have also seen it crash and burn. Maybe a Knoppix/ GentooLive CD would be easier?
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Fri Jul 11, 2003 5:38 pm    Post subject: Reply with quote

Is anyone currently working on a distcc/gcc-3.2.2/bin-utils tool chain .tar.gz or .zip file for cygwin for distribution? I've seen talk that a couple of people were working on it and wanted to check the status of this. If so, I'd like to lend a hand and if not I'm thinking about playing with it myself.
Back to top
View user's profile Send private message
bonsaikitten
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 213
Location: Shanghai, China

PostPosted: Fri Jul 11, 2003 6:08 pm    Post subject: Reply with quote

I'd be interested in any progress you make. Having distcc + ccache on Cygwin would be very useful.
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Fri Jul 11, 2003 7:33 pm    Post subject: Reply with quote

I agree, however, if I build it..it's probably not going to be pretty....I just want something that works. I'm thinking of a /usr/local/cross subtree that I can tar.gz up and copy between cygwin distributions. My goal would be a minimal cygwin install + .tar.gz and a couple of edits to make the Win box a distcc host.
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Sat Jul 12, 2003 12:41 am    Post subject: Reply with quote

From the distcc mail list:

Quote:

----- Forwarded message from Alexander Stock <zensox@zensox.ath.cx> -----

From: Alexander Stock <zensox@zensox.ath.cx>
Subject: Cygwin-hosted Linux-target gcc binary
Date: Thu, 3 Jul 2003 14:43:02 +0200
To: mbp@sourcefrog.net
X-Mailer: Microsoft Outlook Express 6.00.2800.1158
X-Spam-Status: No, hits=2.4 required=4.0
tests=HTML_40_50,RCVD_IN_NJABL,RCVD_IN_OSIRUSOFT_COM
version=2.55

Hi Martin,

I recently created a gcc cross-compiler binary for Cygwin.
If you want to link it on your page you can grab it here:
http://zensox.ath.cx/cross-linux.rar
(I think it needs some future size optimizing, 22mb is quite a bit
large... but well, it works ;))

Greets,
Alexander

----- End forwarded message -----
--
Martin
__
distcc mailing list http://distcc.samba.org/
To unsubscribe or change options:
http://lists.samba.org/cgi-bin/mailman/listinfo/distcc
Back to top
View user's profile Send private message
bmph8ter
n00b
n00b


Joined: 06 May 2002
Posts: 46

PostPosted: Sat Jul 12, 2003 1:36 am    Post subject: Reply with quote

I created a vmware virtual host on a windows machine and did a minimal Debian install on it and used that. I'm sure that RedHat, Suse, et al would also work if you can install distcc on them.
_________________
My crappy (but redesigned) blog
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Sat Jul 12, 2003 2:46 am    Post subject: Reply with quote

bmph8ter wrote:
I created a vmware virtual host on a windows machine and did a minimal Debian install on it and used that. I'm sure that RedHat, Suse, et al would also work if you can install distcc on them.


That's quite a bit of overhead just to run distcc. :o
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
superjaded
l33t
l33t


Joined: 05 Jul 2002
Posts: 802

PostPosted: Sat Jul 12, 2003 3:58 am    Post subject: Reply with quote

Hmm.. is that site experiencing the Gentoo Forums effect? :?
I'm getting just above 1K/s.
Back to top
View user's profile Send private message
theJPster
n00b
n00b


Joined: 24 Sep 2002
Posts: 32
Location: East Midlands, UK

PostPosted: Sat Jul 12, 2003 1:03 pm    Post subject: Reply with quote

I've just been trying to build binutils on a WinXP box on Cygwin over TightVNC. It's a bit sluggish because it's only a Dual Celeron 433 (and TightVNC server for Windows stinks). Bah, the make just failed with weird error about a missing argv.o. :(

I'm getting 17KB/sec on that rar. Will post back with results... hopefully better ones than than manual method. All that configure --blah stuff makes you really appreciate portage!

Edit: Is it me or is http://www.gentoo.org/~aiken not working?
_________________
theJPster
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Sat Jul 12, 2003 10:02 pm    Post subject: Reply with quote

Thanks a lot Lisa! I grabbed the .rar file and got it installed and built distcc. I'm going to have to do some digging to figure out how to get distcc hooked up to the /usr/local/cross-linux/bin/i386....gcc.exe environment though.
Back to top
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Sat Jul 12, 2003 10:05 pm    Post subject: Reply with quote

Well, for what it's worth I finally got the howto posted.
https://forums.gentoo.org/viewtopic.php?t=66930

Veto: Just put the bin dirs from your cross-tools environment at the beginning of your PATH ahead of everything else.
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Sun Jul 13, 2003 12:13 am    Post subject: Reply with quote

That's excellent PowerFactor. I got it running but I'm going to use your HOWTO since the download .rar file is a 3.3 compiler and I'm running the base Gentoo 3.2. I don't like the idea of running mixed compilers when I'm building kernels and the like :)
Back to top
View user's profile Send private message
Veto
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2003
Posts: 83

PostPosted: Sun Jul 13, 2003 5:16 pm    Post subject: Reply with quote

I've created a cross-linux-3.2.2.tar.bz2 file that uses the Gentoo stable build tools (binutils-2.13.90 & gcc-3.2.2). The one that Lisa posted was of a gcc-3.3 and was built i386-linux whereas I built i686-pc-linux (not sure if that matters). My package comes in around ~28MB so if someone would like to host it or get a copy, let me know.

The only thing missing from the .bz2 is distcc which I'm thinking about adding.
Back to top
View user's profile Send private message
DC_505
n00b
n00b


Joined: 06 Aug 2002
Posts: 4

PostPosted: Mon Jul 14, 2003 8:36 pm    Post subject: Reply with quote

Veto wrote:
I've created a cross-linux-3.2.2.tar.bz2 file that uses the Gentoo stable build tools (binutils-2.13.90 & gcc-3.2.2). The one that Lisa posted was of a gcc-3.3 and was built i386-linux whereas I built i686-pc-linux (not sure if that matters). My package comes in around ~28MB so if someone would like to host it or get a copy, let me know.

The only thing missing from the .bz2 is distcc which I'm thinking about adding.


If you want I have a school account that has 300mb of storage space that I can host it on. Not sure how long it will last but e-mail me at alistek@iwu.edu.
Back to top
View user's profile Send private message
syadnom
Guru
Guru


Joined: 09 May 2002
Posts: 531

PostPosted: Tue Jul 15, 2003 10:03 pm    Post subject: i think a more usefull - Reply with quote

i think a more usefull alternative would be to get openmosix on windows via cgwin.
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
Goto page 1, 2  Next
Page 1 of 2

 
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