Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325307 - Eclipse unable to recognize a user-defined build environment variable
Summary: Eclipse unable to recognize a user-defined build environment variable
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: All Linux
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-15 02:02 EDT by Ravindranath M CLA
Modified: 2020-09-04 15:18 EDT (History)
1 user (show)

See Also:


Attachments
shows the build setting created by me. (34.29 KB, image/png)
2010-09-15 02:08 EDT, Ravindranath M CLA
no flags Details
shows the compiler output, indicating non-recognition of the build variable (42.29 KB, image/png)
2010-09-15 02:09 EDT, Ravindranath M CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ravindranath M CLA 2010-09-15 02:02:42 EDT
Build Identifier: Version: 3.5.2 Build id: M20100211-1343

the CDT builder is not able to recognize the build variables. I create a build variable "PROJECT_BUILD" and using the same in my make file.

The same effect, even if i set the variable using 
   C/C++ Build / Environment.

It works only if the variable is set within my terminal shell and launch the eclipse.

Please help.

Reproducible: Always

Steps to Reproduce:
1. I have created a makefile based C/C++ project.
2. In the properties of the project, I created a new build variable (from "C/C++ Build->Build Variables") called "PROJECT_BUILD", of type String with a value "/home/rvnath/workspace/CPLT_/build.
3. I am referencing this variable in my Makefile as below...
   include $(PROJECT_BUILD)/path.mk
4. But when the build starts, the variable is found to be empty, so it gives me a compiler error saying /path.mk is not found.

5. It only works, when i explicitly export this variable in my terminal and then launch Eclipse from that terminal.

Please suggest, if I am missing something here..
Comment 1 Ravindranath M CLA 2010-09-15 02:08:45 EDT
Created attachment 178898 [details]
shows the build setting created by me.
Comment 2 Ravindranath M CLA 2010-09-15 02:09:43 EDT
Created attachment 178899 [details]
shows the compiler output, indicating non-recognition of the build variable