[FLASH-USERS] HDF5 Compile Crash

Klaus Weide klaus at flash.uchicago.edu
Fri Oct 1 16:38:03 EDT 2021


On Fri, 1 Oct 2021, David Vartanyan wrote:

> Running ./setup Sedov -auto and then compiling, I get the following error:
> 
> -----
> /usr/local/mpi/bin/mpicc -I /usr/local/hdf5/include -DH5_USE_16_API -O3  -c
> -DDarwin -DMAXBLOCKS=1000 -DNXB=8 -DNYB=8 -DNZB=1 -DN_DIM=2 -DDarwin
> io_attribute.c
> io_attribute.c:66:5: error: implicit declaration of function
> 'Driver_abortFlashC' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
>     Driver_abortFlashC("[io_attribute_create]: Unknown I/O");
>     ^
> io_attribute.c:113:5: error: implicit declaration of function
> 'Driver_abortFlashC' is invalid in C99
> [-Werror,-Wimplicit-function-declaration]
>     Driver_abortFlashC("[io_attribute_write]: Unknown I/O");
>     ^
> 2 errors generated.

Try adding something like -Wno-error=implicit-function-declaration
to your C compilation flags in your Makefile.h. (Maybe as part of 
CFLAGS_OPT or CFLAGS_HDF5, or you could even append it to CCOMP.)

Alternatively, something like -std=c89 might also do.

Klaus



More information about the flash-users mailing list