Opened 4 years ago

Closed 4 years ago

#60705 closed defect (invalid)

hdf5-18: error: call to 'MPI_Type_hindexed' declared with attribute error: MPI_Type_hindexed was removed in MPI-3.0. Use MPI_Type_create_hindexed instead.

Reported by: sivanadarajah Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc:
Port: hdf5-18

Description (last modified by kencu (Ken))

I have an error building hdf5-18 (1.8.17). I get the following error in the log file and was wondering if someone has any hints on how to fix it.

:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_Users_sivakumarannadarajah_Documents_ports_science_hdf5-18/hdf5-18/work/hdf5-1.8.17/testpar'
:info:build make: *** [all-recursive] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_Users_sivakumarannadarajah_Documents_ports_science_hdf5-18/hdf5-18/work/hdf5-1.8.17'
:info:build Command failed:  cd "/opt/local/var/macports/build/_Users_sivakumarannadarajah_Documents_ports_science_hdf5-18/hdf5-18/work/hdf5-1.8.17" && /usr/bin/make -j8 -w all
:info:build Exit code: 2
:error:build Failed to build hdf5-18: command execution failed
:debug:build Error code: CHILDSTATUS 36627 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_Users_sivakumarannadarajah_Documents_ports_science_hdf5-18/hdf5-18/main.log for details.

Attachments (1)

main.log (868.4 KB) - added by sivanadarajah 4 years ago.

Download all attachments as: .zip

Change History (5)

Changed 4 years ago by sivanadarajah

Attachment: main.log added

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

Description: modified (diff)
Owner: set to eborisch
Status: newassigned

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

Milestone: MacPorts 2.6.3

comment:3 Changed 4 years ago by Dave-Allured (Dave Allured)

@sivanadarajah, port hdf5-18 is obsolete. It was replaced by port hdf5 more than two years ago. See ticket #55568. All modern ports that used hdf5-18 have switched over to port hdf5.

Can you use the current hdf5 port for your application? It is currently updated to upstream version number HDF5 1.10.6. This works well; I use it all the time.

HDF5 offers a version compatibility system that allows you to compile older code with a newer HDF5 library version, with few or no code changes. In short, add the flag -DH5_USE_18_API to the compiler command line. If you are compiling older code that worked with 1.8.x, this may be very helpful.

https://portal.hdfgroup.org/display/HDF5/API+Compatibility+Macros

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed
Summary: Error building hdf5-18hdf5-18: error: call to 'MPI_Type_hindexed' declared with attribute error: MPI_Type_hindexed was removed in MPI-3.0. Use MPI_Type_create_hindexed instead.

hdf5-18 had not only been obsolete, it was fully removed from MacPorts over a year before this ticket was filed. It should not have been possible for you to even attempt to install the port at that point, unless you manually resurrected the portfile or had a very old collection of ports somewhere.

I see that your hdf5-18 portfile was in the nonstandard directory /Users/sivakumarannadarajah/Documents/ports/science/hdf5-18. You may want to check if /Users/sivakumarannadarajah/Documents/ports contains any other outdated versions of ports, and if so update or remove them.

Note: See TracTickets for help on using tickets.