gcc 13 with netcdf 4.7.4 and hdf5 1.10.1 fails with ./configure failed for libcdi
Added by Rob Kudyba 4 months ago
I've attached the config.log is there something incompatible with the GCC or netcdf versions?
./configure --prefix=/path/to/cdo/2.4.2 --with-netcdf=/path/to/netcdf-c-4.7.4 --with-hdf5=/path/to/hdf5/1.10.1 checking for PTHREAD_PRIO_INHERIT... yes CC:gcc CFLAGS:-g -O2 -pthread LIBS:-lpthread -lm -luuid checking for fdb5 library... suppressed checking for szlib library... suppressed checking for netcdf.h... yes checking for library containing nc_open... no configure: error: Could not link to NetCDF library configure: error: ./configure failed for libcdi
configure:4763: gcc -V >&5 gcc: error: unrecognized command-line option '-V' gcc: fatal error: no input files compilation terminated. configure:4774: $? = 1 configure:4763: gcc -qversion >&5 gcc: error: unrecognized command-line option '-qversion'; did you mean '--version'? gcc: fatal error: no input files compilation terminated. configure:4774: $? = 1 configure:4763: gcc -version >&5 gcc: error: unrecognized command-line option '-version' gcc: fatal error: no input files configure:14807: g++ -V >&5 g++: error: unrecognized command-line option '-V' g++: fatal error: no input files compilation terminated. configure:14818: $? = 1 configure:14807: g++ -qversion >&5 g++: error: unrecognized command-line option '-qversion'; did you mean '--version'? g++: fatal error: no input files conftest.cpp:823:2: error: #error "This is not a C++20 compiler" 823 | #error "This is not a C++20 compiler" | ^~~~~
config.log (87.6 KB) config.log | config.log |
Replies (3)
RE: gcc 13 with netcdf 4.7.4 and hdf5 1.10.1 fails with ./configure failed for libcdi - Added by Rob Kudyba 4 months ago
Apologies this should be in support but I can't edit the category, mods feel free to move it.
Also pardon the obfuscation of the paths in the log file.
RE: gcc 13 with netcdf 4.7.4 and hdf5 1.10.1 fails with ./configure failed for libcdi - Added by Ralf Mueller 4 months ago
hi Rob!
looks like u seriously installed netcdf into /path/to/netcdf-c-4.7.4
;-)
the uploaded config.log from CDO looks fine. the error seems to ocurr with libcdi. please upload the config.log file from the libcdi subdir for further investication
cheers
ralf
RE: gcc 13 with netcdf 4.7.4 and hdf5 1.10.1 fails with ./configure failed for libcdi - Added by Rob Kudyba 4 months ago
looks like u seriously installed netcdf into /path/to/netcdf-c-4.7.4 ;-)
Well no, I changed the paths for some "security by obscurity".
I managed to figure it out. I used our NetCDF with C loadable module version 4.8.1:
./configure --prefix=/path/to/cdo/2.4.2 --with-netcdf=/path/to/netcdf-c-4.8.1 --with-hdf5=yes
I then installed the hdf5-devel package on all compute nodes to version 1.10.5-4.