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#38177 - [eclipse-cdt] Eclipse CDT uses wrong include paths

Attached to Project: Community Packages
Opened by Dan Liew (delcypher) - Tuesday, 17 December 2013, 15:16 GMT
Last edited by Balló György (City-busz) - Friday, 10 January 2014, 12:26 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 0
Private No

Details

Description:

Eclipse CDT seems to be assuming that I'm using gcc 4.8.1, when in fact I have gcc 4.8.2 so it looks for the C++ library in the wrong place. This means Eclipses editor cannot resolve many C++ standard library types such as std::vector<int>

Additional info:
* Eclipse 4.3.1-1
* Eclipse CDT 8.2.1-1
* gcc 4.8.2


Steps to reproduce:
1. Start Eclipse
2. File > New > Makefile project with existing code. Use an existing project src. I used the source from LLVM 2.9 [1]
3. Select toolchain as "GNU Autotools chain"
4. Let Eclipse index

Now under the problems tab you will see warnings like...

```
Description Resource Path Location Type
Invalid project path: Include path not found (/usr/include/c++/4.8.1). llvm29 pathentry Path Entry Problem
```

and uses of Eclipse's editor will not be able to resolve things like std::vector<int>

[1] http://llvm.org/releases/2.9/llvm-2.9.tgz
This task depends upon

Closed by  Balló György (City-busz)
Friday, 10 January 2014, 12:26 GMT
Reason for closing:  Fixed
Comment by Dan Liew (delcypher) - Tuesday, 17 December 2013, 15:21 GMT
I forgot to mention that the problematic paths that Eclipse tries to use are...

/usr/include/c++/4.8.1
/usr/include/c++/4.8.1/backward
/usr/include/c++/4.8.1/x86_64-unknown-linux-gnu
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/include
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/fixed

Doing s/4.8.1/4.8.2/ would give the correct paths. For now I've just manually added the right paths in the project's settings. (Project Settings > C/C++ General > Paths and Symbols , under includes tab)
Comment by Alexander F. Rødseth (xyproto) - Thursday, 19 December 2013, 10:37 GMT
Thanks for reporting! I'll look into this.
Comment by Alexander F. Rødseth (xyproto) - Monday, 23 December 2013, 21:50 GMT
Please report this upstream to the Eclipse CDT developers and, if you wish, include a link to the bug report here. Thanks.
Comment by Dan Liew (delcypher) - Wednesday, 08 January 2014, 13:43 GMT
Hmmm. I don't seem to be able to reproduce the issue anymore. I've upgraded to gcc 4.8.2-7 but I'm not sure if that should of made a difference.

Loading...