Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Apr 2016 08:37:22 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 208947] bsd-make looses colored output with -j 2
Message-ID:  <bug-208947-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208947

            Bug ID: 208947
           Summary: bsd-make looses colored output with -j 2
           Product: Base System
           Version: 10.3-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: h2+fbsdports@fsfe.org

Since version 5 of GCC and in all recent versions of clang color is used to
greatly enhance the readability of the compiler output.
With FreeBSD's make the color disappears, as soon as you use multiple jobs
which is something you almost always want to do.

To reproduce, create

=3D=3Dtest.cpp=3D=3D

#include <iostream>
int main()
{
    std::cout << "foo" << "bar;
    return 0;
}

=3D=3DMakefile=3D=3D

test: test.cpp
        g++5 -o test test.cpp -std=3Dc++14


% make
[see output with color]

% gmake
[see output with color]

% make -j 2
[no color :'(]

% gmake
[see output with color]


This might seems like it is not really important, but for larger codebases =
with
templatatized code (and thus huge error messages) it makes a big difference!
Also, I suspect it wouldn't be too hard to fix?

Thank you very much!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208947-8>