NOAA-EMC / hpc-stack

Create a software stack for HPC's
GNU Lesser General Public License v2.1
29 stars 35 forks source link

degrib is not compiling with hpc-stack g2c and png #512

Closed AliS-Noaa closed 1 year ago

AliS-Noaa commented 1 year ago

Describe the bug To compile degrib2 for NWPS on HERA, I used g2c, png. I can not build the degrib2.

To Reproduce cd /scratch2/NCEPDEV/marine/alisalimi/NWPS/nwps-dev/nwps/sorc/degrib-2.15.cd

./build.sh degrib-2.15 | tee -a ${srcDir}/degrib-2.15.cd/degrib_build.log

Expected behavior /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/intel-18.0.5.274/png/1.6.35/lib64/libpng.a(pngrutil.c.o): In function png_handle_iCCP': pngrutil.c:(.text+0xf46): undefined reference toinflateValidate' /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/intel-18.0.5.274/png/1.6.35/lib64/libpng.a(pngrutil.c.o): In function png_decompress_chunk': pngrutil.c:(.text+0x3699): undefined reference toinflateValidate' /scratch2/NCEPDEV/nwprod/hpc-stack/libs/hpc-stack/intel-18.0.5.274/png/1.6.35/lib64/libpng.a(pngrutil.c.o): In function png_read_start_row': pngrutil.c:(.text+0x69ca): undefined reference toinflateValidate' make: *** [degrib] Error 1 ERROR: build of degrib-2.15.cd FAILED!

System: HERA

Additional context Currently Loaded Modules: 1) hpc/1.1.0 3) hpc-intel/18.0.5.274 5) hpc-impi/2018.0.4 7) jasper/2.0.25 9) bacio/2.4.1 11) w3nco/2.4.1 2) intel/18.0.5.274 4) impi/2018.0.4 6) g2c/1.6.2 8) png/1.6.35 10) g2/3.4.1

AliS-Noaa commented 1 year ago

The zlib should be declare and png is depends on zlib. I declared the zlib and it is fixed now