Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

My operating system is Windows XP Professional. I invoke \"clearmake lib\" from

ID: 3622601 • Letter: M

Question

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)confgcc_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 = older1l older2environmentWindRiver

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.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= older1 older2environmentWindRiverdiab.8.0.0

then, compilation is successful.

Explanation / Answer

Macro CC_ROOT defined in my orginal post in not what's in my makefile. Please note the correction as follows: CC_ROOT=$(CC_HOME)diab.8.0.0

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote