DiamondLightSource / durin

BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Trouble installing the durin #31

Closed adarshkumar0312 closed 5 months ago

adarshkumar0312 commented 5 months ago

Hi team I am trying to install the durin plugin and received the following error. Please help! mkdir -p ./build h5cc -Wall -g -O2 -fpic -I./src -I./bslz4/src -std=c89 -c src/plugin.c -o build/plugin.o In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:21, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5public.h:340:1: error: C++ style comments are not allowed in ISO C90 340 | //! <!-- [H5_iter_order_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5public.h:340:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Apublic.h:20, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:22, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Ipublic.h:33:1: error: C++ style comments are not allowed in ISO C90 33 | //! <!-- [H5I_type_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Ipublic.h:33:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Apublic.h:21, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:22, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Opublic.h:86:1: error: C++ style comments are not allowed in ISO C90 86 | //! <!-- [H5O_native_info_fields_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Opublic.h:86:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Apublic.h:22, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:22, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Tpublic.h:29:1: error: C++ style comments are not allowed in ISO C90 29 | //! <!-- [H5T_class_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Tpublic.h:29:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:22, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Apublic.h:24:1: error: C++ style comments are not allowed in ISO C90 24 | //! <!-- [H5A_info_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Apublic.h:24:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:23, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5ACpublic.h:461:1: error: C++ style comments are not allowed in ISO C90 461 | //! <!-- [H5AC_cache_config_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5ACpublic.h:461:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:24, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Dpublic.h:40:1: error: C++ style comments are not allowed in ISO C90 40 | //! <!-- [H5D_layout_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Dpublic.h:40:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:25, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Epublic.h:170:1: error: C++ style comments are not allowed in ISO C90 170 | //! <!-- [H5E_walk2_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Epublic.h:170:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:26, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5ESpublic.h:76:1: error: C++ style comments are not allowed in ISO C90 76 | //! <!-- [H5ES_err_info_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5ESpublic.h:76:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:27, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Fpublic.h:124:1: error: C++ style comments are not allowed in ISO C90 124 | //! <!-- [H5F_info2_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Fpublic.h:124:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:28, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5FDpublic.h:266:1: error: C++ style comments are not allowed in ISO C90 266 | //! <!-- [H5FD_file_image_op_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5FDpublic.h:266:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Gpublic.h:26, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:29, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Lpublic.h:86:1: error: C++ style comments are not allowed in ISO C90 86 | //! <!-- [H5L_info2_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Lpublic.h:86:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:29, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Gpublic.h:37:1: error: C++ style comments are not allowed in ISO C90 37 | //! <!-- [H5G_storage_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Gpublic.h:37:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Mpublic.h:24, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:32, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5VLpublic.h:143:1: error: C++ style comments are not allowed in ISO C90 143 | //! <!-- [H5VL_class_value_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5VLpublic.h:143:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5VLconnector.h:29, from /home/adkumar/hdf5_dir/build/hdf5/include/H5Mpublic.h:27, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:32, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Rpublic.h:44:1: error: C++ style comments are not allowed in ISO C90 44 | //! <!-- [H5R_type_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Rpublic.h:44:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Mpublic.h:27, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:32, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5VLconnector.h:1010:1: error: C++ style comments are not allowed in ISO C90 1010 | //! <!-- [H5VL_class_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5VLconnector.h:1010:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:32, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Mpublic.h:68:1: error: C++ style comments are not allowed in ISO C90 68 | //! <!-- [H5M_iterate_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Mpublic.h:68:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:33, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5MMpublic.h:28:1: error: C++ style comments are not allowed in ISO C90 28 | //! <!-- [H5MM_allocate_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5MMpublic.h:28:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/H5Ppublic.h:31, from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:35, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Zpublic.h:259:1: error: C++ style comments are not allowed in ISO C90 259 | //! <!-- [H5Z_filter_func_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Zpublic.h:259:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:35, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Ppublic.h:239:1: error: C++ style comments are not allowed in ISO C90 239 | //! <!-- [H5P_cls_create_func_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Ppublic.h:239:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:36, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5PLpublic.h:30:1: error: C++ style comments are not allowed in ISO C90 30 | //! <!-- [H5PL_type_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5PLpublic.h:30:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:46, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Idevelop.h:35:1: error: C++ style comments are not allowed in ISO C90 35 | //! <!-- [H5I_future_realize_func_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Idevelop.h:35:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:47, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Ldevelop.h:92:1: error: C++ style comments are not allowed in ISO C90 92 | //! <!-- [H5L_class_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Ldevelop.h:92:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:48, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Tdevelop.h:53:1: error: C++ style comments are not allowed in ISO C90 53 | //! <!-- [H5T_cdata_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Tdevelop.h:53:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:50, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5Zdevelop.h:77:1: error: C++ style comments are not allowed in ISO C90 77 | //! <!-- [H5Z_can_apply_func_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5Zdevelop.h:77:1: note: (this will be reported only once per input file) In file included from /home/adkumar/hdf5_dir/build/hdf5/include/hdf5.h:69, from src/plugin.c:7: /home/adkumar/hdf5_dir/build/hdf5/include/H5FDsplitter.h:38:1: error: C++ style comments are not allowed in ISO C90 38 | //! <!-- [H5FD_splitter_vfd_config_t_snip] --> | ^ /home/adkumar/hdf5_dir/build/hdf5/include/H5FDsplitter.h:38:1: note: (this will be reported only once per input file) make: *** [Makefile:31: build/plugin.o] Error 1

c-mita commented 5 months ago

Don't pass -std=c89 to your compile flags - that doesn't support // as a comment marker.

The provided Makefile uses -std=c99 - why notjust use that?

adarshkumar0312 commented 5 months ago

Thank you, @c-mita it worked. I had downloaded the files from https://github.com/DiamondLightSource/durin/releases/tag/2019v1. it had -std=c89.