[Bug 208947] bsd-make looses colored output with -j 2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 21 08:37:22 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208947

            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 at FreeBSD.org
          Reporter: h2+fbsdports at 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

==test.cpp==

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

==Makefile==

test: test.cpp
        g++5 -o test test.cpp -std=c++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!

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


More information about the freebsd-bugs mailing list