Hi,
I am trying to compile WPS v3.9 after successfully building WRFv3.9.1.1. geogrid.exe and metgrid.exe were generated but NOT ungrib.exe. I was using Intel compiler (serial) to do the compiling, and am sure the jasper library is ready for the platform I am working on.
The ungrib.exe failed to generate due to "dec_png.c.text+0xca): undefined reference to `png_set_longjmp_fn'". More detailed information regarding this error is illustrated below. Searching online I found somebody suggested "edit configure.wps by adding -qopenmp at the end of the lines that set WRF_LIB (after -lnetcdff -lnetcdf)", which is not working for my case.
Could you have any suggestions that I can test to fix this issue? Thank you.
FYI, I also attached the entire compile log file here:
View attachment compile2_wps.log
############# Error message start:
make[1]: Entering directory `/u/home/y/ylin/tests/test/WPS/ungrib/src'
Makefile:90: warning: overriding commands for target `.F.o'
../../configure.wps:105: warning: ignoring old commands for target `.F.o'
Makefile:95: warning: overriding commands for target `.c.o'
../../configure.wps:97: warning: ignoring old commands for target `.c.o'
/bin/rm -f ungrib.exe
if [ -z ] ; then \
ifort -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o \
-L./ngl -lw3 -lg2_4 \
-L/u/local/apps/jasper/1.900.29/intel-18.0.3_gcc-4.9.3/lib -ljasper -lpng -lz \
-L. -lpgu ; \
else \
ifort -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o \
./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
-L/u/local/apps/jasper/1.900.29/intel-18.0.3_gcc-4.9.3/lib -ljasper -lpng -lz \
libpgu.a ; \
fi
ld: ./ngl/libg2_4.a(dec_png.o): in function `dec_png_':
dec_png.c.text+0xca): undefined reference to `png_set_longjmp_fn'
make[1]: [ungrib.exe] Error 1 (ignored)
############# Error message end.
Best,
Sam
I am trying to compile WPS v3.9 after successfully building WRFv3.9.1.1. geogrid.exe and metgrid.exe were generated but NOT ungrib.exe. I was using Intel compiler (serial) to do the compiling, and am sure the jasper library is ready for the platform I am working on.
The ungrib.exe failed to generate due to "dec_png.c.text+0xca): undefined reference to `png_set_longjmp_fn'". More detailed information regarding this error is illustrated below. Searching online I found somebody suggested "edit configure.wps by adding -qopenmp at the end of the lines that set WRF_LIB (after -lnetcdff -lnetcdf)", which is not working for my case.
Could you have any suggestions that I can test to fix this issue? Thank you.
FYI, I also attached the entire compile log file here:
View attachment compile2_wps.log
############# Error message start:
make[1]: Entering directory `/u/home/y/ylin/tests/test/WPS/ungrib/src'
Makefile:90: warning: overriding commands for target `.F.o'
../../configure.wps:105: warning: ignoring old commands for target `.F.o'
Makefile:95: warning: overriding commands for target `.c.o'
../../configure.wps:97: warning: ignoring old commands for target `.c.o'
/bin/rm -f ungrib.exe
if [ -z ] ; then \
ifort -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o \
-L./ngl -lw3 -lg2_4 \
-L/u/local/apps/jasper/1.900.29/intel-18.0.3_gcc-4.9.3/lib -ljasper -lpng -lz \
-L. -lpgu ; \
else \
ifort -o ungrib.exe misc_definitions_module.o debug_cio.o module_debug.o module_stringutil.o table.o module_datarray.o gridinfo.o new_storage.o filelist.o ungrib.o output.o rrpr.o rd_grib1.o file_delete.o datint.o rd_grib2.o \
./ngl/w3/libw3.a ./ngl/g2/libg2_4.a \
-L/u/local/apps/jasper/1.900.29/intel-18.0.3_gcc-4.9.3/lib -ljasper -lpng -lz \
libpgu.a ; \
fi
ld: ./ngl/libg2_4.a(dec_png.o): in function `dec_png_':
dec_png.c.text+0xca): undefined reference to `png_set_longjmp_fn'
make[1]: [ungrib.exe] Error 1 (ignored)
############# Error message end.
Best,
Sam