Re: distcc failed to parse "-x c" and "-x c++" compiler flags and to pass -nostdinc to distcc server

Tihomir Heidelberg - 9a4gl <[email protected]>
Newsgroups gmane.comp.compilers.distcc
Message-ID <[email protected]>
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

__
distcc mailing list            http://distcc.samba.org/
To unsubscribe or change options:
https://lists.samba.org/mailman/listinfo/distcc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.