From owner-freebsd-ports@FreeBSD.ORG Fri Feb 22 10:24:55 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 8E6F0AD9; Fri, 22 Feb 2013 10:24:55 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 317C837D; Fri, 22 Feb 2013 10:24:55 +0000 (UTC) Received: from irix.bris.ac.uk ([137.222.10.39] helo=ncs.bris.ac.uk) by dirg.bris.ac.uk with esmtp (Exim 4.72) (envelope-from ) id 1U8poB-0005ol-BL; Fri, 22 Feb 2013 10:24:53 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncs.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1U8poB-0001s5-6Q; Fri, 22 Feb 2013 10:24:51 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6) with ESMTP id r1MAOol1025488; Fri, 22 Feb 2013 10:24:50 GMT (envelope-from mexas@mech-cluster241.men.bris.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.6/8.14.6/Submit) id r1MAOoBt025487; Fri, 22 Feb 2013 10:24:50 GMT (envelope-from mexas) Date: Fri, 22 Feb 2013 10:24:50 GMT From: Anton Shterenlikht Message-Id: <201302221024.r1MAOoBt025487@mech-cluster241.men.bris.ac.uk> To: freebsd-ports@freebsd.org, makc@freebsd.org, mexas@bristol.ac.uk Subject: Re: how to use -f[no-]color-diagnostics clang option with ports In-Reply-To: <12378284.0P1MznmmVU@mercury.ph.man.ac.uk> X-Spam-Score: -3.8 X-Spam-Level: --- X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: mexas@bristol.ac.uk 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:24:55 -0000 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? Thanks Anton