Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure issue of netcdf-fortran with intel compiler in Ubunutu 22.04 . #436

Open
Nagasapa opened this issue Mar 27, 2024 · 5 comments
Open

Comments

@Nagasapa
Copy link

I am trying to compile netcdf-fortran-4.6.1 with intel-compilers(2024) in ubuntu-22.04 the following commands i have used in the build directory- "../configure --prefix=/opt/netcdf-ifx/4.6.0 CPPFLAGS="-DNDEBUG -DpgiFortran -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/zlib/include -I/home/nagarjuna/Desktop/HDF5_Intel/myhdfstuff/build/HDF_Group/HDF5/1.14.3/include -I/opt/netcdf_c1/include" LDFLAGS="-L/opt/zlib/lib -Wl,-rpath=/opt/zlib/lib -L/home/nagarjuna/Desktop/HDF5_Intel/myhdfstuff/build/HDF_Group/HDF5/1.14.3/lib -Wl,-rpath=/home/nagarjuna/Desktop/HDF5_Intel/myhdfstuff/build/HDF_Group/HDF5/1.14.3/lib -L/opt/netcdf_c1/lib -Wl,-rpath=/opt/netcdf_c1/lib " --enable-large-file-tests --with-pic --enable-static --enable-shared " and used these compilers export CC=icx
export FC=mpiifx
export F90=mpiifx
export F77=mpiifx
export CXX=icpx
export MKL_TARGET_ARCH=intel64..Got error like this - "configure: error: cannot compute sizeof (off_t)
See `config.log' for more details
". How this issue can be resolved?

Cheers !!

@jshn9515
Copy link

jshn9515 commented Mar 28, 2024

This problem could occur if you used different compilers between other dependencies and NetCDF-Fortran. Did you use the same compiler for all the libs?

@Nagasapa
Copy link
Author

yes i have built zlib ,hdf5, netcdf-c with intel compilers(2024).

@HathewayWill
Copy link

@Nagasapa @jshn9515

Do you have cflags exported with -lgfortran?

@WardF
Copy link
Member

WardF commented May 13, 2024

Can you provide the config.log? This sometimes occurs when there is a problem linking the test program autotools uses to determine sizeof various variable types.

@HathewayWill
Copy link

@WardF

#439

There's mine with a sucessful run and a failed run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants