Difference between revisions of "Add support for more compilers to distcc"
Pcallaghan (talk | contribs) m |
Pcallaghan (talk | contribs) (Added 0.25 release) |
||
Line 25: | Line 25: | ||
<li>publish/find some more c# files to test with</li> | <li>publish/find some more c# files to test with</li> | ||
<li>NOTE: Please ensure the files compile with Mono c# before sending them.</li> | <li>NOTE: Please ensure the files compile with Mono c# before sending them.</li> | ||
− | <li>test this on different OSs</li> | + | <li>test this on different OSs & networks</li> |
− | <li>Make a comprehensive list of the set-up steps on one page, unlike the scattered links there are now | + | <li>Make a comprehensive list of the set-up steps on one page, unlike the scattered links there are now. No coding required, but time consuming.</li> |
− | |||
</ul> | </ul> | ||
== Project Details/News == | == Project Details/News == | ||
− | === 0.2 Release === | + | === 0.25 Release === |
+ | A new [http://docs.google.com/Doc?id=dfkp8fkz_3hqpw4f patch] has been created. All required functions are now complete for the Mono C# compiler. Now is a great time for more contributors to test this project and try to find (or fix) any bugs that pop up. I'm still having trouble with SVN, but I expect to get that sorted out soon. | ||
+ | |||
+ | to use this patch: | ||
+ | <ol> | ||
+ | <li>[http://www.cygwin.com/ get cygwin]</li> | ||
+ | <li>[http://developer.mozilla.org/en/docs/Windows_build_prerequisites_using_cygwin configure cygwin]</li> | ||
+ | <li>download the Mono C# [http://www.mono-project.com/Main_Page compiler]</li> | ||
+ | <ul> | ||
+ | <li>put mono in your PATH</li> | ||
+ | </ul> | ||
+ | <li>set up an environment variable DISTCC_MCS_HOSTS=localhost</li> | ||
+ | <li>Checkout the distcc source</li> | ||
+ | <ul> | ||
+ | <li>svn co svn://cdot.senecac.on.ca/distcc/trunk</li> | ||
+ | <li>You should get revision 117</li> | ||
+ | <li>cd trunk && ./configure && make && make install</li> | ||
+ | <li>put distcc in your PATH, before cygwin</lI> | ||
+ | </ul> | ||
+ | <li>get the 0.25 [http://docs.google.com/Doc?id=dfkp8fkz_3hqpw4f patch]</li> | ||
+ | <li>apply the patch</li> | ||
+ | <ul> | ||
+ | <li>from the trunk directory</li> | ||
+ | <li>patch -p0 < pcallaghanzeropointtwofive.txt</li> | ||
+ | </ul> | ||
+ | <li>configure and build distcc</li> | ||
+ | <ul> | ||
+ | <li>from the trunk directory</li> | ||
+ | <li>./configure && make && make install</li> | ||
+ | </ul> | ||
+ | <li>get a simple C# [http://docs.google.com/Doc?id=dfkp8fkz_1hbrfkk file]</li> | ||
+ | <li>compile it</li> | ||
+ | <ul> | ||
+ | <li>distcc mcs hello.cs</li> | ||
+ | </ul> | ||
+ | <li>run it</li> | ||
+ | <ul> | ||
+ | <li>./hello</li> | ||
+ | </ul> | ||
+ | <li>As an alternative to steps 9 through 11, find or write some other c# files and test them.</li> | ||
+ | <li>Tell me how it went.</li> | ||
+ | </ol> | ||
+ | |||
+ | |||
+ | |||
+ | === 0.2 Release (Obsolete)=== | ||
A new [http://docs.google.com/Doc?id=dfkp8fkz_2gxdzhr patch] has been created. All except one of the required functions (dcc_mcs_scan_args) are now complete. As the work required for this update turned out to be a lot less than I anticipated, a 0.25 patch should be released soon that will implement that last function. An SVN branch is not available yet, but should also be ready in time for 0.25. | A new [http://docs.google.com/Doc?id=dfkp8fkz_2gxdzhr patch] has been created. All except one of the required functions (dcc_mcs_scan_args) are now complete. As the work required for this update turned out to be a lot less than I anticipated, a 0.25 patch should be released soon that will implement that last function. An SVN branch is not available yet, but should also be ready in time for 0.25. | ||
Line 44: | Line 88: | ||
Continue work on the previously identified functions. As of 0.1 several were still little more than shells, by the completion of 0.2 all except dcc_mcs_scan_args should be fully completed. A supplementary goal is to set up the source as a branch of the existing trunk on cdot, so testers may just check out the new code rather than having to check out the trunk and patch it. | Continue work on the previously identified functions. As of 0.1 several were still little more than shells, by the completion of 0.2 all except dcc_mcs_scan_args should be fully completed. A supplementary goal is to set up the source as a branch of the existing trunk on cdot, so testers may just check out the new code rather than having to check out the trunk and patch it. | ||
− | === 0.1 Release === | + | === 0.1 Release (Obsolete)=== |
A [http://docs.google.com/Doc?id=dfkp8fkz_0hdwb6s compiler] has been created. | A [http://docs.google.com/Doc?id=dfkp8fkz_0hdwb6s compiler] has been created. | ||
Note that it is by no means anywhere near completion. | Note that it is by no means anywhere near completion. |
Revision as of 22:50, 25 November 2007
Contents
Project Name
Add support for more compilers to distcc
Project Description
An earlier project added multi-compiler support to distcc, and then MSVC support. The framework is now in place to support even more compilers. Add support for another compiler; either Java or C#.
Necessary Skills: C, Python, Makefile
Project Leader(s)
Project Contributor(s)
Some options for contributions:
- publish/find some more c# files to test with
- NOTE: Please ensure the files compile with Mono c# before sending them.
- test this on different OSs & networks
- Make a comprehensive list of the set-up steps on one page, unlike the scattered links there are now. No coding required, but time consuming.
Project Details/News
0.25 Release
A new patch has been created. All required functions are now complete for the Mono C# compiler. Now is a great time for more contributors to test this project and try to find (or fix) any bugs that pop up. I'm still having trouble with SVN, but I expect to get that sorted out soon.
to use this patch:
- get cygwin
- configure cygwin
- download the Mono C# compiler
- put mono in your PATH
- set up an environment variable DISTCC_MCS_HOSTS=localhost
- Checkout the distcc source
- svn co svn://cdot.senecac.on.ca/distcc/trunk
- You should get revision 117
- cd trunk && ./configure && make && make install
- put distcc in your PATH, before cygwin
- get the 0.25 patch
- apply the patch
- from the trunk directory
- patch -p0 < pcallaghanzeropointtwofive.txt
- configure and build distcc
- from the trunk directory
- ./configure && make && make install
- get a simple C# file
- compile it
- distcc mcs hello.cs
- run it
- ./hello
- As an alternative to steps 9 through 11, find or write some other c# files and test them.
- Tell me how it went.
0.2 Release (Obsolete)
A new patch has been created. All except one of the required functions (dcc_mcs_scan_args) are now complete. As the work required for this update turned out to be a lot less than I anticipated, a 0.25 patch should be released soon that will implement that last function. An SVN branch is not available yet, but should also be ready in time for 0.25.
to use this patch:
- Either reverse the first patch or get a non-patched version of the trunk
- Apply the new patch
Goal for 0.2 release
Continue work on the previously identified functions. As of 0.1 several were still little more than shells, by the completion of 0.2 all except dcc_mcs_scan_args should be fully completed. A supplementary goal is to set up the source as a branch of the existing trunk on cdot, so testers may just check out the new code rather than having to check out the trunk and patch it.
0.1 Release (Obsolete)
A compiler has been created. Note that it is by no means anywhere near completion. That's why this is the 0.1 release.
This patch has been tested on Windows XP, using cygwin to tell distcc to compile a single, simple c# file. To use it:
- get cygwin
- configure cygwin
- download the Mono C# compiler
- put mono in your PATH
- set up an environment variable DISTCC_MCS_HOSTS=localhost
- Checkout the distcc source
- svn co svn://cdot.senecac.on.ca/distcc/trunk
- You should get revision 117
- cd trunk && ./configure && make && make install
- put distcc in your PATH, before cygwin
- get the 0.1 patch
- apply the patch
- from the trunk directory
- patch -p0 < pcallaghanzeropointone.txt
- configure and build distcc
- from the trunk directory
- ./configure && make && make install
- get a simple C# file
- compile it
- distcc mcs hello.cs
- run it
- ./hello
Goal for 0.1 Release
- Add support for Mono's cSharp compiler[1]. By the 0.1 release, Distcc should be able to at least compile C# locally. While the earlier work done on Distcc With MSVC suggests that only a hand-full of functions need to be coded in order for it to add a new compiler, both Java and C# compile in a manner significantly different than C. This will likely cause some trouble shortly...regardless, the following functions are the minimum which need to be created:
- arg.c
- dcc_<compilerName>_set_action_opt
- dcc_<compilerName>_set_output
- dcc_<compilerName>_scan_args
- strip.c
- dcc_<compilerName>_strip_local_args
- dcc_<compilerName>_strip_dasho
- filename.c
- dcc_<compilerName>_is_source
- dcc_<compilerName>_is_preprocessed
- dcc_<compilerName>_is_object
- dcc_<compilerName>_preproc_exten
- hosts.c
- dcc_<compilerName>_get_hostlist
Known Bugs
See the list within Distcc With MSVC