# Error compiling MCIP

**URL:** <https://forum.cmascenter.org/t/error-compiling-mcip/1188>\
**Category:** MCIP\
**Created:** [December 16, 2019, 6:03pm UTC](https://forum.cmascenter.org/t/error-compiling-mcip/1188 "2019-12-16T18:03:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lawless](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@lawless](https://forum.cmascenter.org/u/lawless)\
**Post date:** [December 16, 2019, 6:03pm UTC](https://forum.cmascenter.org/t/error-compiling-mcip/1188/1 "2019-12-16T18:03:18Z")

</div>

Hello,

I went to recompile MCIP and now I keep running into this problem and I am at a complete loss of what to do.

make[1]: Entering directory ‘/home/colethatcher/53\_CMAQ/PREP/mcip/src’  
/home/linuxbrew/.linuxbrew/bin/gfortran -m64 -O3-I/home/colethatcher/netcdf-fortran-4.5.2-gcc/include -I/home/colethatcher/ioapi-3.2/Linux2\_x86\_64gfort\_openmpi\_4.0.1\_gcc\_9.1.0 -c const\_mod.f90  
f951: Error: argument to ‘-O’ should be a non-negative integer, ‘g’, ‘s’ or ‘fast’  
Makefile:163: recipe for target ‘const\_mod.o’ failed  
make[1]: \*\*\* [const\_mod.o] Error 1  
make[1]: Leaving directory ‘/home/colethatcher/53\_CMAQ/PREP/mcip/src’  
Makefile:154: recipe for target ‘all’ failed  
make: \*\*\* [all] Error

Any advice would be great

---

<div class="post-metadata">

**Author:** ![lawless](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@lawless](https://forum.cmascenter.org/u/lawless)\
**Post date:** [December 16, 2019, 6:38pm UTC](https://forum.cmascenter.org/t/error-compiling-mcip/1188/2 "2019-12-16T18:38:26Z")

</div>

NVM just fixed it. NETCDFF libs were not added although I was weirdly able to compile it before.

---

<div class="post-metadata">

**Author:** ![tlspero](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@tlspero](https://forum.cmascenter.org/u/tlspero)\
**Post date:** [December 20, 2019, 5:59pm UTC](https://forum.cmascenter.org/t/error-compiling-mcip/1188/3 "2019-12-20T17:59:50Z")

</div>


