Skip to content
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

Problem matcher not working correctly for older gcc versions #57

Open
moether opened this issue Dec 11, 2019 · 0 comments
Open

Problem matcher not working correctly for older gcc versions #57

moether opened this issue Dec 11, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@moether
Copy link

moether commented Dec 11, 2019

I am facing following issue with older GCC versions (in my case we are tied to an ARM cross compiler 4.7.3 unfortunately).
It stops the output parsing after a certain line.

This is the output when I invoke the build from command line:
FAILED: CMakeFiles/test.dir/main.cpp.o /home/thomasm4/Downloads/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin/arm-linux-gnueabihf-g++ -g -MD -MT CMakeFiles/test.dir/main.cpp.o -MF CMakeFiles/test.dir/main.cpp.o.d -o CMakeFiles/test.dir/main.cpp.o -c ../main.cpp In file included from ../main.cpp:1:0: ../one.h:1:17: fatal error: two.h: No such file or directory compilation terminated.

While this is the output from the VS Code output pane:
[1/2] Building CXX object CMakeFiles/test.dir/main.cpp.o FAILED: CMakeFiles/test.dir/main.cpp.o /home/thomasm4/Downloads/gcc-linaro-arm-linux-gnueabihf-4.7-2013.01-20130125_linux/bin/arm-linux-gnueabihf-g++ -g -MD -MT CMakeFiles/test.dir/main.cpp.o -MF CMakeFiles/test.dir/main.cpp.o.d -o CMakeFiles/test.dir/main.cpp.o -c ../main.cpp In file included from ../main.cpp:1:0:

It never reaches the fatal error message, and therefore it is not shown in the problems pane of VS Code. Also, any other error / warning after that line is not parsed.

Plain simple code for reproduction using toolchain from https://releases.linaro.org/archive/13.01/components/toolchain/binaries/:

sample.zip

@go2sh go2sh added the bug Something isn't working label Dec 11, 2019
@go2sh go2sh self-assigned this Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants