From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 11:13:27 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 443951065673 for ; Wed, 11 Jan 2012 11:13:27 +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 9B9D98FC15 for ; Wed, 11 Jan 2012 11:13:26 +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 q0BBDPBw014580 for ; Wed, 11 Jan 2012 15:13:25 +0400 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by procyon.xvoid.org (8.14.5/8.14.5/Submit) id q0BBDPmU014579 for freebsd-questions@freebsd.org; Wed, 11 Jan 2012 15:13:25 +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:13:25 +0400 From: Yuri Pankov To: freebsd-questions@freebsd.org Message-ID: <20120111111325.GB1429@procyon.xvoid.org> References: <4F0D6712.8070601@gmail.com> <20120111110437.GA1429@procyon.xvoid.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120111110437.GA1429@procyon.xvoid.org> User-Agent: Mutt/1.5.21 (2010-09-15) 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:13:27 -0000 On Wed, Jan 11, 2012 at 03:04:37PM +0400, Yuri Pankov wrote: > 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... And it seems to be http://www.llvm.org/bugs/show_bug.cgi?id=11581. Yuri