Opened 5 years ago

Closed 3 years ago

#59818 closed defect (invalid)

openmpi-devel-gcc9 @4.0.1: error: ptrdiff_t type is not available

Reported by: oliviermarti (Marti) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: majoc-at-astro (majoc-at-astro)
Port: openmpi-devel-gcc9

Description

Mac OS X 10.14.6

XCode 12.2.1

MacPort 2.6.2, fresh install from scratch (all previous MacPort port and files removed as explained inhttps://guide.macports.org/#installing.macports.uninstalling)

sudo port install gcc9 # OK
sudo port select --set gcc mp-gcc9 # OK
sudo port install openmpi-devel-gcc9 +fortran

Last command fails with

:info:configure configure: error: ptrdiff_t type is not available, this is required by C99 standard.  Cannot continue
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-devel-gcc8/work/build" && /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_openmpi/openmpi-devel-gcc8/work/openmpi-v4.0.x-201905080241-5d4c9b4/configure --prefix=/opt/local --enable-mpi-cxx FFLAGS='' F77='' --bindir=/opt/local/libexec/openmpi-devel-gcc8 --libdir=/opt/local/lib/openmpi-devel-gcc8 --sysconfdir=/opt/local/etc/openmpi-devel-gcc8 --includedir=/opt/local/include/openmpi-devel-gcc8 --datadir=/opt/local/share/openmpi-devel-gcc8 --docdir=/opt/local/share/docdelete --mandir=/opt/local/share/mandelete --with-hwloc=/opt/local --enable-mpi-fortran
:info:configure Exit code: 1

I have exactly the same defect with gcc8 and gcc7.

Olivier

Attachments (1)

main.log (71.2 KB) - added by oliviermarti (Marti) 5 years ago.
log file

Download all attachments as: .zip

Change History (9)

comment:1 Changed 5 years ago by kencu (Ken)

Keywords: ptrdiff_t removed
Port: openmpi-devel-gcc9 added; openmpi removed
Summary: openmpi doesn't compile on Mac OS X 10.14.6 and gccopenmpi-devel-gcc9 @4.0.1: error: ptrdiff_t type is not available

comment:2 Changed 5 years ago by kencu (Ken)

please attach the main log file from the build, which will be referenced by the error message. It is usually best if you clean first, try again, and then attach that clean log for us to see:

sudo port clean openmpi-devel-gcc9
sudo port -v install openmpi-devel-gcc9

comment:3 Changed 5 years ago by kencu (Ken)

The buildbots seem to like it, for the most part... <https://ports.macports.org/port/openmpi-devel-gcc9/builds>

Changed 5 years ago by oliviermarti (Marti)

Attachment: main.log added

log file

comment:4 in reply to:  2 Changed 5 years ago by oliviermarti (Marti)

Replying to kencu:

please attach the main log file from the build, which will be referenced by the error message. It is usually best if you clean first, try again, and then attach that clean log for us to see:

sudo port clean openmpi-devel-gcc9
sudo port -v install openmpi-devel-gcc9

Done. Sorry for missing this step.

comment:5 Changed 5 years ago by kencu (Ken)

There is a comment here near the bottom of the page by Jeff Hammond <https://github.com/Homebrew/homebrew-core/issues/40676> that suggests a workaround you might try.

comment:6 Changed 5 years ago by oliviermarti (Marti)

Hi,

Sorry to disturb again. I'm still stuck with OpenMPI.

I've tried to understand the workaround of Jeff Hamond. My skill and knowledge about both HomeBrew and MacPort are too light for that. I can't find where in the MacPort files I have to do something.

I've upgraded to XCode 11.3, and I've got exactly the same error.

Olivier

comment:7 Changed 4 years ago by majoc-at-astro (majoc-at-astro)

Cc: majoc-at-astro added

comment:8 Changed 3 years ago by mascguy (Christopher Nielsen)

Resolution: invalid
Status: newclosed

Since we no longer offer Devel ports for openmpi and mpich - nor do we support upstream compilers for these ports, due to the potential fragility - this ticket is no longer relevant. Closing.

Note: See TracTickets for help on using tickets.