Pario build error. please help!

BLD
set flist = ( pinterpb_mod.f piomaps_mod.f alloc_data_mod.f boundary.f get_write_map.f growbuf.f gtndxhdv.f interpol.f pinterpb.f pio_init.f pio_re_init.f pm3err.f pm3exit.f pm3warn.f pshut3.f pwrite3.f ptrwrite3.f pwrgrdd.f readbndy.f subdmap.f wrsubmap.f parutilio.f )
foreach file ( pinterpb_mod.f piomaps_mod.f alloc_data_mod.f boundary.f get_write_map.f growbuf.f gtndxhdv.f interpol.f pinterpb.f pio_init.f pio_re_init.f pm3err.f pm3exit.f pm3warn.f pshut3.f pwrite3.f ptrwrite3.f pwrgrdd.f readbndy.f subdmap.f wrsubmap.f parutilio.f )
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pinterpb_mod.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include piomaps_mod.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include alloc_data_mod.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include boundary.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include get_write_map.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include growbuf.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
growbuf.f:47.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include gtndxhdv.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
gtndxhdv.f:63.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include interpol.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
interpol.f:53.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pinterpb.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pinterpb.f:103.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pio_init.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pio_init.f:121.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pio_re_init.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pio_re_init.f:124.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pm3err.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pm3err.f:45.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pm3exit.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pm3exit.f:45.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pm3warn.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pm3warn.f:38.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pshut3.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pshut3.f:32: Error: Can’t open included file ‘STATE3.EXT’
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pwrite3.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pwrite3.f:46: Error: Can’t open included file ‘STATE3.EXT’
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include ptrwrite3.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
ptrwrite3.f:45: Error: Can’t open included file ‘STATE3.EXT’
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include pwrgrdd.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
pwrgrdd.f:94.9:

  USE M3UTILIO, ONLY : WRITE3              ! i/o api                       
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include readbndy.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
readbndy.f:83.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include subdmap.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
subdmap.f:53.9:

  USE M3UTILIO              ! i/o api                                      
     1

Fatal Error: Can’t open module file ‘m3utilio.mod’ for reading at (1): No such file or directory
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include wrsubmap.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
mpif90 -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32 -c -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src -I /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/mpich/include parutilio.f
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort”
Warning: Nonexistent include directory “/home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src”
end
ar rv libpario.a alloc_data_mod.o boundary.o get_write_map.o parutilio.o pinterpb_mod.o piomaps_mod.o wrsubmap.o
ar: creating libpario.a
a - alloc_data_mod.o
a - boundary.o
a - get_write_map.o
a - parutilio.o
a - pinterpb_mod.o
a - piomaps_mod.o
a - wrsubmap.o
chmod 444 libpario.a
if ( -e /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario/libpario.a ) /bin/mv -f /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario/libpario.a /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario/libpario.a.old
/bin/mv -f libpario.a /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario
/bin/mv -f alloc_data_module.mod parutilio.mod pinterpb_module.mod piomaps_module.mod /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario
if ( 0 ) then
/bin/rm -f alloc_data_mod.o boundary.o get_write_map.o parutilio.o pinterpb_mod.o piomaps_mod.o wrsubmap.o
endif
echo

echo Finish building /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario/libpario.a
Finish building /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/pario/libpario.a
exit ( )

It looks like libpario.a was built successfully. The ERRORS you were seeing were related to the makefile not finding the ioapi directories that it was looking for.

ls -lrt /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/Linux2_x86_64gfort
Is the IO API library in that location?
ls -lrt /home/sahir/WRF_CMAQ/CMAQv5.0.2/lib/x86_64/gcc/ioapi_3.1/ioapi/fixed_src
Are the I/O API include files located in the above directory?

This is my IOAPI file setup what you are asking for.
It seems to me that the files are in there, ioapi/fixedsrc and Linux_x…! Then why this error?
Please check my uploaded screenshot

This shows the directories, but not the full path to those directories.

So, this is now alongwith the path of these directories.

The directory shown in your screenshot is /home/sahir/WRF371/Build_WRF/LIBRARIES…

Hi Sahir,

 If I remember correctly, CMAQ 5+ version, you don't need to build PARIO as a separate stand alone library. All the PARIO files are part of the CMAQ repo (package). Same thing is true for  STENEX.

Cheers,
David

Hi,
I have a problem to build PARIO in CMAQv4.7.1. I built STENEX just fine but PARIO complains about some undefined references and eventually cannot produce libpario.a file.
I used ioapi3.2_large and openmpi2.1.2 libraries using intel compiler (mpif90). Is there any point I am missing?
P.S.: I know CMAQv5.3 doesn’t require these two libraries explicitly but I have to use the older version of CMAQ.

Thanks in advance,
Behrooz


/opt/apps/openmpi/2.1.2_parallel_studio-2017.1/bin/mpif90 -extend-source 132 -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive -O2 -I/Users/roozitalab/Adjoint/cmaq_adj/lib/x86_64/intel/ioapi/include_files -I/Users/roozitalab/Adjoint/cmaq_adj/lib/x86_64/intel/mpi/include pinterpb_mod.f
/opt/apps/parallel_studio/2017.1/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/for_main.o: In function main': for_main.c:(.text+0x2a): undefined reference to MAIN__’
end
/opt/apps/openmpi/2.1.2_parallel_studio-2017.1/bin/mpif90 -extend-source 132 -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive -O2 -I/Users/roozitalab/Adjoint/cmaq_adj/lib/x86_64/intel/ioapi/include_files -I/Users/roozitalab/Adjoint/cmaq_adj/lib/x86_64/intel/mpi/include piomaps_mod.f
/opt/apps/parallel_studio/2017.1/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/for_main.o: In function main': for_main.c:(.text+0x2a): undefined reference to MAIN__’
end
/opt/apps/openmpi/2.1.2_parallel_studio-2017.1/bin/mpif90 -extend-source 132 -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive -O2 -I/Users/roozitalab/Adjoint/cmaq_adj/lib/x86_64/intel/ioapi/include_files -I/Users/roozitalab/Adjoint/cmaq_adj/lib/x86_64/intel/mpi/include alloc_data_mod.f
/opt/apps/parallel_studio/2017.1/compilers_and_libraries_2017.1.132/linux/compiler/lib/intel64_lin/for_main.o: In function main': for_main.c:(.text+0x2a): undefined reference to MAIN__’
end
… and a lot more

Your compile-flags need an additional -c – for example:
/opt/apps/openmpi/2.1.2_parallel_studio-2017.1/bin/mpif90 -c -extend-source 132 -O3 -fno-alias
instead of
/opt/apps/openmpi/2.1.2_parallel_studio-2017.1/bin/mpif90 -extend-source 132 -O3 -fno-alias

Thank you very much! It solved the problem.