PDI Fails to build on Fedora 35
[ 12%] Building CXX object CMakeFiles/pdi_decl_netcdf_plugin.dir/decl_netcdf.cxx.o
/usr/bin/g++ -D-DH5_USE_110_API -DFMT_LOCALE -DFMT_SHARED -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_SHARED_LIB -Dpdi_decl_netcdf_plugin_EXPORTS -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -DNDEBUG -fPIC -fvisibility=hidden -std=gnu++14 -MD -MT CMakeFiles/pdi_decl_netcdf_plugin.dir/decl_netcdf.cxx.o -MF CMakeFiles/pdi_decl_netcdf_plugin.dir/decl_netcdf.cxx.o.d -o CMakeFiles/pdi_decl_netcdf_plugin.dir/decl_netcdf.cxx.o -c /tmp/BUILD/pdi-master/plugins/decl_netcdf/decl_netcdf.cxx
<command-line>: error: macro names must be identifiers
Likely a FindHDF5.cmake
issue that adds -D-DH5_USE_110_API
to the command-line (see the double -D
).
More info at https://github.com/pdidev/pkgs/runs/4151361201?check_suite_focus=true
Edited by Julien Bigot