[FLASH-USERS] Compilation error implicit function declaration
Reyes, Adam
adam.reyes at rochester.edu
Mon Nov 18 11:30:02 EST 2024
Hi Deepali,
The error you’re showing looks like it is from a gnu compiler (gcc) rather than the intel compiler. You may want to make sure you’re specifying the correct compilers that you expect in your Makefile.h.
For this specific error you can add the following to the “CFLAGS_[OPT/DEBUG/TEST]”: “-Wno-error=implicit-function-declaration"
*********************************************
Adam Reyes

Code Group Leader, Flash Center for Computational Science
Research Scientist, Dept. of Physics and Astronomy
University of Rochester
River Campus: Bausch and Lomb Hall, 369
500 Wilson Blvd. PO Box 270171, Rochester, NY 14627
Email adam.reyes at rochester.edu
Web https://flash.rochester.edu
(he / him / his)

*********************************************
> On Nov 18, 2024, at 8:23 AM, Deepali <ddeepali at hs.uni-hamburg.de> wrote:
>
> Dear All,
>
>
> The HPC cluster that I use has upgraded its OS and provided new compilers and I am not able to compile Flash with them. I use the following modules:
>
> intel/2024.2
>
> impi/2021.13 --> compilers used: mpiifx , mpiicx , mpiicpc
>
> hdf5/intel/1.14.4
>
>
> On compiling I get the following error:
>
> io_attribute.c:66:5: error: call to undeclared function 'Driver_abortFlashC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 66 | Driver_abortFlashC("[io_attribute_create]: Unknown I/O");
> | ^
> io_attribute.c:113:5: error: call to undeclared function 'Driver_abortFlashC'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> 113 | Driver_abortFlashC("[io_attribute_write]: Unknown I/O");
> | ^
> 2 errors generated.
> make: *** [Makefile:128: io_attribute.o] Error 1
>
>
> The code Driver_abortFlashC.c is compiled successfully before encountering this error. I found an email in the user-list with the exact same error: https://flash.rochester.edu/pipermail/flash-users/2023-January/003908.html but I couldn't find the response email with solution. Could you please suggest a way to get around this?
>
>
> Best regards,
>
> Deepali
>
> _______________________________________________
> flash-users mailing list
> flash-users at flash.rochester.edu
>
> For list info, including unsubscribe:
> https://flash.rochester.edu/mailman/listinfo/flash-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241118/06873341/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH.jpg
Type: image/jpeg
Size: 23876 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241118/06873341/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FLASH-pride-sml.png
Type: image/png
Size: 12732 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241118/06873341/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1391 bytes
Desc: not available
URL: <http://flash.rochester.edu/pipermail/flash-users/attachments/20241118/06873341/attachment-0001.p7s>
More information about the flash-users
mailing list