Date: Mon, 13 Feb 2012 21:19:07 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Brandon Falk <falkman@gamozo.org> Cc: freebsd-current@freebsd.org Subject: Re: Does anyone regularly build HEAD with clang? Message-ID: <4F39703B.20204@FreeBSD.org> In-Reply-To: <4F396020.3030205@gamozo.org> References: AF413792-CD59-416A-B4E5-27D860FFB57F@turbofuzz.com <4F396020.3030205@gamozo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2012-02-13 20:10, Brandon Falk wrote: > I was having the exact same issue. The fix? 'CPP=clang-cpp' instead of > 'CPP=clang -E' in your make.conf. Yes, you should indeed use clang-cpp instead of clang -E. Similarly, never use CPP=gcc -E. This is because in "cpp mode", both gcc and clang behave a little differently than with -E: unknown file extensions (such as the .x extension used for RPC) will be treated as C. But when you use -E, any unknown file extension will be considered an object file, and passed to the linker. Normally, this should lead to errors during building of the rpc include files though... I wonder why this does not happen in your case.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F39703B.20204>