From owner-freebsd-current@FreeBSD.ORG Fri Aug 24 13:20:13 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BEBD106566C; Fri, 24 Aug 2012 13:20:13 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 58B448FC17; Fri, 24 Aug 2012 13:20:13 +0000 (UTC) Received: from [192.168.0.6] (spaceball.home.andric.com [192.168.0.6]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id D93895C59; Fri, 24 Aug 2012 15:20:11 +0200 (CEST) Message-ID: <50377F8F.8000005@andric.com> Date: Fri, 24 Aug 2012 15:20:15 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120815 Thunderbird/15.0 MIME-Version: 1.0 To: fluffy@FreeBSD.org References: <5036FB4E.4080407@fluffy.khv.ru> <50373763.50608@andric.com> <50377C8A.40000@fluffy.khv.ru> In-Reply-To: <50377C8A.40000@fluffy.khv.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Dima Panov , current@freebsd.org Subject: Re: build error at rpc code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Aug 2012 13:20:13 -0000 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.