In src/CMakeLists.txt you set the fortran-specific options generally but cc doesn't understand them:
if (WANNIER90_MPIH AND CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
target_compile_options(Wannier90_lib PRIVATE -fallow-argument-mismatch)
target_compile_options(Wannier90_exe PRIVATE -fallow-argument-mismatch)
endif ()
/usr/ports/science/wannier90/work/wannier90-4.0.1/src/comms.F90:1376:22:
1376 | call mpi_scatterv(rootglobalarray, counts, displs, MPI_DOUBLE_COMPLEX, array, localcount, &
| 1
......
1468 | call mpi_scatterv(rootglobalarray, counts, displs, MPI_INTEGER, array, localcount, &
| 2
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/INTEGER(4)).
/usr/ports/science/wannier90/work/wannier90-4.0.1/src/comms.F90:1376:75:
1376 | call mpi_scatterv(rootglobalarray, counts, displs, MPI_DOUBLE_COMPLEX, array, localcount, &
| 1
......
1468 | call mpi_scatterv(rootglobalarray, counts, displs, MPI_INTEGER, array, localcount, &
| 2
Warning: Type mismatch between actual argument at (1) and actual argument at (2) (COMPLEX(8)/INTEGER(4)).
This means that these options are set for the C code and not for the Fortran code.
In src/CMakeLists.txt you set the fortran-specific options generally but cc doesn't understand them:
Fortran errors follow:
This means that these options are set for the C code and not for the Fortran code.
clang-21
FreeBSD 15.1