Hi Jan/Fergus, Thanks for reply . Sorry for delay in replying back . I took some time to understand distcc and our build system . For Issues which mentioned in the first mail
Issue 1: In this case we have parser perl script which generates the intermediate .c file . sample command : parser/gentree.pl -c <path>/distcc/3.1/bin/distcc <path>/mips64/mips64-cpp -- -membedded-data -msoft-float <few more arguments > -fasynchronous-unwind-tables -G 0 ...(few more arguments) here gentree.pl file takes $CC as argument . But as i am using Distcc , so my CC= ${DISTCC} ${CC} . So it got extra argument so throwing error . Only for this parser file , i changed to compile on local host . So its fine now . Issue2 : gcc: cannot specify -o with -c or -S with multiple files . Again the way i invoke the distcc with gcc . So i changed only this file to compile locally and its working fine . sample command : <path>/distcc/3.1/bin/distcc <path>/mips64/bin/mips64-gcc -nostdinc -Wno-pointer-sign -Wno-error=address <few more compiler options> -c b.S a.c && <path>/mips64/bin/mips64-ld -EB -G 8 <few more compiler options> -T<path>/ld.d.S b.o a.o -o target && <path>/mips64/bin/mips64-objcopy -R .reginfo -S -O binary -R .note -R .comment target target.bin Regards Yudhistir On Wed, Feb 26, 2014 at 6:01 PM, Fergus Henderson <fer...@google.com> wrote: > On Wed, Feb 26, 2014 at 11:55 AM, yudhistir reddy < > yudhistir.re...@gmail.com> wrote: > >> Hi Fergus, >> >> Thanks for reply . I am invoking the DISTCC as below . In my build system >> file i mentioned as below >> >> if ${WITH_DISTCC} == "yes" >> CC ?= ${DISTCC} ${PATH TO GCC}gcc >> .else >> CC ?= ${PATH TO GCC}gcc >> endif >> >> where DISTCC points to a location it is installed . So just exploring >> how it is compiling with DISTCC and without DISTCC . >> >> build command is like "mk <target name> WITH_DISTCC=yes" . >> >> sample command line : >> <path/to/distcc>/3.1/bin/distcc <path/to/compiler>/mips64-gcc <command >> line arguments> >> > > Exactly what <command line arguments> are you passing in the cases when > distcc fails? > > Which part of your build system is generating those '-G0' flags? > > Which part of your build system is generating those '-o' and '-c'/'-S' > flags? > > >> >> >> Regards >> Yudhistir >> >> >> >> >> On Tue, Feb 25, 2014 at 10:48 PM, Fergus Henderson <fer...@google.com>wrote: >> >>> How exactly are you invoking distcc? >>> On 25 Feb 2014 13:02, "yudhistir reddy" <yudhistir.re...@gmail.com> >>> wrote: >>> >>>> Hi, >>>> >>>> I am new to DISTCC . I feel its great tool . I am just started >>>> exploring it . >>>> >>>> DISTCC used : distcc/3.1 version . >>>> >>>> I am compiling source code on Linux (Ubuntu) machine . Distcc is >>>> complaining for below errors >>>> >>>> Issue 1 : >>>> cc: error: unrecognized option '-G0' >>>> >>>> Compiler tool chain is for powerpc . This is happening for other >>>> machine arch also . >>>> >>>> Just for info about -G0 option . >>>> "-G num >>>> Put definitions of externally-visible data in a small data section >>>> if that data is no bigger than num bytes. GCC can then generate more >>>> efficient accesses to the data; see -mgpopt for details. >>>> >>>> The default -G option depends on the configuration." >>>> >>>> If i donot use DISTCC then i donot see this error from compiler . I am >>>> using gcc 4.2.1 compiler . >>>> >>>> >>>> >>>> Issue 2: >>>> >>>> gcc: cannot specify -o with -c or -S with multiple files . >>>> >>>> I am getting this errror while generating the .bin for with mips64 >>>> compiler . >>>> I donot see this error without DISTCC . >>>> >>>> >>>> Can you pls help me . Any help on this would be much appreciated . >>>> >>>> >>>> Regards >>>> Yudhistir >>>> >>>> >>>> >>>> >>>> >>>> >>>> __ >>>> distcc mailing list http://distcc.samba.org/ >>>> To unsubscribe or change options: >>>> https://lists.samba.org/mailman/listinfo/distcc >>>> >>> >> > > > -- > Fergus Henderson <fer...@google.com> > > "Defend the user, exclude no one, and create magic." -- Eric Schmidt. > >
__ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc