Skip to content

Build error on macOS: IOV_MAX undefined #12110

@eschnett

Description

@eschnett

I am building OpenMPI 5.0.0 on macOS with a MacPorts-installed GCC 13.2.

My configure options are

$ ./configure --prefix=$HOME/openmpi-5.0.0 --with-libevent=internal CC=gcc CXX=g++ FC=gfortran
This fails with the error message

fbtl_posix_preadv.c: In function 'mca_fbtl_posix_preadv_generic':
fbtl_posix_pwritev.c: In function 'mca_fbtl_posix_pwritev_generic':
fbtl_posix_preadv.c:282:30: error: 'IOV_MAX' undeclared (first use in this function); did you mean 'INT_MAX'?
  282 |                 (iov_count < IOV_MAX ) ){
      |                              ^~~~~~~
      |                              INT_MAX
fbtl_posix_pwritev.c:286:31: error: 'IOV_MAX' undeclared (first use in this function); did you mean 'INT_MAX'?
  286 |                  (iov_count < IOV_MAX )) {
      |                               ^~~~~~~
      |                               INT_MAX
fbtl_posix_preadv.c:282:30: note: each undeclared identifier is reported only once for each function it appears in
fbtl_posix_pwritev.c:286:31: note: each undeclared identifier is reported only once for each function it appears in

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions