-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build errors not displayed automatically when using colorgcc
#361
Comments
@dornhege Can you give a little more info about your shell and terminal emulator? This works for me, building the following package on 14.04 / 0.4.2: Asciinema here: |
@dornhege Can you also post your CMake and GCC versions? |
I have gnome-terminal (3.6.2), with bash 4.3.11. CMake 2.8.12.2 and G++ 4.8.4 (ran through colorgcc). The test_pkg that I used is in principle identical and I would have expected your output with the compiler errors displayed and not only make. |
I didn't even think to ask about |
colorgcc
That's good to know. Is there any chance to fix that (even for now locally in a hacky way)? |
Other not using |
Hmm I didn't know that. In my opinion I think the entire build out for the stage (make or cmake) should be printed when there is an error. It's often the case that more context is required when trying to figure out the cause of the issue. On the other hand I don't think there is a significant benefit to limiting the output when there is an error. Another thing to consider is that using colorgcc will probably prevent catkin build from capturing your warnings from gcc. It might be better for us to have a use colorgcc option in catkin build so we can apply the output of gcc to it after capturing the streams separately. |
I'm fine either way.
The problem is that some people just symlink |
Yeah, but then it's hard include the right amount of context and there's always the risk of false positives. |
We could potentially set the value of https://github.com/colorgcc/colorgcc/blob/master/colorgccrc.txt#L39 From https://github.com/colorgcc/colorgcc/blob/master/README:
Of course that means that there will be no colorizing the output of gcc when used with |
Also, I think starting in gcc 4.9 colorized output is built into gcc, so this might be only a temporary issue: https://gcc.gnu.org/gcc-4.9/changes.html (look for |
I think that will probably break all colors, since other tools also rely on this variable.
Ah, that's nice. |
You're probably right... Though at least some tools only care about whether or not stdout is a tty and don't consider |
Thanks, #362 works! The symlink setup is actually, what I have. Removing colorization in general is not a good option for me. I've tried warnings, and yes, they don't appear. For now, I added the same output dump if "warn" appears in the output. This works, but of course isn't perfect. I'm not sure if you want to add something like that, but warnings don't even appear in the summary (i.e. Warnings: None). Regarding gcc 4.9: I'm not sure if that will be coming for trusty, which might need to be considered. |
Yeah, I think this is the best way to go. We can search for narrower patterns like |
System Info
Build / Run Issue
Whenever there is a compiler error (g++) with the current version of catkin tools it is not displayed, i.e., I get:
The listed log file correctly contains the build errors.
catkin build -v
also shows the errors directly together with all the other verbose-ness.I believe that not showing errors or warnings is not the intended behavior and these should show in the build output.
The text was updated successfully, but these errors were encountered: