-
Notifications
You must be signed in to change notification settings - Fork 198
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
Do not mark "removing unused section" lines as errors #19
Conversation
…n "--print-gc-sections" is used. That is fine. Eclipse CDT reports all these lines as errors however and the build seems to have failed, which is wrong. The was a bug report Bug 539927: Do not mark "Removing unused section" lines as errors and a fix To fix this bug a change was made 2020-12-02 0532265 -CDTGNULinkerErrorParser.regex.LdMode=(.*[/\\\\])?ld(\\.exe)?: (mode .*) +CDTGNULinkerErrorParser.regex.ldInfo=(.*[/\\\\])?ld(\\.exe)?: ((mode|Removing unused section) .*) That does however not solve problem entirely, as the output of gcc linker is "removing", not "Removing", i.e. the word "removing" starts with a lower-case "r" To fix that problem both R and r should be accepted.
Sorry @githubaf - this repo (for now) is just a mirror of CDT. However we are just in the process of migrating to GitHub so perhaps this will be the first GitHub PR that gets merged once that migration is done! In the meantime, you need to sign the Eclipse Contributor Agreement so that we can accept any changes. You can review and sign the agreement here https://accounts.eclipse.org/user/eca |
OK, Thanks for the information. I did. |
@githubaf Merging is open -> This needs rebasing. |
From the code perspective, this change is ready for committing - no need to rebase it, the continuous-integration/jenkins/pr-merge check shows two unrelated test failures when this change is merged to main branch. However the ECA check continues to fail. Please ensure that your commit author email address matches that with which you signed the ECA with. I know that it is quite a bit of process for a trivial commit, but it is a one time thing and once done we can accept your contributions. |
PS1 When this change is eventually merged, it will be merged using the "rebase and merge" or "squash and merge" strategy on GitHub. Since we test PRs on Jenkins by merging this change with current main, we know it is good to go. PS2 We are still learning and adapting to our change to GitHub. The reporting back from Jenkins of checks failing needs improving. Some flaky tests still need to be marked as so with marking tests as flaky. PRs on that topic welcome. |
Seems the email address I used in the ECA is a different (but correct one) from the github account. What should I do now? Update the ECA on https://accounts.eclipse.org? |
I apologize for the inconvenience. You are not the first person to have this type of problem. Please try to update your eclipse account with the same email address in your commit message. If you have trouble please raise a ticket on the helpdesk or comment here and we'll try to resolve the issue. |
Sounds good! Thank you! |
Thank you @githubaf for the contribution. |
gcc linker outputs "removing unused section" to stderr when the option "--print-gc-sections" is used. That is fine.
Eclipse CDT reports all these lines as errors however and the build seems to have failed, which is wrong.
The was a bug report Bug 539927: Do not mark "Removing unused section" lines as errors and a fix
To fix this bug a change was made 2020-12-02 0532265
-CDTGNULinkerErrorParser.regex.LdMode=(.[/\\])?ld(\.exe)?: (mode .)
+CDTGNULinkerErrorParser.regex.ldInfo=(.[/\\])?ld(\.exe)?: ((mode|Removing unused section) .)
That does however not solve problem entirely, as the output of gcc linker is "removing", not "Removing", i.e. the word "removing" starts with a lower-case "r"
To fix that problem both R and r should be accepted.