From owner-freebsd-ports@FreeBSD.ORG Fri Feb 22 10:37:32 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1B7DDE22; Fri, 22 Feb 2013 10:37:32 +0000 (UTC) (envelope-from utisoft@gmail.com) Received: from mail-ie0-x234.google.com (ie-in-x0234.1e100.net [IPv6:2607:f8b0:4001:c03::234]) by mx1.freebsd.org (Postfix) with ESMTP id BF35463A; Fri, 22 Feb 2013 10:37:31 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id bn7so526054ieb.11 for ; Fri, 22 Feb 2013 02:37:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=sO+3+VFyjICEvx8vCp+oI4gYLAU51Pj4qMjK96moRNo=; b=sZdhqUXmkIKxy9sFqPZBiJdgH59K+pr+6w9uV91Wk7sCWUOho+4SkPTxvNmBxG/IJH vewNzA54spaWoF0RIPEPBa4akiwHoa6ztx4+lbIm6/HJnwah+gYkxCge6BpclJP7Yp/R OwwinfWFHg3bJWXpCI0r41g/omC4OUFtPZo9TuLym+kO1mzZ00sUm+qLvBWIrclmp0ct NQg01rLhMQyhgu0cVCMWyVUfGcdkK8Qrxh+WLR4zPISqfA5WYZBQHAqkj1FTFBMKu1IX ZudNe2KViKKtBFkygDVxGg1KoL7AoHzfFcPzfTqB3fe0iGmMgNvjTNtlg49T7szRvAr3 rk8g== MIME-Version: 1.0 X-Received: by 10.50.152.169 with SMTP id uz9mr701447igb.15.1361529451406; Fri, 22 Feb 2013 02:37:31 -0800 (PST) Received: by 10.64.63.12 with HTTP; Fri, 22 Feb 2013 02:37:31 -0800 (PST) Received: by 10.64.63.12 with HTTP; Fri, 22 Feb 2013 02:37:31 -0800 (PST) In-Reply-To: <201302221024.r1MAOoBt025487@mech-cluster241.men.bris.ac.uk> References: <12378284.0P1MznmmVU@mercury.ph.man.ac.uk> <201302221024.r1MAOoBt025487@mech-cluster241.men.bris.ac.uk> Date: Fri, 22 Feb 2013 10:37:31 +0000 Message-ID: Subject: Re: how to use -f[no-]color-diagnostics clang option with ports From: Chris Rees To: Anton Shterenlikht Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Mailing List X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2013 10:37:32 -0000 On 22 Feb 2013 10:25, "Anton Shterenlikht" wrote: > > From makc@freebsd.org Thu Feb 21 13:47:30 2013 > > clang colours corrupt script() output, e.g.: > > > > #warning This file includes at least one deprecated or antiquated header. \ > > ^[[0;1;32m ^ > > ^[[0m1 warning generated. > > ^[[31m^[[1mLinking CXX executable ../../../bin/pvbatch > > ^[[0m[ 91%] Built target pvbatch-real > > > > Can I use something like this > > > > CFLAGS+= -fno-color-diagnostics > > CXXFLAGS+= -fno-color-diagnostics > > > > to suppress colour? > > CMAKE_ARGS+= -DCMAKE_COLOR_MAKEFILE=off > > I put this in /etc/make.conf: > > # grep COLOR /etc/make.conf > CMAKE_ARGS+= -DCMAKE_COLOR_MAKEFILE=off > > but building e.g. science/paravew in script(1), > I still get corrupted output, e.g. > > In file included from /usr/include/c++/4.2/backward/strstream:51: > ^[[1m/usr/include/c++/4.2/backward/backward_warning.h:32:2: ^[[0m^[[0;1;35mwarni > ng: ^[[0m^[[1mThis file > includes at least one deprecated or antiquated header. Please consider > > Or is this nothing to do with colour? > Then how can I get rid of these special > characters? > These look like clang output rather than CMake output. Did you try putting -fno-color-diagnostics in CFLAGS, and CXXFLAGS? The clang manual indicates that this would help. Chris