<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Hi, I report one error information DISTCC made in CYGWIN and used to compile in windriver platform</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT COLOR="#0000FF" FACE="Arial">Hi, dear distcc experts:</FONT>
</P>
<BR>

<P><FONT COLOR="#0000FF" FACE="Arial">How are you? dear all. Sorry to trouble you.&nbsp; I have one question to report to you and pls give me some advice about this. I'm now using distcc to try to build my source codes in windriver platform.&nbsp; My operating system is WINDOWS 2003 server. I use CYGWIN 1.7beta to make distcc source code<SPAN LANG="en-us">.&nbsp; Distcc version is 3.1(both client and server). Its downloading page is here:</SPAN></FONT></P>

<P><SPAN LANG="en-us"></SPAN><A HREF="http://code.google.com/p/distcc/downloads/list"><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" FACE="Simsun">http://code.google.com/p/distcc/downloads/list</FONT></U></SPAN></A><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"></SPAN><SPAN LANG="en-us"><FONT FACE="Simsun"> </FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">Name is distcc-3.1.tar.bz2</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">Following the distcc installation guide, firstly I use make.exe in cygwin to create distcc.exe, distccd.exe and distccmon-text.exe etc. executable files.&nbsp; Now I am working in windriver vxworks-6.7 version environment. To set client environment in WINDOWS system.</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">DISTCC_HOSTS=127.0.0.1</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">DISTCC_DIR=c:\apps\distcc\distcc_dir</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">TMPDIR=c:\apps\distcc\distcc_tmp_dir</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">run distccd in the same machine</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">set DISTCC_BIN=C:\APPS\distcc</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">set DISTCC_DIR=C:\APPS\distcc\distcc_dir</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">set TMPDIR=%DISTCC_BIN%\distcc_tmp_dir</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">distccd --allow 10.0.0.1/8 --port 3699 --daemon --no-detach --log-file=%DISTCC_BIN%/distccd_vx67.log --nice 6 --verbose</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">Then in client I input this command:</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">make CPU=SIMNU TOOL=gnu CC=&quot;distcc cc$(TOOLENV)&quot; -j2</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">note: CPU, TOOL and CC is MARCO</FONT></SPAN><SPAN LANG="en-us"> <FONT COLOR="#0000FF" FACE="Arial">of vxworks-6.7. It has the nearly same effect as </FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">make -j2 CC=distcc</FONT></SPAN>
</P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">So error information popups like this following, which tells me ccpentium.exe compiler(a transplanting compiler of gcc in windriver platform) no input file. The precompilation process failed to pass. Don't mention sending preprocess results to remote machine. I think it's possibly caused by these two lines</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">distcc ccpentium -mtune=i486 -march=i486 -ansi&nbsp; -O2 -nostdlib -fno-builtin -fno-defer-pop -Wall&nbsp; -IC:/APPS/WindRiver/vxworks-6.7/target/h -IC:/APPS/WindRiver/vxworks-6.7/target/h/wrn/coreip&nbsp;&nbsp; -DCPU=SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL&nbsp; -DINET&nbsp; -D_WRS_LIB_BUILD&nbsp; -I.&nbsp;&nbsp; -D_VSB_CONFIG_FILE=\&quot;D:/Workspace/kevin/vsb_test/h/config/vsbConfig.h\&quot;&nbsp;&nbsp; -fno-zero-initialized-in-bss&nbsp;&nbsp; -MD&nbsp; -c -o D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/objaim/aimMmuShow.o aimMmuShow.c</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">I don't know what's the reason for? I have a look at FAQ of distcc. I notice -MD may not work rightly by compiler gcc 3.0 or later. Detailed information is as </FONT></SPAN></P>

<P><SPAN LANG="en-us"></SPAN><A HREF="http://distcc.samba.org/faq.html"><SPAN LANG="en-us"><U></U><U><FONT COLOR="#0000FF" FACE="Simsun">http://distcc.samba.org/faq.html</FONT></U></SPAN></A><SPAN LANG="en-us"><FONT FACE="Simsun"> </FONT></SPAN>

<BR><B><SPAN LANG="zh-cn"><FONT SIZE=4 FACE="Simsun">Problems with</FONT></SPAN><SPAN LANG="en-us"><FONT SIZE=4 FACE="Arial"> </FONT><FONT SIZE=4 FACE="Simsun">gcc -MD</FONT></SPAN></B>

<BR><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">&nbsp;So I don't know if it's the root cause. Because it's difficult to modify windriver makefile to replace -MD with -MF, I can't verify if my idear is right.&nbsp; The gcc version of Windriver is using is 4.1.2. So it's later of 3.0.</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">Another reason I doubt the command line length is a little long. So distcc only intercept front part of options and .c file name at the end&nbsp; is lost. So it tells me no input file. </FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#0000FF" FACE="Arial">So what's the definite reason for this strange thing. I remove distcc prefix, then everything is OK. Compilation is no problem.</FONT></SPAN><SPAN LANG="en-us"><B></B><B></B></SPAN><B><SPAN LANG="zh-cn"></SPAN></B></P>
<BR>

<P><B><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">Build Started in Project 'vsb_test':&nbsp;&nbsp; 2009-09-16 18:24:28</FONT></SPAN></B><SPAN LANG="en-us"></SPAN>

<BR><SPAN LANG="en-us"><B><FONT COLOR="#1E5AC8" SIZE=1 FACE="Tahoma">Platform: Wind River VxWorks 6.7</FONT></B></SPAN>

<BR><SPAN LANG="en-us"><B><FONT COLOR="#1E5AC8" SIZE=1 FACE="Tahoma">Command: make &quot;CC=distcc cc$(TOOLENV)&quot;</FONT></B></SPAN>

<BR><SPAN LANG="en-us"><B><FONT COLOR="#1E5AC8" SIZE=1 FACE="Tahoma">Working Directory: D:/Workspace/kevin/vsb_test</FONT></B></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">cd C:/APPS/WindRiver/vxworks-6.7/target/src &amp;&amp; C:/APPS/WindRiver/utilities-1.0/x86-win32/bin/make.exe CPU=SIMNT TOOL=gnu _VSB_CONFIG_ADDEDCFLAGS= _WRS_CONFIG_APP_TOOL=gnu VSB_DIR=D:/Workspace/kevin/vsb_test BSPNAME=simpc _WRS_CONFIG_FP=hard&nbsp;&nbsp; ADDED_CFLAGS+=-I. DUAL_BUILD=false</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[1]: Entering directory `C:/APPS/WindRiver/vxworks-6.7/target/src'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">mkdir -p D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/obj</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">cd arch &amp;&amp; C:/APPS/WindRiver/utilities-1.0/x86-win32/bin/make.exe CPU=SIMNT TOOL=gnu _WRS_CONFIG_FP=hard</FONT> </SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[2]: Entering directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">mkdir -p D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/obj</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">cd simnt &amp;&amp; C:/APPS/WindRiver/utilities-1.0/x86-win32/bin/make.exe CPU=SIMNT TOOL=gnu _WRS_CONFIG_FP=hard</FONT> </SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[3]: Entering directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch/simnt'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">mkdir -p D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/objarch</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">updating D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/libarch.a</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">cd math &amp;&amp; C:/APPS/WindRiver/utilities-1.0/x86-win32/bin/make.exe CPU=SIMNT TOOL=gnu _WRS_CONFIG_FP=hard</FONT> </SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[4]: Entering directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch/simnt/math'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">mkdir -p D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/objarch</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">updating D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/libarch.a</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[4]: Leaving directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch/simnt/math'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[3]: Leaving directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch/simnt'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">cd doc &amp;&amp; C:/APPS/WindRiver/utilities-1.0/x86-win32/bin/make.exe CPU=SIMNT TOOL=gnu _WRS_CONFIG_FP=hard</FONT> </SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[3]: Entering directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch/doc'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">mkdir -p D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/obj</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[3]: Leaving directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch/doc'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[2]: Leaving directory `C:/APPS/WindRiver/vxworks-6.7/target/src/arch'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">cd aim &amp;&amp; C:/APPS/WindRiver/utilities-1.0/x86-win32/bin/make.exe CPU=SIMNT TOOL=gnu _WRS_CONFIG_FP=hard</FONT> </SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[2]: Entering directory `C:/APPS/WindRiver/vxworks-6.7/target/src/aim'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">mkdir -p D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/objaim</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">distcc ccpentium -mtune=i486 -march=i486 -ansi&nbsp; -O2 -nostdlib -fno-builtin -fno-defer-pop -Wall&nbsp; -IC:/APPS/WindRiver/vxworks-6.7/target/h -IC:/APPS/WindRiver/vxworks-6.7/target/h/wrn/coreip&nbsp;&nbsp; -DCPU=SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -D_WRS_KERNEL&nbsp; -DINET&nbsp; -D_WRS_LIB_BUILD&nbsp; -I.&nbsp;&nbsp; -D_VSB_CONFIG_FILE=\&quot;D:/Workspace/kevin/vsb_test/h/config/vsbConfig.h\&quot;&nbsp;&nbsp; -fno-zero-initialized-in-bss&nbsp;&nbsp; -MD&nbsp; -c -o D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/objaim/aimMmuShow.o aimMmuShow.c</FONT></SPAN></P>

<P><SPAN LANG="en-us"><FONT COLOR="#C80000" SIZE=1 FACE="Tahoma">ccpentium.exe: no input files</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#C80000" SIZE=1 FACE="Tahoma">distcc[668] ERROR: compile (null) on localhost failed</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#C80000" SIZE=1 FACE="Tahoma">make.exe[2]: *** [D:/Workspace/kevin/vsb_test/simpc/SIMNT/common/objaim/aimMmuShow.o] Error 1</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[2]: Leaving directory `C:/APPS/WindRiver/vxworks-6.7/target/src/aim'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#C80000" SIZE=1 FACE="Tahoma">make.exe[1]: *** [aim] Error 2</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#000000" SIZE=1 FACE="Tahoma">make.exe[1]: Leaving directory `C:/APPS/WindRiver/vxworks-6.7/target/src'</FONT></SPAN>

<BR><SPAN LANG="en-us"><FONT COLOR="#C80000" SIZE=1 FACE="Tahoma">C:\APPS\WindRiver\utilities-1.0\x86-win32\bin\make.exe: *** [_target_gnuSIMNT_fooC_/APPS/WindRiver/vxworks-6.7/target/src] Error 2</FONT></SPAN></P>

<P><SPAN LANG="en-us"><B><FONT COLOR="#C80000" SIZE=1 FACE="Tahoma">Build Failed in Project 'vsb_test' (Process Exit Value was 2):&nbsp;&nbsp; 2009-09-16 18:24:29&nbsp;&nbsp; (Elapsed Time: 00:01)</FONT></B></SPAN>
</P>
<BR>
<BR>
<BR>

<P><SPAN LANG="en-us"><B><FONT COLOR="#0000FF" FACE="Arial">Best regards</FONT></B></SPAN>

<BR><SPAN LANG="en-us"><B><FONT COLOR="#0000FF" FACE="Arial">Kevin in NSN</FONT></B></SPAN>
</P>

</BODY>
</HTML>