Re: build error at rpc code
On 2012-08-24 15:07, Dima Panov wrote:
> 24.08.2012 19:12, Dimitry Andric =D0=BF=D0=B8=D1=88=D0=B5=D1=82:
=2E..
>> You are most likely setting CPP as follows:
>>
>> CPP=3Dclang -E
>>
>> Don't do that, use the following instead:
>>
>> CPP=3Dclang-cpp
>>
>> If there is no clang-cpp symlink in /usr/bin yet, just make it manuall=
y
>> for now. It will also be created by installworld.
>
> Oh, indeed. Thanks for advice.
> However, why such different results in preprocessor invocation style?
When you invoke either clang or gcc with -E, files with unknown
extensions are not preprocessed, and considered to be linker input
files.
When you invoke clang-cpp or cpp, files with unknown extensions are
considered to be C instead.
Since our RPC-related files use the .x extension, -E doesn't work as
expected, and the resulting files will give a compile error later on.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
討論串 (同標題文章)