Opened 5 months ago

Last modified 5 months ago

#69928 assigned defect

Compiling hdf5 with gcc13 — at Initial Version

Reported by: jvianalopes (João Manuel Viana Parente Lopes) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: hdf5

Description

Hi,

I tried to install hdf5 port with: sudo port -v install hdf5 +gcc13

And it aborts with an error:


make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.14.4.2/src'
make[1]: *** [all] Error 2


moving to the directory:

cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_hdf5/hdf5/work/hdf5-1.14.4.2

and trying to compile:

make Give-me the error:


In file included from H5encode.h:23,
                 from H5private.h:1845,
                 from H5Fint.c:22:
H5Fint.c: In function 'H5F__build_actual_name':
H5Fint.c:2817:65: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
 2817 |             if (NULL == (realname = (char *)H5MM_calloc((size_t)PATH_MAX * sizeof(char))))
      |                                                                 ^~~~~~~~
H5MMprivate.h:36:34: note: in definition of macro 'H5MM_calloc'
   36 | #define H5MM_calloc(Z) calloc(1, Z)
      |                                  ^
H5Fint.c:2817:65: note: each undeclared identifier is reported only once for each function it appears in
 2817 |             if (NULL == (realname = (char *)H5MM_calloc((size_t)PATH_MAX * sizeof(char))))
      |                                                                 ^~~~~~~~
H5MMprivate.h:36:34: note: in definition of macro 'H5MM_calloc'
   36 | #define H5MM_calloc(Z) calloc(1, Z)
      |                                  ^
make[2]: *** [H5Fint.lo] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

If complaints about this PATH_MAX definition. Do you have any suggestions? I was able to compile it with gcc12

Thanks in advance

Change History (0)

Note: See TracTickets for help on using tickets.