Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357700 - You can't specify compiler options in the Discovery Options
Summary: You can't specify compiler options in the Discovery Options
Status: CLOSED WONTFIX
Alias: None
Product: PTP
Classification: Tools
Component: RDT (show other bugs)
Version: 5.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 18:03 EDT by Corey Ashford CLA
Modified: 2014-05-29 15:33 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Corey Ashford CLA 2011-09-14 18:03:54 EDT
Build Identifier: I20110613-1736

If I am indexing remotely-located code, I may choose to use different compiler options from the default.  This means that when RDT runs the remote "gcc -dD ..." command, it's not going to obtain the correct set of predefined macros.  In addition, since it uses -dD instead of -dM, it obtains an incomplete set of predefined macros for the indexing process.

As an example of the former, consider the case where the remote code is set up to build with the -m32 option, but the default is -m64.  running "gcc -dD ..." without the -m32 will cause the 64-bit macros to be emitted instead of the 32-bit ones, which will may cause the indexing of the source to be off.

In my case, I am indexing the Linux kernel source, which relies on many of these macros, and without the correct macros, the indexing is done incorrectly.

Reproducible: Always

Steps to Reproduce:
1. Create a Remote C/C++ Project
2. Choose the Remote Linux GCC toolchain
3. Open the project properties and examine the C/C++ Build->Discovery Options page
4. Notice that there is no place to add or modify options passed to gcc (g++ ?)
Comment 1 Chris Recoskie CLA 2011-09-15 10:40:21 EDT
This is really a CDT problem.  It handles the discovery mechanism.
Comment 2 Corey Ashford CLA 2011-09-15 12:49:26 EDT
Thanks for your reply, Chris.

It's not clear to me that what you said is correct.  If I use the local Linux GCC Tool Chain, I *can* specify compiler options to use during discovery.  However, that part of the dialog disappears when using the Remote Linux GCC Tool Chain.

Is Remote Linux GCC part of the CDT, or part of PTP/RDT, etc.?
Comment 3 Chris Recoskie CLA 2011-09-15 13:00:04 EDT
Hmmm... maybe we overrode the page?  I'll have a look, but I didn't think we did.
Comment 4 Chris Recoskie CLA 2011-09-15 13:08:30 EDT
As near as I can tell that's the stock property page from CDT.  I'll look at the page, I'm not sure what criteria it is using for displaying the controls.
Comment 5 Chris Recoskie CLA 2011-09-15 13:15:54 EDT
Looks like there is an extension point that allows you to contribute an options page that is mapped to your discovery profile ID.  We didn't know this existed so we didn't contribute any pages for the remote discovery profiles.

Bouncing back to RDT again.
Comment 6 Greg Watson CLA 2014-05-29 15:33:11 EDT
Assuming this will not be fixed.