Error with hdf5 building Paraview superbuild in MacOS Monterey with M1 chip

I built Paraview superbuild a couple of years ago in an old mac and now I tried to replicate the process in the new Mac with the M1 chip and I have an error with the library hdf5 after executing make in the terminal. I don’t know if the chip is the problem or is another thing.

Error:

...
[ 46%] Generating testfiles/h5diff_605.txt
[ 46%] Building C object src/CMakeFiles/hdf5-shared.dir/H5A.c.o
[ 46%] Generating testfiles/std/tvldtypes3.h5
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Adense.c:331:16: warning: initializing 'H5A_t *' (aka 'struct H5A_t *') with an expression of type 'const H5A_t *' (aka 'const struct H5A_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        H5A_t *old_attr = *user_attr;
               ^          ~~~~~~~~~~
[ 46%] Copying files needed by h5dump_xml tests
[ 46%] Generating testfiles/h5diff_606.txt
[ 46%] Generating testfiles/std/tvldtypes4.h5
[ 46%] Built target h5dump_xml_files
...
[ 46%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Abtree2.c.o
[ 46%] Generating testfiles/std/tvlenstr_array.h5
[ 46%] Generating testfiles/h5diff_608.txt
1 warning generated.
...
[ 46%] Generating testfiles/std/zerodim.h5
[ 46%] Generating testfiles/h5diff_612.txt
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Adense.c:331:16: warning: initializing 'H5A_t *' (aka 'struct H5A_t *') with an expression of type 'const H5A_t *' (aka 'const struct H5A_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        H5A_t *old_attr = *user_attr;
               ^          ~~~~~~~~~~
[ 46%] Generating testfiles/std/tall-6.exp
[ 46%] Building C object src/CMakeFiles/hdf5-static.dir/H5AC.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Aint.c:200:45: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    if(NULL == (attr->shared->dt = H5T_copy(type, H5T_COPY_ALL)))
                                            ^~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 46%] Generating testfiles/h5diff_613.txt
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Aint.c:638:71: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                        (dst_id = H5I_register(H5I_DATATYPE, H5T_copy(mem_type, H5T_COPY_ALL), FALSE)) < 0)
                                                                      ^~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Aint.c:738:62: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if((src_id = H5I_register(H5I_DATATYPE, H5T_copy(mem_type, H5T_COPY_ALL), FALSE)) < 0 ||
                                                             ^~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 46%] Building C object src/CMakeFiles/hdf5-static.dir/H5ACdbg.c.o
...
[ 46%] Generating testfiles/std/tstr2bin6.exp
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Aint.c:200:45: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    if(NULL == (attr->shared->dt = H5T_copy(type, H5T_COPY_ALL)))
                                            ^~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Aint.c:638:71: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                        (dst_id = H5I_register(H5I_DATATYPE, H5T_copy(mem_type, H5T_COPY_ALL), FALSE)) < 0)
                                                                      ^~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Aint.c:738:62: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if((src_id = H5I_register(H5I_DATATYPE, H5T_copy(mem_type, H5T_COPY_ALL), FALSE)) < 0 ||
                                                             ^~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
3 warnings generated.
[ 46%] Building C object src/CMakeFiles/hdf5-static.dir/H5Bdbg.c.o
[ 46%] Generating testfiles/h5diff_619.txt
[ 46%] Generating testfiles/std/twithddl.exp
...
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dchunk.c:5796:95: warning: passing 'const hsize_t *' (aka 'const unsigned long long *') to parameter of type 'hsize_t *' (aka 'unsigned long long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    if(H5D__chunk_file_alloc(udata->idx_info_dst, NULL, &udata_dst.chunk_block, &need_insert, udata_dst.common.scaled) < 0)
                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dpkg.h:650:59: note: passing argument to parameter 'scaled' here
    H5F_block_t *new_chunk, hbool_t *need_insert, hsize_t scaled[]);
                                                          ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dchunk.c:5933:39: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if(NULL == (dt_mem = H5T_copy(dt_src, H5T_COPY_TRANSIENT)))
                                      ^~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dchunk.c:5941:39: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if(NULL == (dt_dst = H5T_copy(dt_src, H5T_COPY_TRANSIENT)))
                                      ^~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 51%] Building C object src/CMakeFiles/hdf5-static.dir/H5Ddeprec.c.o
...
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dchunk.c:5796:95: warning: passing 'const hsize_t *' (aka 'const unsigned long long *') to parameter of type 'hsize_t *' (aka 'unsigned long long *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    if(H5D__chunk_file_alloc(udata->idx_info_dst, NULL, &udata_dst.chunk_block, &need_insert, udata_dst.common.scaled) < 0)
                                                                                              ^~~~~~~~~~~~~~~~~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dpkg.h:650:59: note: passing argument to parameter 'scaled' here
    H5F_block_t *new_chunk, hbool_t *need_insert, hsize_t scaled[]);
                                                          ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dchunk.c:5933:39: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if(NULL == (dt_mem = H5T_copy(dt_src, H5T_COPY_TRANSIENT)))
                                      ^~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dchunk.c:5941:39: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if(NULL == (dt_dst = H5T_copy(dt_src, H5T_COPY_TRANSIENT)))
                                      ^~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 51%] Generating testfiles/std/tcomp-4.ddl
...
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dfill.c:239:62: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if((src_id = H5I_register(H5I_DATATYPE, H5T_copy(fill_type, H5T_COPY_ALL), FALSE)) < 0)
                                                             ^~~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dfill.c:242:62: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if((dst_id = H5I_register(H5I_DATATYPE, H5T_copy(buf_type, H5T_COPY_ALL), FALSE)) < 0)
                                                             ^~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dfill.c:408:54: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if(NULL == (fb_info->mem_type = H5T_copy(dset_type, H5T_COPY_TRANSIENT)))
                                                     ^~~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dint.c:508:43: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if((dset->shared->type = H5T_copy(type, H5T_COPY_ALL)) == NULL)
                                          ^~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 52%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Defl.c.o
...
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dfill.c:239:62: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if((src_id = H5I_register(H5I_DATATYPE, H5T_copy(fill_type, H5T_COPY_ALL), FALSE)) < 0)
                                                             ^~~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dfill.c:242:62: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
            if((dst_id = H5I_register(H5I_DATATYPE, H5T_copy(buf_type, H5T_COPY_ALL), FALSE)) < 0)
                                                             ^~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dfill.c:408/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Dint.c:508:43: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
:54: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if((dset->shared->type = H5T_copy(type, H5T_COPY_ALL)) == NULL)
                                          ^~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);            if(NULL == (fb_info->mem_type = H5T_copy(dset_type, H5T_COPY_TRANSIENT)))

                              ^                                                     ^~~~~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here

H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 52%] Building C object src/CMakeFiles/hdf5-static.dir/H5Dlayout.c.o
[ 52%] Generating testfiles/std/texceedsubstart.ddl
3 warnings generated.
[ 52%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Dio.c.o
[ 52%] Generating testfiles/std/texceedsubcount.ddl
[ 52%] Building C object src/CMakeFiles/hdf5-static.dir/H5Dmpio.c.o
[ 52%] Generating testfiles/std/texceedsubstride.ddl
[ 52%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Dlayout.c.o
3 warnings generated.
1 warning generated.
[ 52%] Generating testfiles/std/texceedsubblock.ddl
...
[ 62%] Built target h5dump_std_files
[ 63%] Building C object src/CMakeFiles/hdf5-shared.dir/H5HFcache.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5Gtest.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5Gtraverse.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-shared.dir/H5HFdbg.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5HF.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5HFbtree2.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5HFcache.c:772:12: warning: assigning to 'H5F_t *' (aka 'struct H5F_t *') from 'const H5F_t *' (aka 'const struct H5F_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    hdr->f = f;
           ^ ~
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5HFcache.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5HFcache.c:1362:12: warning: assigning to 'H5F_t *' (aka 'struct H5F_t *') from 'const H5F_t *' (aka 'const struct H5F_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    hdr->f = f;
           ^ ~
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5HFdbg.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5HFcache.c:772:12: warning: assigning to 'H5F_t *' (aka 'struct H5F_t *') from 'const H5F_t *' (aka 'const struct H5F_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    hdr->f = f;
           ^ ~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5HFcache.c:1362:12: warning: assigning to 'H5F_t *' (aka 'struct H5F_t *') from 'const H5F_t *' (aka 'const struct H5F_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    hdr->f = f;
           ^ ~
[ 63%] Building C object src/CMakeFiles/hdf5-shared.dir/H5HFdblock.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-shared.dir/H5HFdtable.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-shared.dir/H5HFhdr.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-static.dir/H5HFdblock.c.o
[ 63%] Building C object src/CMakeFiles/hdf5-shared.dir/H5HFhuge.c.o
2 warnings generated.
...
[ 65%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Odtype.c.o
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Ocache_image.c.o
[ 65%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Oefl.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:141:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:195:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:322:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
3 errors generated.
make[5]: *** [src/CMakeFiles/hdf5-shared.dir/H5Odeprec.c.o] Error 1
make[5]: *** Waiting for unfinished jobs....
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Ochunk.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odtype.c:1190:32: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    if(NULL == (dst = H5T_copy(src, H5T_COPY_ALL)))
                               ^~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odtype.c:1544:49: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if(NULL == (udata->src_dtype = H5T_copy(dt_src, H5T_COPY_TRANSIENT)))
                                                ^~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Ocont.c.o
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Ocopy.c.o
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Odbg.c.o
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Odeprec.c.o
[ 65%] Building C object src/CMakeFiles/hdf5-static.dir/H5Odrvinfo.c.o
[ 66%] Building C object src/CMakeFiles/hdf5-static.dir/H5Odtype.c.o
[ 66%] Building C object src/CMakeFiles/hdf5-static.dir/H5Oefl.c.o
[ 66%] Building C object src/CMakeFiles/hdf5-static.dir/H5Ofill.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:141:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:195:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:322:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
3 errors generated.
make[5]: *** [src/CMakeFiles/hdf5-static.dir/H5Odeprec.c.o] Error 1
make[5]: *** Waiting for unfinished jobs....
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odtype.c:1190:32: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
    if(NULL == (dst = H5T_copy(src, H5T_COPY_ALL)))
                               ^~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odtype.c:1544:49: warning: passing 'const H5T_t *' (aka 'const struct H5T_t *') to parameter of type 'H5T_t *' (aka 'struct H5T_t *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
        if(NULL == (udata->src_dtype = H5T_copy(dt_src, H5T_COPY_TRANSIENT)))
                                                ^~~~~~
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Tprivate.h:108:31: note: passing argument to parameter 'old_dt' here
H5_DLL H5T_t *H5T_copy(H5T_t *old_dt, H5T_copy_t method);
                              ^
2 warnings generated.
make[4]: *** [src/CMakeFiles/hdf5-shared.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
2 warnings generated.
make[4]: *** [src/CMakeFiles/hdf5-static.dir/all] Error 2
make[3]: *** [all] Error 2
CMake Error at /Users/mj/Desktop/pv/build4/superbuild/sb-hdf5-build.cmake:47 (message):
  Failed with exit code 2


make[2]: *** [superbuild/hdf5/stamp/hdf5-build] Error 1
make[1]: *** [superbuild/CMakeFiles/hdf5.dir/all] Error 2
make: *** [all] Error 2
➜  build4 sudo make install
Password:
[  3%] Built target cxx11_check
[ 14%] Built target python2
[ 25%] Built target python
[ 35%] Built target zlib
[ 46%] Built target szip
[ 48%] Performing build step for 'hdf5'
[  0%] Copying files needed by h5ls_vds tests
[  0%] Copying files needed by h5repart tests
[  0%] Built target H5make_libsettings
[  0%] Copying files needed by h5ls tests
[  1%] Copying files needed by HDF5_TEST_LIB tests
[  1%] Built target H5detect
[  1%] Copying files needed by HDF5_TEST_LIBSH tests
[  1%] Copying files needed by h5diff tests
[  2%] Built target h5repart_files
[  4%] Built target h5ls_vds_files
[  7%] Built target h5ls_files
[ 11%] Built target HDF5_TEST_LIB_files
[ 15%] Built target HDF5_TEST_LIBSH_files
[ 23%] Built target h5diff_files
[ 23%] Copying files needed by h5clear tests
[ 23%] Copying files needed by h5mkgrp tests
[ 23%] Copying files needed by h5stat tests
[ 23%] Copying files needed by h5copy tests
[ 23%] Copying files needed by h5jam tests
[ 23%] Copying files needed by h5repack tests
[ 24%] Built target h5mkgrp_files
[ 24%] Built target h5clear_files
[ 24%] Copying files needed by h5import tests
[ 24%] Copying files needed by h5dump_pbits tests
[ 26%] Built target h5stat_files
[ 24%] Built target h5jam_files
[ 29%] Built target h5repack_files
[ 30%] Built target h5copy_files
[ 32%] Built target h5import_files
[ 34%] Built target h5dump_pbits_files
[ 34%] Copying files needed by h5dump_vds tests
[ 34%] Copying files needed by h5dump_xml tests
[ 34%] Copying files needed by gif2h5 tests
[ 34%] Built target zip_perf_files
[ 34%] Copying files needed by h5fc tests
[ 36%] Built target h5dump_vds_files
[ 40%] Built target h5dump_xml_files
[ 40%] Built target h5fc-files
[ 40%] Copying files needed by h5dump_std tests
[ 40%] Copying files needed by H5WATCH tests
[ 40%] Built target gif2h5_files
[ 41%] Built target h5fc_files
[ 43%] Built target H5WATCH_files
[ 52%] Built target h5dump_std_files
[ 52%] Copying files needed by hl_ex_ex_ds1 tests
[ 52%] Built target gen_hdf5-shared
[ 52%] Copying files needed by cpp_testhdf5 tests
[ 52%] Copying files needed by hl_test tests
[ 52%] Built target gen_hdf5-static
[ 52%] Built target hl_ex_ex_ds1_files
[ 52%] Built target cpp_testhdf5_files
[ 53%] Built target hl_test_files
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Oginfo.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Ofsinfo.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Ofill.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Oflush.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Oint.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Odeprec.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-shared.dir/H5Olayout.c.o
[ 53%] Building C object src/CMakeFiles/hdf5-static.dir/H5Odeprec.c.o
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:141:8: /Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:141:8: errorerror: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:195:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:195:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:322:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
/Users/mj/Desktop/pv/build4/superbuild/hdf5/src/src/H5Odeprec.c:322:8: error: implicit declaration of function 'H5CX_set_apl' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
    if(H5CX_set_apl(&lapl_id, H5P_CLS_LACC, loc_id, FALSE) < 0)
       ^
3 error3 errors generated.
s generated.
make[5]: *** [src/CMakeFiles/hdf5-static.dir/H5Odeprec.c.o] Error 1
make[5]: *** [src/CMakeFiles/hdf5-shared.dir/H5Odeprec.c.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [src/CMakeFiles/hdf5-static.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [src/CMakeFiles/hdf5-shared.dir/all] Error 2
make[3]: *** [all] Error 2
CMake Error at /Users/mj/Desktop/pv/build4/superbuild/sb-hdf5-build.cmake:47 (message):
  Failed with exit code 2

make[2]: *** [superbuild/hdf5/stamp/hdf5-build] Error 1
make[1]: *** [superbuild/CMakeFiles/hdf5.dir/all] Error 2
make: *** [all] Error 2

The steps I did:

$ cd Desktop
$ mkdir pv
$ cd pv
$ git clone --recursive https://gitlab.kitware.com/paraview/paraview-superbuild.git

$ cd paraview-superbuild
$ git fetch origin # ensure you have the latest state from the main repo
$ git checkout v5.7.0
$ git submodule update

$ cd ..
$ mkdir build4

Open cmake-gui.

Browse Source: /Users/mj/Desktop/pv/paraview-superbuild
Browse Build: /Users/mj/Desktop/pv/build4

Configure:
* Generator: Unix Makefiles
* Use default native compilers

Enable:
* ENABLE_python
* ENABLE_python2
* ENABLE_qt5

Add Entry → CMAKE_OSX_SDK= macosx12.0.

Change PYTHON_EXECUTABLE dir to /usr/local/bin/python to use python 2.7.16 instead of 2.7.18 that was giving an error.

Configure.
Enable → USE_SYSTEM_qt5.
Configure.
Add Qt path → Qt5_DIR=/Users/mj/Qt5.9.9/5.9.9/clang_64/lib/cmake/Qt5
Configure.
Generate.

It finish without error and then when I cd into the build4 folder and execute make I get the error posted above.

This is fixed in paraview master (and upcoming 5.10)

Oh, Great! Thanks for answering.

I tried the same process with paraview superbuild master and got two issues:

  1. Looks like python 2 is no longer supported. Is that correct?

  2. Is this paraview superbuild only compatible with Qt 5.12? I tried with Qt5.9.9 and got this error

Thanks!

Yes

Is this paraview superbuild only compatible with Qt 5.12?

Yes