[MacPorts] #68837: openmpi-gcc13 fails to build

MacPorts noreply at macports.org
Mon Dec 4 23:10:19 UTC 2023


#68837: openmpi-gcc13 fails to build
---------------------------+---------------------------
 Reporter:  rhaas80        |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.8.1
 Keywords:  openmpi gcc13  |       Port:  openmpi-gcc13
---------------------------+---------------------------
 Hello all,

 On my Apple M1 Mac macOS 14.0 23A344 I get build failures in opnempi-gcc13
 from this command (freshly installed macpors, XCode App and XCode command
 line utilities):

 {{{
 sudo port -N install pkgconfig gcc13 openmpi-gcc13 fftw-3 gsl zlib openssl
 subversion ld64 hdf5 +fortran +gfortran
 }}}

 The error message is:

 {{{
 info:build pget_elements_x.c: In function 'PMPI_Get_elements_x':
 :info:build pget_elements_x.c:79:63: error: 'SSIZE_MAX' undeclared (first
 use in this function); did you mean 'RSIZE_MAX'?
 :info:build    79 |         if (OMPI_SUCCESS == ret && internal_count <=
 (size_t) SSIZE_MAX) {
 :info:build       |
 ^~~~~~~~~
 :info:build       |
 RSIZE_MAX
 :info:build pget_elements_x.c:79:63: note: each undeclared identifier is
 reported only once for each function it appears in
 :info:build make[3]: *** [pget_elements_x.lo] Error 1
 }}}

 Seems like `ssize_max` (or so) is being used without correct header files
 being included.

 Log file attached.

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


More information about the macports-tickets mailing list