Re: Distcc pump mode
Fergus Henderson <[email protected]> Thu, 13 Mar 2014 18:37:52 +0000
| Newsgroups | gmane.comp.compilers.distcc |
|---|---|
| Message-ID | <CAPXkjd8gX1jyYAE0-y66H6p8qd5vypQdHkft4C9ACgbCm+JJtQ@mail.gmail.com> |
--===============3083266078317553592== Content-Type: multipart/alternative; boundary=20cf307f313c43a68904f481408d --20cf307f313c43a68904f481408d Content-Type: text/plain; charset=UTF-8 On 13 Mar 2014 13:29, "yudhistir reddy" <[email protected]> wrote: > > # May need to override this (eg. for logging) > exec_cmd() { > exec "$@" > } > > # This is my official name > MYNAME=mk > > Mydir=`dirname $0` > > # for customization > unset mk_cmd_hooks mk_setup_hooks mk_finish_hooks > > # override this for more complex requirements > mk_target_machine() { > MACHINE=$1 > export MACHINE > } > > . $Mydir/sb-env.sh What's in sb-env.sh? That looks suspicious... > # for backwards compatability > mk_cmd_hook() { :; } > add_hooks mk_cmd_hooks mk_cmd_hook > > run_hooks mk_setup_hooks > run_hooks mk_cmd_hooks > run_hooks mk_cmd_hooks_lifo LIFO > run_hooks mk_finish_hooks > > # we generally cannot afford to consume the command line > # since virtually any option might be for $cmd > # but we'll make an exception for these > while : > do > case "$1" in > --) shift; break;; # stop trying to interpret anything > --doc) __doc;; # does not return > --help) __help;; # does not return > --machine) mk_target_machine $2; shift 2;; > *) break;; > esac > done > > case $Myname in > mk|mk-*|*make) > nice=${nice:-nice} > cmd=${cmd:-${REAL_MAKE:-/usr/bin/make}};; > *) cmd=${cmd:-$Myname.real};; > esac > # at last! do some work > exec_cmd $nice $cmd "$@" > > > On Thu, Mar 13, 2014 at 5:31 PM, Vanush <[email protected]> wrote: >> >> On Thu, Mar 13, 2014 at 05:23:14PM +0530, yudhistir reddy wrote: >> > Sorry for that , that was silly mistake by me . >> > >> > Here is the use case , i did : >> > >> > 1. eval `pump --startup` >> > checked pump mode variables , i can see INCLUDE_SERVER_PORT set to >> > /tmp/distcc-pump.LIlIcs/socket >> > >> > >> > 2. started build >> > mk kernel -j30 WITH_DISTCC=yes >> > Build finished with pump mode ( But actually it is turing back to Normal >> > mode ) . >> > I see the warning messages in distcclog as like below >> >> can you show us your "mk" wrapper? >> >> Misha >> >> >> -- >> Vanush "Misha" Paturyan >> Senior Technical Officer >> Room 1.37 >> Computer Science Department >> NUI Maynooth > > > > __ > distcc mailing list http://distcc.samba.org/ > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/distcc --20cf307f313c43a68904f481408d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr"><br> On 13 Mar 2014 13:29, "yudhistir reddy" <<a href=3D"mailto:yud= [email protected]">[email protected]</a>> wrote:<br> ><br> > # May need to override this (eg. for logging)<br> > exec_cmd() {<br> > =C2=A0=C2=A0=C2=A0 exec "$@"<br> > }<br> ><br> > # This is my official name<br> > MYNAME=3Dmk<br> ><br> > Mydir=3D`dirname $0`<br> ><br> > # for customization<br> > unset mk_cmd_hooks mk_setup_hooks mk_finish_hooks<br> ><br> > # override this for more complex requirements<br> > mk_target_machine() {<br> > =C2=A0=C2=A0=C2=A0 MACHINE=3D$1<br> > =C2=A0=C2=A0=C2=A0 export MACHINE<br> > }<br> ><br> > . $Mydir/sb-env.sh</p> <p dir=3D"ltr">What's in sb-env.sh?<br> That looks suspicious...</p> <p dir=3D"ltr">> # for backwards compatability<br> > mk_cmd_hook() { :; }<br> > add_hooks mk_cmd_hooks mk_cmd_hook<br> ><br> > run_hooks mk_setup_hooks<br> > run_hooks mk_cmd_hooks<br> > run_hooks mk_cmd_hooks_lifo LIFO<br> > run_hooks mk_finish_hooks<br> ><br> > # we generally cannot afford to consume the command line<br> > # since virtually any option might be for $cmd<br> > # but we'll make an exception for these<br> > while :<br> > do<br> > =C2=A0=C2=A0=C2=A0 case "$1" in<br> > =C2=A0=C2=A0=C2=A0 --) shift; break;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 # stop trying to interpret anything<br> > =C2=A0=C2=A0=C2=A0 --doc) __doc;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # does not return<br> > =C2=A0=C2=A0=C2=A0 --help) __help;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # does not return<br> > =C2=A0=C2=A0=C2=A0 --machine) mk_target_machine $2; shift 2;;<br> > =C2=A0=C2=A0=C2=A0 *) break;;<br> > =C2=A0=C2=A0=C2=A0 esac<br> > done<br> ><br> > case $Myname in<br> > mk|mk-*|*make)<br> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nice=3D${nice:-nice}<br> > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cmd=3D${cmd:-${REAL_MAKE:-/= usr/bin/make}};;<br> > *)=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 cmd=3D${cmd:-$Myname.real};;<br> > esac<br> > # at last! do some work<br> > exec_cmd $nice $cmd "$@"<br> ><br> ><br> > On Thu, Mar 13, 2014 at 5:31 PM, Vanush <<a href=3D"mailto:misha@cs= .nuim.ie">[email protected]</a>> wrote:<br> >><br> >> On Thu, Mar 13, 2014 at 05:23:14PM +0530, yudhistir reddy wrote:<b= r> >> > Sorry for that , that was silly mistake by me .<br> >> ><br> >> > Here is the use case , i did :<br> >> ><br> >> > 1. eval `pump --startup`<br> >> > checked pump mode variables , i can see INCLUDE_SERVER_PORT s= et to<br> >> > /tmp/distcc-pump.LIlIcs/socket<br> >> ><br> >> ><br> >> > 2. started build<br> >> > mk kernel -j30 WITH_DISTCC=3Dyes<br> >> > Build finished with pump mode =C2=A0( But actually it is turi= ng back to Normal<br> >> > mode ) .<br> >> > I see the warning messages in distcclog as like below<br> >><br> >> can you show us your "mk" wrapper?<br> >><br> >> Misha<br> >><br> >><br> >> --<br> >> Vanush "Misha" Paturyan<br> >> Senior Technical Officer<br> >> Room 1.37<br> >> Computer Science Department<br> >> NUI Maynooth<br> ><br> ><br> ><br> > __<br> > distcc mailing list =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href= =3D"http://distcc.samba.org/">http://distcc.samba.org/</a><br> > To unsubscribe or change options:<br> > <a href=3D"https://lists.samba.org/mailman/listinfo/distcc">https://li= sts.samba.org/mailman/listinfo/distcc</a><br> </p> --20cf307f313c43a68904f481408d-- --===============3083266078317553592== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc --===============3083266078317553592==--