ESMG / pyroms

Python tools for the Regional Ocean Modeling System (ROMS)
Other
138 stars 88 forks source link

Issue 23 #24

Closed hadfieldnz closed 4 years ago

hadfieldnz commented 4 years ago

Please hold off on processing this pull request. I have mis-stated the situation regarding lpsolve55. I will check my facts on Monday and come up with a revised pull request and/or a comment on the Issue 23 thread.

kshedstrom commented 4 years ago

I'm having trouble getting scrip to compile:

./pyscrip.f90:1191:20:

       grid2_count = zero
                    1
Warning: Possible change of value in conversion from REAL(8) to INTEGER(4) at (1) [-Wconversion]
/import/usrlocal/pkg/compiler/GCCcore/5.4.0/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpaofn18k4/tmp/tmpaofn18k4/src.linux-x86_64-3.7/scripmodule.o /tmp/tmpaofn18k4/tmp/tmpaofn18k4/src.linux-x86_64-3.7/fortranobject.o /tmp/tmpaofn18k4/pyscrip.o kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o -L. -L/usr/local/pkg/data/netCDF/4.4.1.1-foss-2016b/lib64 -L/usr/local/pkg/compiler/GCCcore/5.4.0/lib64/../lib64 -L/usr/local/pkg/compiler/GCCcore/5.4.0/lib64/../lib64 -lnetcdf -lnetcdff -ljpeg -lmfhdf -ldf -lhdf5 -lhdf5_fortran -lhdf5_hl -lhdf5hl_fortran -lgfortran -o ./scrip.cpython-37m-x86_64-linux-gnu.so
/usr/local/pkg/tools/binutils/2.26-GCCcore-5.4.0/bin/ld.gold: error: cannot find -lmfhdf
/usr/local/pkg/tools/binutils/2.26-GCCcore-5.4.0/bin/ld.gold: error: cannot find -ldf
collect2: error: ld returned 1 exit status
error: Command "/import/usrlocal/pkg/compiler/GCCcore/5.4.0/bin/gfortran -Wall -g -Wall -g -shared /tmp/tmpaofn18k4/tmp/tmpaofn18k4/src.linux-x86_64-3.7/scripmodule.o /tmp/tmpaofn18k4/tmp/tmpaofn18k4/src.linux-x86_64-3.7/fortranobject.o /tmp/tmpaofn18k4/pyscrip.o kinds_mod.o constants.o iounits.o netcdf.o grids.o remap_vars.o remap_distwgt.o remap_conserv.o remap_bilinear.o remap_bicubic.o remap_read.o remap.o timers.o remap_write.o -L. -L/usr/local/pkg/data/netCDF/4.4.1.1-foss-2016b/lib64 -L/usr/local/pkg/compiler/GCCcore/5.4.0/lib64/../lib64 -L/usr/local/pkg/compiler/GCCcore/5.4.0/lib64/../lib64 -lnetcdf -lnetcdff -ljpeg -lmfhdf -ldf -lhdf5 -lhdf5_fortran -lhdf5_hl -lhdf5hl_fortran -lgfortran -o ./scrip.cpython-37m-x86_64-linux-gnu.so" failed with exit status 1

Oh, wait, it's picking up the non-conda netcdf. I did a module unload and all is well.

hadfieldnz commented 4 years ago

It took me ages to build up the list of libraries (-lnetcdf etc)!