CMAKE/ADIOS2 error when linking fortran

Hello all,

I’m linking a fortran function to my code. However, I get an ADIOS2 error during the compilation.

Here is the error:

...
-- ... hdf5_hl-static
-- ... hdf5_hl-shared
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find ADIOS2: missing: Fortran (found
  /usr/local/lib/cmake/adios2/adios2-config.cmake (found suitable version
  "2.9.2", minimum required is "2.8.1"))
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:243 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:579 (_FPHSA_HANDLE_FAILURE_CONFIG_MODE)
  /usr/local/lib/cmake/adios2/adios2-config-common.cmake:194 (find_package_handle_standard_args)
  /usr/local/lib/cmake/adios2/adios2-config.cmake:29 (include)
  /usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /usr/local/dolfinx-real/lib/cmake/dolfinx/DOLFINXConfig.cmake:103 (find_dependency)
  CMakeLists.txt:27 (find_package)


-- Configuring incomplete, errors occurred!

is Fortran supported in the docker release?

Thanks,
A

It is turned off, see: dolfinx/docker/Dockerfile.test-env at main · FEniCS/dolfinx · GitHub

You would have to rebuild adios2 with the Fortran flag on and rebuild DOLFINx after that