Gentoo Archives: gentoo-user

From: R0b0t1 <r030t1@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How do I turn off ansi (colour) codes in GCC 6.3.0 ?
Date: Wed, 10 May 2017 18:35:33
Message-Id: CAAD4mYgb-+puEeWQNhkRp-i2zzbFnYNizdpahSuQz-6YB=dsOA@mail.gmail.com
In Reply to: [gentoo-user] How do I turn off ansi (colour) codes in GCC 6.3.0 ? by Walter Dnes
1 On Wed, May 10, 2017 at 1:29 PM, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > Splitting away from the main GCC 6.3.0 thread, because this is a
3 > tangential issue. The GCC 6.3.0 build output is cutsie/wootsie with
4 > lots of colour... "because teh shiney". Unfortunately, it absolutely
5 > sucks for reading build logs giving stuff like...
6 >
7 > ^[[01m^[[Kicesh.cc:249:1:^[[m^[[K ^[[01;31m^[[Kerror: ^[[m^[[Knarrowing conversion of '^[[01m^[[K4294967295ul^[[m^[[K' from '^[[01m^[[Klong unsigned int^[[m^[[K' to '^[[01m^[[Klong int^[[m^[[K' inside { } [^[[01;31m^[[K-Wnarrowing^[[m^[[K]
8 > ^[[01;31m^[[K}^[[m^[[K;
9 > ^[[01;31m^[[K^^[[m^[[K
10 > ^[[01m^[[Kicesh.cc:261:1:^[[m^[[K ^[[01;31m^[[Kerror: ^[[m^[[Knarrowing conversion of '^[[01m^[[K4294967295ul^[[m^[[K' from '^[[01m^[[Klong unsigned int^[[m^[[K' to '^[[01m^[[Klong int^[[m^[[K' inside { } [^[[01;31m^[[K-Wnarrowing^[[m^[[K]
11 > ^[[01;31m^[[K}^[[m^[[K;
12 > ^[[01;31m^[[K^^[[m^[[K
13 >
14 > I tried "emerge --color=n icewm", but that doesn't help. Any ideas?
15 >
16 > --
17 > Walter Dnes <waltdnes@××××××××.org>
18 > I don't run "desktop environments"; I run useful applications
19 >
20
21 The option is "-fdiagnostics-color=never" or "-fno-diagnostics-color".
22 You can also set the environment variable GCC_COLORS to the empty
23 string. The latter is probably more useful in the context of portage.

Replies

Subject Author
Re: [gentoo-user] How do I turn off ansi (colour) codes in GCC 6.3.0 ? Walter Dnes <waltdnes@××××××××.org>