Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369413 - [Scanner Discovery] CDT "per file" discovery doesn't do compiler inspection with MinGW, when a non-existing include path is given
Summary: [Scanner Discovery] CDT "per file" discovery doesn't do compiler inspection w...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0.2   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-23 11:24 EST by Martin Oberhuber CLA
Modified: 2020-09-04 15:22 EDT (History)
1 user (show)

See Also:


Attachments
sample project (2.45 KB, application/zip)
2012-01-23 11:24 EST, Martin Oberhuber CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2012-01-23 11:24:14 EST
Created attachment 209923 [details]
sample project

Build ID: CDT 8.0.2-snapshot-20120121 from Hudson

The "gcc per file" scanner discovery doesn't do gcc compiler inspection with MinGW, when compile commands reference an include path that doesn't physically exist.

This is a problem, since compiler inspection is needed to reveal important headers like stddef.h which define types like size_t.

Steps to reproduce:
1. Install latest MinGW 
2. Import attached sample project
3. Build the project 
   --> The #include <sys/types.h> is marked as an error.
   --> "C:/MinGW/include" is not discovered as include path
   --> "C:/MinGW/lib/gcc/mingw32/4.6.2/include" is not discovered as include path

4. Edit Makefile, remove the non-existing -I directive, clean and rebuild
   --> The MinGW includes are now discovered.
Comment 1 Martin Oberhuber CLA 2012-03-22 06:53:50 EDT
Ping

this looks like a major issue to me with respect to symbol quality, any comment ?
Comment 2 Andrew Gvozdev CLA 2012-03-22 11:55:45 EDT
I still hope to deprecate current scanner discovery in Juno with bug 290631. But if you feel that is a major for you I can review a patch - if it is a simple one.