From owner-freebsd-questions@FreeBSD.ORG Wed Jan 11 10:40:22 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 C921D106566B for ; Wed, 11 Jan 2012 10:40:22 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 578088FC16 for ; Wed, 11 Jan 2012 10:40:22 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so600933wgb.31 for ; Wed, 11 Jan 2012 02:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=u/V00MBESMmuCdbhaUskBk+SogZ8GtT8kpFdS5ZAv84=; b=qd24wI1t70V1csfg75TxpT9q4uSxFySedIx6JxgWmmdOuvndasFvmGy33Z7+1NhQVE vd7PqnggGalFGLTUA76y1euMWrEbGQYouyhtim6EPNSCGLHRqoMDOKR2XsHUHczPFHu9 Stf7duQ7RnkBDAL+qRv0Fjoh4zK6D+A5NeIL8= Received: by 10.180.101.101 with SMTP id ff5mr9754837wib.14.1326278421295; Wed, 11 Jan 2012 02:40:21 -0800 (PST) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id a6sm3979236wiy.6.2012.01.11.02.40.19 (version=SSLv3 cipher=OTHER); Wed, 11 Jan 2012 02:40:20 -0800 (PST) Message-ID: <4F0D6712.8070601@gmail.com> Date: Wed, 11 Jan 2012 12:40:18 +0200 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0.1) Gecko/20120110 Firefox/9.0.1 SeaMonkey/2.6.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 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 10:40:22 -0000 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. -- Sphinx of black quartz judge my vow.