Issue 123214
Summary [flang] The Fortran test cases for hdf5-1.10.6 cannot be built with Flang
Labels flang
Assignees
Reporter pawosm-arm
    Although the hdf5 library can be built and installed when tests are explicitly disabled (with `--disable-tests` passed to the `configure` script), this is not an optimal situation.

I'm configuring hdf5-1.10.6 as such:

```
$ CC=mpicc CXX=mpic++ FC=mpifort F77=mpifort F90=mpifort ./configure --enable-shared --enable-static --enable-parallel --disable-cxx --enable-fortran --enable-hl --prefix=/some/prefix
$ sed -i -e 's#wl=""#wl="-Wl,"#g' libtool
$ sed -i -e 's#pic_flag=""#pic_flag=" -fPIC -DPIC"#g' libtool
```
(the `sed` lines are here to make it able to build shared libs, it's a known flang issue)

Unfortunately, this will fail when building Fortran tests as such:

```
mpifort  -I. -I../../../fortran/test -I../../src -I../../fortran/src -I../../fortran/src -I../../fortran/src  -c -o tH5T.o ../../../fortran/test/tH5T.F90

error: Semantic errors in ../../../fortran/test/tH5T.F90
./../../../fortran/test/tH5T.F90:283:6: error: No specific subroutine of generic 'h5dwrite_f' matches the actual arguments
       CALL h5dwrite_f(dset_id, dt4_id, real_member, data_dims, error, xfer_prp = plist_id)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
./../../../fortran/test/tH5T.F90:541:6: error: No specific subroutine of generic 'h5dread_f' matches the actual arguments
       CALL h5dread_f(dset_id, dt4_id, real_member_out, data_dims, error)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
./../../../fortran/test/tH5T.F90:544:9: error: Cannot use intrinsic function 'verify' as a subroutine
          CALL VERIFY("h5dread_f:Wrong double precision data is read back", real_member_out(i), real_member(i), total_error)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
./../../../fortran/test/tH5T.F90:544:9: error: No specific subroutine of generic 'verify' matches the actual arguments
          CALL VERIFY("h5dread_f:Wrong double precision data is read back", real_member_out(i), real_member(i), total_error)
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to