Skip to content

Conversation

akash-manna-sky
Copy link

JENKINS-73509

GCC parser does not handle cc1/cc1plus warnings

Testing done

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Comment on lines +1 to +9
In member function 'void CInput::UpdateText(int, int, int)':
cc1plus: warning: 'void* _builtin_memset(void*, int, long unsigned int)': specified size 18446744073709551612
exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]

In member function 'void CInput::UpdateText(int, int, int)':
cc1: warning: 'void* _builtin_memcpy(void*, const void*, long unsigned int)': specified size 18446744073709551612
exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]

testhist.l:451: warning: `void yyunput(int, char*)' defined but not used
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this output generated by an actual compiler call? Or did you just copy the text from the issue?

Copy link
Author

@akash-manna-sky akash-manna-sky Oct 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
As it was there in JIRA, I didn't validate it against raw compiler logs.
Please let me know if there’s anything I need to update or improve to help move it forward.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without more details and input from the author of the issue it does not make sense to continue here.

private static final String GCC_WARNING_PATTERN = "^(?:\\s*(?:\\[.*\\]\\s*)?([^ ]*\\.[chpimxsola0-9]+):(?:(\\d*):"
+ "(?:\\d*:)*\\s*(?:(warning|error|note)\\s*:|\\s*(.*))|\\s*(undefined reference to.*))(.*)|.*ld:\\s*(.*-l("
+ ".*)))$";
+ ".*))|(?:In .+?:\\s*)?(cc1(?:plus)?):\\s*(warning|error|note):\\s*(.*))$";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this makes the parser more complex. Do you know if there are several different messages not picked up currently? I asked in JENKINS-73509, but maybe you have an answer already.

@akash-manna-sky akash-manna-sky marked this pull request as ready for review October 8, 2025 08:51

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
StringUtils.containsAnyIgnoreCase
should be avoided because it has been deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants