Error building PIO

During the PIO build (after updating dependencies and when running the pio/Makefile) I encounter the error below. gmake[1]: *** No rule to make target `pnetcdf.o', needed by `/home/ec2-user/AWS-CESM/cesm1_2_1/models/utils/pio/pio_types.o'.  Stop.
gmake[1]: Leaving directory `/home/ec2-user/AWS-CESM/cesm1_2_1/test1/pio'
gmake: *** [all] Error 2My pio/pio_types.d file does indeed reference pnetcdf.o:$ cat pio_types.d
/home/ec2-user/AWS-CESM/cesm1_2_1/models/utils/pio/pio_types.o: pio_kinds.o
/home/ec2-user/AWS-CESM/cesm1_2_1/models/utils/pio/pio_types.o: pnetcdf.o

But since I am not using pnetcdf (PNETCDF_PATH not defined in my Macros file), why would it try to look for it? Thank you,George[complete message:]Done updating dependencies
gmake[1]: Entering directory `/home/ec2-user/AWS-CESM/cesm1_2_1/test1/pio'
mpif90 -c -DLINUX -DMCT_INTERFACE -DHAVE_MPI -DFORTRANUNDERSCORE -DNO_R16 -DLINUX -DCPRINTEL -DHAVE_SLASHPROC -DSPMD -DHAVE_MPI -DUSEMPIIO -DSYSLINUX -D_NETCDF -I/data/RESOURCES/Intel/netcdf4.4/include -D_NOPNETCDF -DTIMING  -O2 -fp-model source -convert big_endian -assume byterecl -ftz -traceback  -free  -I.  -I/home/ec2-user/AWS-CESM/cesm1_2_1/test1/pio -I/data/RESOURCES/Intel/netcdf4.4/include -I/data/RESOURCES/Intel/include -I/home/ec2-user/AWS-CESM/cesm1_2_1/test1/mct/mct -I/home/ec2-user/AWS-CESM/cesm1_2_1/test1/mct/mpeu -I/home/ec2-user/AWS-CESM/cesm1_2_1/test1/pio -I/home/ec2-user/AWS-CESM/cesm1_2_1/test1/gptl -I/home/ec2-user/AWS-CESM/cesm1_2_1/models/utils/pio -I/home/ec2-user/AWS-CESM/cesm1_2_1/test1/lib/include -I/data/RESOURCES/Intel/netcdf4.4/include   -I../timing  /home/ec2-user/AWS-CESM/cesm1_2_1/models/utils/pio/pio_kinds.F90
gmake[1]: *** No rule to make target `pnetcdf.o', needed by `/home/ec2-user/AWS-CESM/cesm1_2_1/models/utils/pio/pio_types.o'.  Stop.
gmake[1]: Leaving directory `/home/ec2-user/AWS-CESM/cesm1_2_1/test1/pio'
gmake: *** [all] Error 2

 
Greetings,I found that the PIO distribution at https://github.com/NCAR/ParallelIO.git/tags/pio1_8_12/pio would build only if several instances of "use (p)netcdf" were removed. See attached for output from 'svn diff'. Note that one doesn't physically remove the statements; rather, add a !_EXTERNAL string to the offending line so that fdepends.awk will know to remove it. While this enabled my pio lib to build, I am still not 100% certain this was the correct solution since my code is seg faulting and I am suspicious it has something to do with my pio build. Unfortunately, no one has responded to my requests for help! Regards,George
 
Back
Top