mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 10:16:03 +02:00
bug 314253: Linker warning not recognized
Based on work from Axel Mueller
This commit is contained in:
parent
fb1eb3faed
commit
0dd48245de
3 changed files with 29 additions and 4 deletions
|
@ -112,4 +112,29 @@ public class GLDErrorParserTests extends GenericErrorParserTests {
|
||||||
new String[] {GLD_ERROR_PARSER_ID}
|
new String[] {GLD_ERROR_PARSER_ID}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testLinkerMessages_PrecedingPath_bug314253() throws IOException {
|
||||||
|
runParserTest(
|
||||||
|
new String[] {
|
||||||
|
"ld: warning: libstdc++.so.5, needed by testlib_1.so, may conflict with libstdc++.so.6",
|
||||||
|
"/usr/bin/ld: warning: libstdc++.so.5, needed by testlib_2.so, may conflict with libstdc++.so.6",
|
||||||
|
"C:\\bin\\ld.exe: warning: libstdc++.so.5, needed by testlib_3.so, may conflict with libstdc++.so.6",
|
||||||
|
"c:/bin/ld.exe: warning: libstdc++.so.5, needed by testlib_4.so, may conflict with libstdc++.so.6",
|
||||||
|
"D:\\mingw\\bin\\..\\lib\\gcc-lib\\mingw32\\3.2.3\\..\\..\\..\\..\\mingw32\\bin\\ld.exe: cannot find -ljpeg",
|
||||||
|
"notld: warning: ld error parser has no business parsing this message",
|
||||||
|
},
|
||||||
|
1, // errors
|
||||||
|
4, // warnings
|
||||||
|
0, // Infos
|
||||||
|
null,
|
||||||
|
new String[] {
|
||||||
|
"libstdc++.so.5, needed by testlib_1.so, may conflict with libstdc++.so.6",
|
||||||
|
"libstdc++.so.5, needed by testlib_2.so, may conflict with libstdc++.so.6",
|
||||||
|
"libstdc++.so.5, needed by testlib_3.so, may conflict with libstdc++.so.6",
|
||||||
|
"libstdc++.so.5, needed by testlib_4.so, may conflict with libstdc++.so.6",
|
||||||
|
"cannot find -ljpeg",
|
||||||
|
},
|
||||||
|
new String[] {GLD_ERROR_PARSER_ID}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,8 +64,8 @@ CDTGNULinkerErrorParser.regex.InFunction=(.*?):?(\\(\\.\\w+\\+.*\\))?:\\s*(In fu
|
||||||
CDTGNULinkerErrorParser.regex.WarningDangerousFunction=(.*?):(\\d+):(\\d+:)? ([Ww]arning:)?\\s*(the use of [`'"](.*)['"] is dangerous, better use [`'"](.*)['"].*)
|
CDTGNULinkerErrorParser.regex.WarningDangerousFunction=(.*?):(\\d+):(\\d+:)? ([Ww]arning:)?\\s*(the use of [`'"](.*)['"] is dangerous, better use [`'"](.*)['"].*)
|
||||||
CDTGNULinkerErrorParser.regex.TextWarning=(.*?):?\\(\\.\\w+\\+.*\\): [Ww]arning:? (.*)
|
CDTGNULinkerErrorParser.regex.TextWarning=(.*?):?\\(\\.\\w+\\+.*\\): [Ww]arning:? (.*)
|
||||||
CDTGNULinkerErrorParser.regex.TextError=(.*?):?\\(\\.\\w+\\+.*\\): (.*)
|
CDTGNULinkerErrorParser.regex.TextError=(.*?):?\\(\\.\\w+\\+.*\\): (.*)
|
||||||
CDTGNULinkerErrorParser.regex.ldWarning=ld(\\.exe)?: [Ww]arning:? (.*)
|
CDTGNULinkerErrorParser.regex.ldWarning=(.*[/\\\\])?ld(\\.exe)?: [Ww]arning:? (.*)
|
||||||
CDTGNULinkerErrorParser.regex.ldError=ld(\\.exe)?: (.*)
|
CDTGNULinkerErrorParser.regex.ldError=(.*[/\\\\])?ld(\\.exe)?: (.*)
|
||||||
|
|
||||||
CDTGNUAssemblerErrorParser.name=CDT GNU Assembler Error Parser
|
CDTGNUAssemblerErrorParser.name=CDT GNU Assembler Error Parser
|
||||||
CDTWorkingDirLocator.name=CDT pushd/popd CWD Locator
|
CDTWorkingDirLocator.name=CDT pushd/popd CWD Locator
|
||||||
|
|
|
@ -220,14 +220,14 @@
|
||||||
regex="%CDTGNULinkerErrorParser.regex.TextError"
|
regex="%CDTGNULinkerErrorParser.regex.TextError"
|
||||||
severity="Error"/>
|
severity="Error"/>
|
||||||
<pattern
|
<pattern
|
||||||
description-expr="$2"
|
description-expr="$3"
|
||||||
eat-processed-line="true"
|
eat-processed-line="true"
|
||||||
file-expr=""
|
file-expr=""
|
||||||
line-expr=""
|
line-expr=""
|
||||||
regex="%CDTGNULinkerErrorParser.regex.ldWarning"
|
regex="%CDTGNULinkerErrorParser.regex.ldWarning"
|
||||||
severity="Warning"/>
|
severity="Warning"/>
|
||||||
<pattern
|
<pattern
|
||||||
description-expr="$2"
|
description-expr="$3"
|
||||||
eat-processed-line="true"
|
eat-processed-line="true"
|
||||||
file-expr=""
|
file-expr=""
|
||||||
line-expr=""
|
line-expr=""
|
||||||
|
|
Loading…
Add table
Reference in a new issue