Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#63031 - [eclipse-cpp] Lots of symbol resolution errrors with GCC 9.1

Attached to Project: Arch Linux
Opened by Nicola Mori (snack) - Friday, 28 June 2019, 16:20 GMT
Last edited by freswa (frederik) - Wednesday, 12 February 2020, 11:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Since the upgrade to eclipse-cpp 4.12 (i.e. CDT 2019-06) a lot of errors related to symbol resolution have begun to appear in the editor, e.g.:

Symbol 'name' could not be resolved

or:

Type 'name' could not be resolved

It seems that the issue is related to GCC 9.1, and that it has already been fixed:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=548482

This issue is particularly nasty, making it almost impossible to comfortably edit source files; would it be possible to rebuild eclipse-cpp including the patch commit? Thanks.

Additional info:

* package version(s)
eclipse-cpp 4.12-1
gcc 9.1.0-2

* link to upstream bug report, if any
https://bugs.eclipse.org/bugs/show_bug.cgi?id=548482


Steps to reproduce:
- Install eclipse-cpp 4.12-1 and gcc 9.1.0-2
- Open a C++ file in a C++ project
- Verify that many symbols are not found (red underline)
This task depends upon

Closed by  freswa (frederik)
Wednesday, 12 February 2020, 11:50 GMT
Reason for closing:  Upstream
Comment by Nicola Mori (snack) - Friday, 28 June 2019, 16:23 GMT
The issue is originally described here:

https://www.eclipse.org/lists/cdt-dev/msg33623.html
Comment by Nicola Mori (snack) - Thursday, 04 July 2019, 08:58 GMT
A new version of CDT (9.8.1) incorporating the bugfix has just been released:

https://www.eclipse.org/lists/cdt-dev/msg33665.html

Eidt: I just flagged eclipse-cpp out-of-date for incorporating CDT 9.8.1.
Comment by Jan Alexander Steffens (heftig) - Thursday, 04 July 2019, 09:10 GMT
Our Eclipse packages are simply repackaged EPP releases. We don't incorporate releases of subprojects.
Comment by Nicola Mori (snack) - Thursday, 04 July 2019, 09:21 GMT
Hi Jan, thanks for clarifying the packaging procedure. To your knowledge, are new EPP versions released when subpackages are updated? I.e. is there any chance to have the bug fixed in Arch before the new Eclipse major release? Thanks.
Comment by Jan Alexander Steffens (heftig) - Thursday, 04 July 2019, 09:22 GMT
No, there haven't been any sub-releases since they switched to the three-month cycle.
Comment by Nicola Mori (snack) - Thursday, 04 July 2019, 09:43 GMT
Ok thanks. So in case any other person is encountering the same problem I post here my workaraound:

1) From:
https://ci.eclipse.org/cdt/job/cdt-master/lastSuccessfulBuild/artifact/releng/org.eclipse.cdt.repo/target/repository/plugins/
download the nightly build of org.eclipse.cdt.core_6.8.100.2019mmyyddhhmm.jar (substitute mmyyddhhmm with the appropriate date string).
2) rename the file to org.eclipse.cdt.core_6.8.0.201905312053.jar
3) copy it to /usr/lib/eclipse/plugins/, overwriting the existing one

This worked for me with the nightly build of 28th June, but successive builds may have broken somethings so backup /usr/lib/eclipse/plugins/org.eclipse.cdt.core_6.8.0.201905312053.jar before trying.

Loading...