# CMAQ 5.4 project bld error

**URL:** <https://forum.cmascenter.org/t/cmaq-5-4-project-bld-error/3732>\
**Category:** CMAQ\
**Created:** [November 23, 2022, 10:13pm UTC](https://forum.cmascenter.org/t/cmaq-5-4-project-bld-error/3732 "2022-11-23T22:13:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SharMM](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@SharMM](https://forum.cmascenter.org/u/SharMM)\
**Post date:** [November 23, 2022, 10:13pm UTC](https://forum.cmascenter.org/t/cmaq-5-4-project-bld-error/3732/1 "2022-11-23T22:13:20Z")

</div>

I get the following while building CMAQ project. Any advise?

SH

set STX1 = ( -DSUBST\_BARRIER=SE\_BARRIER -DSUBST\_GLOBAL\_MAX=SE\_GLOBAL\_MAX -DSUBST\_GLOBAL\_MIN=SE\_GLOBAL\_MIN -DSUBST\_GLOBAL\_MIN\_DATA=SE\_GLOBAL\_MIN\_DATA -DSUBST\_GLOBAL\_TO\_LOCAL\_COORD=SE\_GLOBAL\_TO\_LOCAL\_COORD -DSUBST\_GLOBAL\_SUM=SE\_GLOBAL\_SUM -DSUBST\_GLOBAL\_LOGICAL=SE\_GLOBAL\_LOGICAL -DSUBST\_GLOBAL\_GATHER=SE\_GLOBAL\_GATHER -DSUBST\_GLOBAL\_BCAST=SE\_GLOBAL\_BCAST -DSUBST\_LOOP\_INDEX=SE\_LOOP\_INDEX -DSUBST\_SUBGRID\_INDEX=SE\_SUBGRID\_INDEX )  
set STX2 = ( -DSUBST\_HI\_LO\_BND\_PE=SE\_HI\_LO\_BND\_PE -DSUBST\_SUM\_CHK=SE\_SUM\_CHK -DSUBST\_SE\_INIT=SE\_INIT -DSUBST\_INIT\_ARRAY=SE\_INIT\_ARRAY -DSUBST\_COMM=SE\_COMM -DSUBST\_MY\_REGION=SE\_MY\_REGION -DSUBST\_SLICE=SE\_SLICE -DSUBST\_GATHER=SE\_GATHER -DSUBST\_DATA\_COPY=SE\_DATA\_COPY -DSUBST\_IN\_SYN=SE\_IN\_SYN )  
if ( wrf\_cons == wrf\_cons ) then  
set ModCpl = couple/gencoor\_wrf\_cons  
set ModHadv = hadv/ppm  
set ModVadv = vadv/wrf\_cons  
else if ( wrf\_cons == local\_cons ) then  
set shaID = `git --git-dir=${CMAQ_REPO}/.git rev-parse --short=10 HEAD`  
git --git-dir=/cmaq/app/src/main/.git rev-parse --short=10 HEAD  
Illegal variable name.

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [November 29, 2022, 2:44pm UTC](https://forum.cmascenter.org/t/cmaq-5-4-project-bld-error/3732/2 "2022-11-29T14:44:29Z")

</div>

It is difficult to know what is causing the Illegal variable name. Are you using this version of the bldit\_cctm.csh script? [CMAQ/bldit\_cctm.csh at main · USEPA/CMAQ · GitHub](https://github.com/USEPA/CMAQ/blob/main/CCTM/scripts/bldit_cctm.csh)

Are you using the tcsh shell to run the script?

```auto
echo $SHELL

```

Did you run the bldit\_project.csh script to create a $CMAQ\_HOME project directory first, or are you trying to run the bldit\_cctm.csh script from the CMAQ\_REPO directory?

Before you run the bldit\_cctm.csh script, edit the following line to specify your local directory

```auto
 set CMAQ_HOME = /home/username/path

```

Thanks, Liz

---

<div class="post-metadata">

**Author:** ![Yusufalizade](https://avatars.discourse-cdn.com/v4/letter/y/4491bb/32.png) [@Yusufalizade](https://forum.cmascenter.org/u/Yusufalizade)\
**Post date:** [August 17, 2023, 10:01am UTC](https://forum.cmascenter.org/t/cmaq-5-4-project-bld-error/3732/4 "2023-08-17T10:01:21Z")

</div>

Please use the following commands,

cp bldit\_cctm.csh bldit\_cctm.csh.old

vi bldit\_cctm.csh

Then search and find shaID and change the following lines accordingly,

set shaID = fb7856ef5c #`git --git-dir=${CMAQ_REPO}/.git rev-parse --short=10 HEAD`  
#if ( $? != 0 ) then  
#set shaID = “not\_a\_repo”  
#endif

Best,  
Yusuf
