-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi,
When using the flag --enable-profiling with openmpi 4.1.5 / gcc 12.3.0
mpicc -DHAVE_CONFIG_H -I. -I../include -O2 -Wp,-w -MT QMP_comm.o -MD -MP -MF $depbase.Tpo -c -o QMP_comm.o QMP_comm.c
I get the following errors/warnings.
`
QMP_comm.c:408:1: error: redefinition of ‘QMP_sum_long_double_array’
408 | QMP_sum_long_double_array (long double value[], int count)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../include/QMP_P_COMMON.h:9,
from QMP_comm.c:7:
../include/QMP_profiling.h:198:21: note: previous definition of ‘QMP_sum_long_double_array’ with type ‘QMP_status_t(long double , int)’ {aka ‘enum QMP_status(long double , int)’}
198 | QMP_status_t QMP_sum_long_double_array (long double value[], int length)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:6:20: error: ‘QMP_init_msg_passing’ aliased to undefined symbol ‘PQMP_init_msg_passing’
6 | QMP_status_t QMP_init_msg_passing (int argc, char** argv,
| ^~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:253:9: error: ‘QMP_get_total_qmp_time’ aliased to undefined symbol ‘PQMP_get_total_qmp_time’
253 | double QMP_get_total_qmp_time(void)
| ^~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:251:8: error: ‘QMP_reset_total_qmp_time’ aliased to undefined symbol ‘PQMP_reset_total_qmp_time’
251 | void QMP_reset_total_qmp_time(void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:247:8: error: ‘QMP_error’ aliased to undefined symbol ‘PQMP_error’
247 | int QMP_error (const char format, ...)
| ^~~~~~~~~
../include/QMP_profiling.h:245:8: error: ‘QMP_info’ aliased to undefined symbol ‘PQMP_info’
245 | int QMP_info (const char format, ...)
| ^~~~~~~~
../include/QMP_profiling.h:242:8: error: ‘QMP_fprintf’ aliased to undefined symbol ‘PQMP_fprintf’
242 | int QMP_fprintf (FILE stream, const char format, ...)
| ^~~~~~~~~~~
../include/QMP_profiling.h:239:8: error: ‘QMP_printf’ aliased to undefined symbol ‘PQMP_printf’
239 | int QMP_printf (const char format, ...)
| ^~~~~~~~~~
../include/QMP_profiling.h:236:21: error: ‘QMP_profcontrol’ aliased to undefined symbol ‘PQMP_profcontrol’
236 | int QMP_profcontrol (int level)
| ^~~~~~~~~~~~~~~
../include/QMP_profiling.h:233:21: error: ‘QMP_verbose’ aliased to undefined symbol ‘PQMP_verbose’
233 | int QMP_verbose (int level)
| ^~~~~~~~~~~
../include/QMP_profiling.h:228:21: error: ‘QMP_get_error_string’ aliased to undefined symbol ‘PQMP_get_error_string’
228 | const char QMP_get_error_string (QMP_msghandle_t mh)
| ^~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:225:21: error: ‘QMP_get_error_number’ aliased to undefined symbol ‘PQMP_get_error_number’
225 | QMP_status_t QMP_get_error_number (QMP_msghandle_t mh)
| ^~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:222:21: error: ‘QMP_error_string’ aliased to undefined symbol ‘PQMP_error_string’
222 | const char QMP_error_string (QMP_status_t code)
| ^~~~~~~~~~~~~~~~
../include/QMP_profiling.h:198:21: error: ‘QMP_sum_long_double_array’ aliased to undefined symbol ‘PQMP_sum_long_double_array’
198 | QMP_status_t QMP_sum_long_double_array (long double value[], int length)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:153:21: error: ‘QMP_declare_multiple’ aliased to undefined symbol ‘PQMP_declare_multiple’
153 | QMP_msghandle_t QMP_declare_multiple (QMP_msghandle_t msgh[],
| ^~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:150:21: error: ‘QMP_free_msghandle’ aliased to undefined symbol ‘PQMP_free_msghandle’
150 | void QMP_free_msghandle (QMP_msghandle_t h)
| ^~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:145:21: error: ‘QMP_declare_receive_from’ aliased to undefined symbol ‘PQMP_declare_receive_from’
145 | QMP_msghandle_t QMP_declare_receive_from(QMP_msgmem_t m,
| ^~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:140:21: error: ‘QMP_declare_send_to’ aliased to undefined symbol ‘PQMP_declare_send_to’
140 | QMP_msghandle_t QMP_declare_send_to (QMP_msgmem_t m,
| ^~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:134:21: error: ‘QMP_declare_send_relative’ aliased to undefined symbol ‘PQMP_declare_send_relative’
134 | QMP_msghandle_t QMP_declare_send_relative (QMP_msgmem_t m,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:128:21: error: ‘QMP_declare_receive_relative’ aliased to undefined symbol ‘PQMP_declare_receive_relative’
128 | QMP_msghandle_t QMP_declare_receive_relative (QMP_msgmem_t m,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:123:21: error: ‘QMP_free_msgmem’ aliased to undefined symbol ‘PQMP_free_msgmem’
123 | void QMP_free_msgmem (QMP_msgmem_t m)
| ^~~~~~~~~~~~~~~
../include/QMP_profiling.h:116:17: error: ‘QMP_declare_strided_array_msgmem’ aliased to undefined symbol ‘PQMP_declare_strided_array_msgmem’
116 | QMP_msgmem_t QMP_declare_strided_array_msgmem (void base[],
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:110:21: error: ‘QMP_declare_strided_msgmem’ aliased to undefined symbol ‘PQMP_declare_strided_msgmem’
110 | QMP_msgmem_t QMP_declare_strided_msgmem (void* base,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:107:21: error: ‘QMP_declare_msgmem’ aliased to undefined symbol ‘PQMP_declare_msgmem’
107 | QMP_msgmem_t QMP_declare_msgmem (const void* mem, size_t nbytes)
| ^~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:104:21: error: ‘QMP_free_memory’ aliased to undefined symbol ‘PQMP_free_memory’
104 | void QMP_free_memory (QMP_mem_t* mem)
| ^~~~~~~~~~~~~~~
../include/QMP_profiling.h:101:21: error: ‘QMP_get_memory_pointer’ aliased to undefined symbol ‘PQMP_get_memory_pointer’
101 | void* QMP_get_memory_pointer (QMP_mem_t* mem)
| ^~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:96:21: error: ‘QMP_allocate_aligned_memory’ aliased to undefined symbol ‘PQMP_allocate_aligned_memory’
96 | QMP_mem_t* QMP_allocate_aligned_memory (size_t nbytes,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:93:21: error: ‘QMP_allocate_memory’ aliased to undefined symbol ‘PQMP_allocate_memory’
93 | QMP_mem_t* QMP_allocate_memory (size_t nbytes)
| ^~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:87:21: error: ‘QMP_get_number_of_subgrid_sites’ aliased to undefined symbol ‘PQMP_get_number_of_subgrid_sites’
87 | int QMP_get_number_of_subgrid_sites (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:84:21: error: ‘QMP_get_subgrid_dimensions’ aliased to undefined symbol ‘PQMP_get_subgrid_dimensions’
84 | const int* QMP_get_subgrid_dimensions (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:81:21: error: ‘QMP_layout_grid’ aliased to undefined symbol ‘PQMP_layout_grid’
81 | QMP_status_t QMP_layout_grid (const int dimensions[], int ndims)
| ^~~~~~~~~~~~~~~
../include/QMP_profiling.h:76:21: error: ‘QMP_get_node_number_from’ aliased to undefined symbol ‘PQMP_get_node_number_from’
76 | int QMP_get_node_number_from (const int coordinates[])
| ^~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:73:21: error: ‘QMP_get_logical_coordinates_from’ aliased to undefined symbol ‘PQMP_get_logical_coordinates_from’
73 | int* QMP_get_logical_coordinates_from (int node)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:70:21: error: ‘QMP_get_logical_coordinates’ aliased to undefined symbol ‘PQMP_get_logical_coordinates ’
70 | const int* QMP_get_logical_coordinates (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:67:21: error: ‘QMP_get_logical_dimensions’ aliased to undefined symbol ‘PQMP_get_logical_dimensions’
67 | const int* QMP_get_logical_dimensions (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:64:21: error: ‘QMP_get_logical_number_of_dimensions’ aliased to undefined symbol ‘PQMP_get_logical_number_of_dimensions’
64 | int QMP_get_logical_number_of_dimensions (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:61:21: error: ‘QMP_logical_topology_is_declared’ aliased to undefined symbol ‘PQMP_logical_topology_is_declared ’
61 | QMP_bool_t QMP_logical_topology_is_declared (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:57:21: error: ‘QMP_declare_logical_topology’ aliased to undefined symbol ‘PQMP_declare_logical_topology’
57 | QMP_status_t QMP_declare_logical_topology (const int dims[],
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:52:21: error: ‘QMP_master_io_node’ aliased to undefined symbol ‘PQMP_master_io_node’
52 | int QMP_master_io_node(void)
| ^~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:49:21: error: ‘QMP_io_node’ aliased to undefined symbol ‘PQMP_io_node’
49 | int QMP_io_node(int node)
| ^~~~~~~~~~~
../include/QMP_profiling.h:43:21: error: ‘QMP_get_allocated_coordinates’ aliased to undefined symbol ‘PQMP_get_allocated_coordinates’
43 | const int* QMP_get_allocated_coordinates (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:40:21: error: ‘QMP_get_allocated_dimensions’ aliased to undefined symbol ‘PQMP_get_allocated_dimensions’
40 | const int* QMP_get_allocated_dimensions (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:37:21: error: ‘QMP_get_allocated_number_of_dimensions’ aliased to undefined symbol ‘PQMP_get_allocated_number_of_dimensions’
37 | int QMP_get_allocated_number_of_dimensions (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:34:21: error: ‘QMP_is_primary_node’ aliased to undefined symbol ‘PQMP_is_primary_node’
34 | QMP_bool_t QMP_is_primary_node (void)
| ^~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:31:21: error: ‘QMP_get_node_number’ aliased to undefined symbol ‘PQMP_get_node_number’
31 | int QMP_get_node_number (void)
| ^~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:28:21: error: ‘QMP_get_number_of_nodes’ aliased to undefined symbol ‘PQMP_get_number_of_nodes’
28 | int QMP_get_number_of_nodes (void)
| ^~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:25:21: error: ‘QMP_get_msg_passing_type’ aliased to undefined symbol ‘PQMP_get_msg_passing_type’
25 | QMP_ictype_t QMP_get_msg_passing_type (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:20:21: error: ‘QMP_abort_string’ aliased to undefined symbol ‘PQMP_abort_string’
20 | void QMP_abort_string (int error_code, char *message)
| ^~~~~~~~~~~~~~~~
../include/QMP_profiling.h:17:21: error: ‘QMP_abort’ aliased to undefined symbol ‘PQMP_abort’
17 | void QMP_abort (int error_code)
| ^~~~~~~~~
../include/QMP_profiling.h:14:21: error: ‘QMP_finalize_msg_passing’ aliased to undefined symbol ‘PQMP_finalize_msg_passing’
14 | void QMP_finalize_msg_passing (void)
| ^~~~~~~~~~~~~~~~~~~~~~~~
../include/QMP_profiling.h:11:21: error: ‘QMP_is_initialized’ aliased to undefined symbol ‘PQMP_is_initialized’
11 | QMP_bool_t QMP_is_initialized(void)
| ^~~~~~~~~~~~~~~~~~
`
Any hints?
Best