EmbeddedRelated.com
Forums

Why is macro not replaced in the path to a file?

Started by janii December 13, 2010
My operating system is Windows XP Professional.  I invoke "clearmake lib"
from command prompt.

Windriver 5.8.0.0 compiler does run.  This compiler tries to open some gcc
parser configuration file but it cannot find the file because path to this
file is incorrect as follows:

GNU options parser fatal error:  config file wasn't found: 
$(CC_ROOT)\conf\gcc_parser.conf

In the makefile, CC_ROOT is defined as follows:
CC_ROOT=$(CC_HOME)$/diab$/5.8.0.0

CC_HOME is defined as follows:
CC_HOME = \folder1l\folder2\environment\WindRiver

The makefile also exports variables need by WindRiver Compiler as follows:
export DIABLIB=$(CC_ROOT)
export WIND_HOME=$(CC_HOME)
export WIND_PREFERRED_PACKAGES=diab-5.8.0.0
export WIND_DIAB_PATH=$(CC_HOME)\diab\5.8.0.0

When I echo macros DIABLIB and CC_ROOT, I see they are replaced by their
values, which is
the path.  Then, why does $(CC_ROOT) appears in the path to file above? 
Why doesn't it's value appear in the path?

If I export DIABLIB without a macro as follows:
export DIABLIB=\folder1\folder2\environment\WindRiver\diab\5.8.0.0

then, compilation is successful.


Thanks!	   
					
---------------------------------------		
Posted through http://www.EmbeddedRelated.com
>My operating system is Windows XP Professional. I invoke "clearmake lib" >from command prompt. > >Windriver 5.8.0.0 compiler does run. This compiler tries to open some
gcc
>parser configuration file but it cannot find the file because path to
this
>file is incorrect as follows: > >GNU options parser fatal error: config file wasn't found: >$(CC_ROOT)\conf\gcc_parser.conf > >In the makefile, CC_ROOT is defined as follows: >CC_ROOT=$(CC_HOME)$/diab$/5.8.0.0 > >CC_HOME is defined as follows: >CC_HOME = \folder1l\folder2\environment\WindRiver > >The makefile also exports variables need by WindRiver Compiler as
follows:
>export DIABLIB=$(CC_ROOT) >export WIND_HOME=$(CC_HOME) >export WIND_PREFERRED_PACKAGES=diab-5.8.0.0 >export WIND_DIAB_PATH=$(CC_HOME)\diab\5.8.0.0 > >When I echo macros DIABLIB and CC_ROOT, I see they are replaced by their >values, which is >the path. Then, why does $(CC_ROOT) appears in the path to file above? >Why doesn't it's value appear in the path? > >If I export DIABLIB without a macro as follows: >export DIABLIB=\folder1\folder2\environment\WindRiver\diab\5.8.0.0 > >then, compilation is successful. > > >Thanks! > >--------------------------------------- >Posted through http://www.EmbeddedRelated.com >
--------------------------------------- Posted through http://www.EmbeddedRelated.com
>>My operating system is Windows XP Professional. I invoke "clearmake
lib"
>>from command prompt. >> >>Windriver 5.8.0.0 compiler does run. This compiler tries to open some >gcc >>parser configuration file but it cannot find the file because path to >this >>file is incorrect as follows: >> >>GNU options parser fatal error: config file wasn't found: >>$(CC_ROOT)\conf\gcc_parser.conf >> >>In the makefile, CC_ROOT is defined as follows: >>CC_ROOT=$(CC_HOME)\diab\5.8.0.0 >> >>CC_HOME is defined as follows: >>CC_HOME = \folder1l\folder2\environment\WindRiver >> >>The makefile also exports variables need by WindRiver Compiler as >follows: >>export DIABLIB=$(CC_ROOT) >>export WIND_HOME=$(CC_HOME) >>export WIND_PREFERRED_PACKAGES=diab-5.8.0.0 >>export WIND_DIAB_PATH=$(CC_HOME)\diab\5.8.0.0 >> >>When I echo macros DIABLIB and CC_ROOT, I see they are replaced by their >>values, which is >>the path. Then, why does $(CC_ROOT) appears in the path to file above? >>Why doesn't it's value appear in the path? >> >>If I export DIABLIB without a macro as follows: >>export DIABLIB=\folder1\folder2\environment\WindRiver\diab\5.8.0.0 >> >>then, compilation is successful. >> >> >>Thanks! >> >>--------------------------------------- >>Posted through http://www.EmbeddedRelated.com >> > >--------------------------------------- >Posted through http://www.EmbeddedRelated.com >
--------------------------------------- Posted through http://www.EmbeddedRelated.com
On 13/12/2010 21:39, janii wrote:
> My operating system is Windows XP Professional. I invoke "clearmake lib" > from command prompt. >
<snip> From your post, it looks like you are having trouble with "clearmake". As far as I know, this is not a standard "make" utility but a specialised utility that comes with ClearCase revision control system. You might be lucky and find someone here that uses ClearCase and is an expert on clearmake, but you would be better off looking for clearmake help than looking in comp.arch.embedded. First find out who is responsible for ClearCase in your company - that person should be able to help you, or at least to put you in touch with ClearCase support. And this is a Usenet group - not a web forum, and certainly not a paid support line. You are /not/ going to get more help by re-posting your question every hour. Get a newsreader, and follow the group - if anyone can help you, you'll see the replies when they have time to answer.
David Brown wrote:
> On 13/12/2010 21:39, janii wrote: >> My operating system is Windows XP Professional. I invoke "clearmake lib" >> from command prompt. >> > > <snip> > > From your post, it looks like you are having trouble with "clearmake". > As far as I know, this is not a standard "make" utility but a > specialised utility that comes with ClearCase revision control system. > You might be lucky and find someone here that uses ClearCase and is an > expert on clearmake, but you would be better off looking for clearmake > help than looking in comp.arch.embedded. First find out who is > responsible for ClearCase in your company - that person should be able > to help you, or at least to put you in touch with ClearCase support. > > And this is a Usenet group - not a web forum, and certainly not a paid > support line. You are /not/ going to get more help by re-posting your > question every hour. Get a newsreader, and follow the group - if anyone > can help you, you'll see the replies when they have time to answer.
+42