Opened 4 years ago

Last modified 4 years ago

#61229 assigned defect

hdf5 @1.10.6 +openmpi: error: implicit declaration of function 'H5CX_set_coll_metadata_read' is invalid in C99

Reported by: chaochinyang (Chao-Chin Yang) Owned by: eborisch (Eric A. Borisch)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: chrstphrchvz (Christopher Chavez), Dave-Allured (Dave Allured)
Port: hdf5

Description

I need to build a parallel HDF5 to work with my C++ code, so I try to install hdf5 with all three of +cxx, +hl, and +openmpi on. But it fails to build due to some error in t_cache.c:

:info:build t_cache.c:7253:9: error: implicit declaration of function 'H5CX_set_coll_metadata_read' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
:info:build         H5CX_set_coll_metadata_read(TRUE);
:info:build         ^
:info:build t_cache.c:7253:9: note: did you mean 'H5Pset_coll_metadata_write'?
:info:build ../src/H5Ppublic.h:365:15: note: 'H5Pset_coll_metadata_write' declared here
:info:build H5_DLL herr_t H5Pset_coll_metadata_write(hid_t plist_id, hbool_t is_collective);
:info:build               ^
:info:build 1 error generated.

The full log is attached.

My openmpi (default) is @4.0.1_1 with +gcc10 and my MacOS is 10.15.6.

Attachments (1)

main.log (174.5 KB) - added by chaochinyang (Chao-Chin Yang) 4 years ago.
Full log

Download all attachments as: .zip

Change History (9)

Changed 4 years ago by chaochinyang (Chao-Chin Yang)

Attachment: main.log added

Full log

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

Cc: eborisch removed
Owner: set to eborisch
Status: newassigned
Summary: hdf5 @1.10.6 +openmpi: Failed to buildhdf5 @1.10.6 +openmpi: error: implicit declaration of function 'H5CX_set_coll_metadata_read' is invalid in C99

Implicit declaration of function errors are new in Xcode 12. We need to fix them, but until we do, if you want to avoid the problem, downgrade to Xcode 11 and/or the Xcode 11 version of the command line tools.

comment:2 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

There was a previous attempt to deal with implicitly defined functions, but maybe there is more needed for non-default variants: [691e48ba5e/macports-ports]

comment:3 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

There is a recent update available (1.10.7, 2020-09-15); it looks like it might address this issue.

comment:5 Changed 4 years ago by chaochinyang (Chao-Chin Yang)

When will be the update published for downstream upgrade?

comment:6 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

comment:7 Changed 4 years ago by chaochinyang (Chao-Chin Yang)

I can confirm that a parallel HDF5 can be installed with 1.10.7.

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

Cc: Dave-Allured added
Note: See TracTickets for help on using tickets.