From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 11:04:40 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D034106566B for ; Wed, 11 Jan 2012 11:04:40 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from procyon.xvoid.org (procyon.xvoid.org [IPv6:2001:470:28:4ba:20c:29ff:feb6:11bc]) by mx1.freebsd.org (Postfix) with ESMTP id A4FC88FC17 for ; Wed, 11 Jan 2012 11:04:39 +0000 (UTC) Received: from procyon.xvoid.org (yuri@procyon.xvoid.org [IPv6:::1]) by procyon.xvoid.org (8.14.5/8.14.5) with ESMTP id q0BB4bhc014538; Wed, 11 Jan 2012 15:04:37 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.5/8.14.5/Submit) id q0BB4bLZ014537; Wed, 11 Jan 2012 15:04:37 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: procyon.xvoid.org: yuri set sender to yuri.pankov@gmail.com using -f Date: Wed, 11 Jan 2012 15:04:37 +0400 From: Yuri Pankov To: Volodymyr Kostyrko Message-ID: <20120111110437.GA1429@procyon.xvoid.org> References: <4F0D6712.8070601@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F0D6712.8070601@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-questions@freebsd.org Subject: Re: what is a correct way to build ports with clang X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jan 2012 11:04:40 -0000 On Wed, Jan 11, 2012 at 12:40:18PM +0200, Volodymyr Kostyrko wrote: > Hi all. > > I recently stumbled upon minor inconsistency when building misc/mc. The > build goes well when CPP is unset or when CPP=clang -E, but fails when > CPP=clang-cpp: > > /tmp/ports/usr/ports/misc/mc/work/mc-4.7.5.5/config.log: > > configure:23603: checking for slang.h > configure:23618: clang-cpp -ltermcap -I/usr/local/include > -I/usr/include -L/usr/lib conftest.c > Stack dump: > 0. Program arguments: clang-cpp -ltermcap -I/usr/local/include > -I/usr/include -L/usr/lib conftest.c > 1. Compilation construction > 2. Building compilation actions > configure:23618: $? = 139 > > What is the correct way to build ports with clang? Wiki states that CPP > should be set to clang-cpp for everyone however this doesn't work here. This can be reduced to just `clang-cpp -l` and I guess it's a bug... Yuri