Community Packages

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#34853 - [eclipse-cdt] Internal indexer depends strictly on gcc 4.7.2

Attached to Project: Community Packages
Opened by nightstrike (nightstrike) - Friday, 19 April 2013, 12:21 GMT
Last edited by Alexander F. Rødseth (xyproto) - Friday, 03 May 2013, 22:04 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
I updated gcc to current (4.8.0 as of this writing), and now the eclipse-cdt internal indexer is rendered useless. It has hard coded paths for gcc 4.7.2 include files, and I can't figure out how to change them. Please tell me how, or release an updated version that is in line with the current arch gcc version (ideally with proper version dependencies in the dep list)

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Alexander F. Rødseth (xyproto)
Friday, 03 May 2013, 22:04 GMT
Reason for closing:  Upstream
Comment by Thorsten Töpper (Atsutane) - Saturday, 20 April 2013, 11:44 GMT
A workaround is to update the paths in your workspace. The file you have to modify is workspace/.metadata/.plugins/org.eclipse.cdt.core/language.settings.xml
Comment by Alexander F. Rødseth (xyproto) - Sunday, 21 April 2013, 12:43 GMT
Thanks Thorsten.

Does this work as a workaround?

sed -i 's/4\.7\.1/4\.8\.0/g' workspace/.metadata/.plugins/org.eclipse.cdt.core/language.settings.xml

If it does, I'll include a message in the .install file.


@nightstrike

Thanks for reporting.

This is an upstream problem, the eclipse-cdt package just copies over a couple of (mostly) .jar files.

Please report it upstream to the eclipse cdt developers and include a link to the bug report here.
Comment by nightstrike (nightstrike) - Sunday, 21 April 2013, 12:49 GMT
According to this stackoverflow entry, you actually can just delete some files to force eclipse to rescan:

http://stackoverflow.com/questions/9864003/eclipse-cdt-builtin-include-directories

This is still a subpar solution. It basically means, "Don't Upgrade".

Comment by Alexander F. Rødseth (xyproto) - Sunday, 21 April 2013, 13:10 GMT
I agree that this is subpar. IMO, both workarounds are subpar.

Please report this to the upstream developers of Eclipse CDT, so that they can fix the problem.

If you include a link to the upstream bug report here, we can follow the progress.
Comment by Alexander F. Rødseth (xyproto) - Friday, 03 May 2013, 22:04 GMT
Added a post_install message about the possibility of running the sed line above. Closing as "upstream".

Loading...