[distcc] distcc failed to parse "-x c" and "-x c++" compiler flags and to pass -nostdinc to distcc server

Tihomir Heidelberg - 9a4gl 9a4gl at hamradio.hr
Tue Dec 1 17:57:39 MST 2009


Martin Pool wrote:
>> If I pass -x c to
>>   distcc.exe arm-none-symbianelf-g++.exe ... -x c ...
>> I get
>> arm-none-symbianelf-g++.exe: warning: `-x c' after last input file has no
>> effect
>> arm-none-symbianelf-g++.exe: no input files
>>     
>
> What's in the ...?  If you are putting -x c after the source files,
> the error is reasonable.  If you're doing it correctly and distcc's
> messing up the order, that would be a bug.
>
>   
-x c is before source file, actually the source file is last.
>> With -x c++ there is no warning, but I am not sure if it handle that.
>>
>> Problem 2:
>> There is compiler flag -nostdinc which does not cause problems to distcc.exe
>> calling preprocessor, but this option is not passed to distccd server. It
>> seems that distcc.exe does not recognize it, so it ignores this.
>>     
>
> -nostdinc only affects searching for include files, therefore it'd be
> appropriate not to pass it to the server?
>
>   
Even in non-pump mode, compiler on server side will faile to build
without this flag.

I solved the problem with wrapper on client and on server side, but
that's not nice.

Tihomir


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/distcc/attachments/20091202/54280ccc/attachment.html>


More information about the distcc mailing list