[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #HGO-285844]: fortran library fails to compile with "cannot compute sizeof (off_t)"



From the following, it appears that the error is related to the linker not 
being able to find libnetcdf.so.19 at runtime.  This can be controlled by 
setting the `LD_LIBRARY_PATH` environmental variable to the location of 
`libnetcdf.so.19`.  From the information proviced, I believe this is likely 
`/work2/noaa/co2/sbasu/packages/netcdf-c/4.9.2/lib`, but you may need to 
double-check that the library file in-fact exists in this location.

I hope this helps, have a good day,

-Ward



```
configure:25102: result: 0
configure:25114: checking size of off_t
configure:25120: icx -o conftest -O3 -g -fPIC -fp-model strict -xHost 
-diag-disable=10441 -I/work2/noaa/co2/sbasu/packages/hdf5/1.14.3/include 
-I/apps/spack-managed/gcc-11.3.1/libszip-2.1.1-di6izgbfiujuzzqwgc7eybtuvsmcgnpj/include
 -I/work2/noaa/co2/sbasu/packages/netcdf-c/4.9.2/include 
-L/work2/noaa/co2/sbasu/packages/hdf5/1.14.3/lib 
-L/apps/spack-managed/gcc-11.3.1/libszip-2.1.1-di6izgbfiujuzzqwgc7eybtuvsmcgnpj/lib
 -L/work2/noaa/co2/sbasu/packages/netcdf-c/4.9.2/lib conftest.c -lnetcdf -lm  
>&5
configure:25120: $? = 0
configure:25120: ./conftest
./conftest: error while loading shared libraries: libnetcdf.so.19: cannot open 
shared object file: No such file or directory
configure:25120: $? = 127
configure: program exited with status 127
configure: failed program was:
```



> Hardware:
> Description of problem: I have successfully compiled the netcdf C library. 
> However, the fortran library fails with "cannot compute sizeof (off_t)". I 
> have seen this reported on the internet, but no solution has been proposed so 
> far. I am explicitly specifying the locations of HDF5 and netcdf-c headers 
> and libraries to the configure line.
> 
> 


Ticket Details
===================
Ticket ID: HGO-285844
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with NSF Unidata User Support are recorded in the 
Unidata inquiry tracking system and then made publicly available through the 
web.  If you do not want to have your interactions made available in this way, 
you must let us know in each email you send to us.