Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329851 - [Scanner Discovery] Path passed to gcc without putting quotes around it make cdt user-unfriendly
Summary: [Scanner Discovery] Path passed to gcc without putting quotes around it make ...
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-09 15:19 EST by Hans Meier CLA
Modified: 2020-09-04 15:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Meier CLA 2010-11-09 15:19:07 EST
Build Identifier: 20100218-1602 CDT=201002161416

if eclipse is installed in a path with spaces in it, eg "Program Files", than the default settings shipped with cdt lead to: Error launching external scanner info generator...

The reason is that these options are passed to gcc:
-E -P -v -dD ${plugin_state_location}/${specs_file}

Somewhere along the line quotes should be introduced around paths in order for this error to go away.

Note that google currently does not turn up any useful information for this problem.

Currently the solution for this is:
Go to Window->Preferences->C/C++/New CDT Project Wizard->MakeFile Project->
Third Tab (Discovery options)->at the bottom you will find:

-E -P -v -dD ${plugin_state_location}/${specs_file}
change to:
-E -P -v -dD "${plugin_state_location}/${specs_file}"

Now restart eclipse.

basically if you are a new user your chances of finding this option in a rather daunting preference window are slim.


Reproducible: Always