# Megan3.2 build error MET2MGN

**URL:** <https://forum.cmascenter.org/t/megan3-2-build-error-met2mgn/5325>\
**Category:** MEGAN\
**Created:** [November 4, 2024, 3:04am UTC](https://forum.cmascenter.org/t/megan3-2-build-error-met2mgn/5325 "2024-11-04T03:04:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nenghan](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nenghan](https://forum.cmascenter.org/u/nenghan)\
**Post date:** [November 4, 2024, 3:04am UTC](https://forum.cmascenter.org/t/megan3-2-build-error-met2mgn/5325/1 "2024-11-04T03:04:34Z")

</div>

Hello,

I’m trying to build MEGAN3.2, using the command:  
./make\_all\_programs.scr 32bit

but has an error ‘NVFORTRAN-S-0023-Syntax error - unbalanced parentheses (readwrfcamx.f: 104)’, as the figure shows, I use pgfortan, Thank you for your help in advance.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/c/c2a2bd1d75afe6e3812f107a3909fdca05ae3734.png)

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 4, 2024, 1:13pm UTC](https://forum.cmascenter.org/t/megan3-2-build-error-met2mgn/5325/2 "2024-11-04T13:13:19Z")

</div>

The suspicion is that this is non-Standard “fixed 132” Fortran source.

The compile-flag for this varies from compiler to compiler; I think it is `-Mextend` for PGI Fortran, unless nVidia have changed it.

---

<div class="post-metadata">

**Author:** ![nenghan](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nenghan](https://forum.cmascenter.org/u/nenghan)\
**Post date:** [November 4, 2024, 4:14pm UTC](https://forum.cmascenter.org/t/megan3-2-build-error-met2mgn/5325/3 "2024-11-04T16:14:41Z")

</div>

Thank you for repley, I editd the Makefile as  
“PGF90 = pgf90  
FCFLGS = -O -Mextend -Mlfs -Msecond\_underscore  
FCFLGS2 = -O -Mbyteswapio -Mextend -Mlfs -Msecond\_underscore  
FCFLGS3 = -O2 -Mnoframe -Mextend -Bstatic\_pgi  
LNKFLGS = -Bstatic\_pgi”

then, it works
