[MacPorts] #69928: Compiling hdf5 with gcc13

MacPorts noreply at macports.org
Mon May 6 20:46:32 UTC 2024


#69928: Compiling hdf5 with gcc13
-------------------------+--------------------
 Reporter:  jvianalopes  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:               |       Port:
-------------------------+--------------------
 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

-- 
Ticket URL: <https://trac.macports.org/ticket/69928>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list