Skip to content

[regressions in 3.23.0] Incompatible initialization between a derived type entity and an entity with 'REAL(4)' type at (1)

I am building it using gfortran from gcc-13 and clang-19.

Errors:

   39 |   DMGeneratorFunctionList, pointer :: PETSC_NULL_DMGENERATORFUNCTIONLIST_POINTER(:) => PETSC_NULL_DMGENERATORFUNCTIONLIST_ARRAY
      |                                                                                                                                    1
Error: Incompatible initialization between a derived type entity and an entity with 'REAL(4)' type at (1)
/usr/ports/science/PETSc/work/petsc-3.23.0/arch-freebsd14-c-debug/include/../ftn/dm/petscdt.h:16:132:
   16 |   PetscGaussLobattoLegendreCreateType, parameter :: PETSC_NULL_GAUSSLOBATTOLEGENDRECREATETYPE = ePetscGaussLobattoLegendreCreateType(-50)
      |                                                                                                      1                             
Error: Parameter 'epetscgausslobattolegendrecre' at (1) has not been declared or is a variable, which does not reduce to a constant expression
/usr/ports/science/PETSc/work/petsc-3.23.0/arch-freebsd14-c-debug/include/../ftn/dm/petscdt.h:20:132:

There are also a lot of warnings like:

   39 |   DMGeneratorFunctionList, pointer :: PETSC_NULL_DMGENERATORFUNCTIONLIST_POINTER(:) => PETSC_NULL_DMGENERATORFUNCTIONLIST_ARRAY
      |                                                                                                                                    1
Warning: Line truncated at (1) [-Wline-truncation]

I am building the FreeBSD port. 3.22.4 was building without problems, but 3.23.0 now has these problems.