INFO: No output directory specified (--dir) INFO: Using directory: "Unit_test_abs_logger_event_20241206_160628" INFO: Regenerating c-file: Unit_test_abs_logger_event.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Unit_test_abs_logger_event.c Unit_test_abs_logger_event.instr Downloading file 'mcstas-comps/union/Union_abs_logger_event.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/union/Union_abs_logger_event.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 16:06:32.343 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Powder_process(0):read_table-lib :Powder_process(1):interoff-lib 2024-12-06 16:06:32.344 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib line 6:0 extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2024-12-06 16:06:47.464 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 6,0 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - #ifndef Union 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - #error "The Union_init component must be included before this Union_abs_logger_event component" 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - #endif 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - %include "monitor_nd-lib" // Internally avoids double import 2024-12-06 16:06:47.465 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ^ extraneous input '%' expecting {, '__extension__', '__m128', '__m128d', '__m128i', '__typeof__', '__inline__', '__stdcall', '__declspec', '__cdecl', '__clrcall', '__fastcall', '__thiscall', '__vectorcall', '__attribute__', 'auto', 'char', 'const', 'double', 'enum', 'extern', 'float', 'inline', 'int', 'long', 'register', 'restrict', 'short', 'signed', 'static', 'struct', 'typedef', 'union', 'unsigned', 'void', 'volatile', '_Alignas', '_Atomic', '_Bool', '_Complex', '_Noreturn', '_Static_assert', '_Thread_local', '(', '*', '^', ';', Identifier} 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2024-12-06 16:06:47.465 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - struct temp_abs_event_data_element_struct { line 6:9 no viable alternative at input 'include "monitor_nd-lib"' 2024-12-06 16:06:47.527 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 6,9 2024-12-06 16:06:47.527 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - #ifndef Union 2024-12-06 16:06:47.527 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - #error "The Union_init component must be included before this Union_abs_logger_event component" 2024-12-06 16:06:47.527 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - #endif 2024-12-06 16:06:47.528 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-06 16:06:47.528 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - %include "monitor_nd-lib" // Internally avoids double import 2024-12-06 16:06:47.528 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~~~~^ no viable alternative at input 'include "monitor_nd-lib"' 2024-12-06 16:06:47.528 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2024-12-06 16:06:47.528 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - struct temp_abs_event_data_element_struct { No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component init -> GPU kernel from component incoherent -> GPU kernel from component powder -> GPU kernel from component material -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component geometry_center -> GPU kernel from component box -> GPU kernel from component sphere -> GPU kernel from component cylinder -> GPU kernel from component cone -> GPU kernel from component Union_abs_logger_event Component master is NOACC, CPUONLY=False ->FUNNEL mode enabled, SPLIT within buffer. -> GPU kernel from component master -> GPU kernel from component transmission -> GPU kernel from component stop ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Unit_test_abs_logger_event.out DEBUG: CMD: nvc -o ./Unit_test_abs_logger_event.out ./Unit_test_abs_logger_event.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Unit_test_abs_logger_event.c", line 4489: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Unit_test_abs_logger_event.c", line 8532: warning: variable "output" was declared but never referenced [declared_but_not_referenced] struct tagging_tree_node_struct *output; ^ "./Unit_test_abs_logger_event.c", line 9056: warning: variable "permanent_list_length" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,permanent_list_length = 0; ^ "./Unit_test_abs_logger_event.c", line 9079: warning: variable "geometry_output" was set but never used [set_but_not_used] int geometry_output; ^ "./Unit_test_abs_logger_event.c", line 9567: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry->geometry_parameters.p_box_storage->x_vector; ^ "./Unit_test_abs_logger_event.c", line 9568: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry->geometry_parameters.p_box_storage->y_vector; ^ "./Unit_test_abs_logger_event.c", line 9569: warning: variable "z_vector" was declared but never referenced [declared_but_not_referenced] Coords z_vector = geometry->geometry_parameters.p_box_storage->z_vector; ^ "./Unit_test_abs_logger_event.c", line 9729: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_abs_logger_event.c", line 9949: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Unit_test_abs_logger_event.c", line 10108: warning: variable "radius_top" was declared but never referenced [declared_but_not_referenced] double radius_top = geometry->geometry_parameters.p_cone_storage->cone_radius_top; ^ "./Unit_test_abs_logger_event.c", line 10109: warning: variable "radius_bottom" was declared but never referenced [declared_but_not_referenced] double radius_bottom = geometry->geometry_parameters.p_cone_storage->cone_radius_bottom; ^ "./Unit_test_abs_logger_event.c", line 10384: warning: statement is unreachable [code_is_unreachable] return 0; ^ "./Unit_test_abs_logger_event.c", line 10143: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_abs_logger_event.c", line 10145: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Unit_test_abs_logger_event.c", line 10146: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Unit_test_abs_logger_event.c", line 10147: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Unit_test_abs_logger_event.c", line 10171: warning: variable "verbal" was declared but never referenced [declared_but_not_referenced] int verbal = 0; ^ "./Unit_test_abs_logger_event.c", line 10180: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10180: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10182: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Unit_test_abs_logger_event.c", line 10231: warning: variable "C1" was declared but never referenced [declared_but_not_referenced] int C1 = counter; ^ "./Unit_test_abs_logger_event.c", line 10398: warning: variable "normal_x" was declared but never referenced [declared_but_not_referenced] double *normal_x = geometry->geometry_parameters.p_mesh_storage->normal_x; ^ "./Unit_test_abs_logger_event.c", line 10399: warning: variable "normal_y" was declared but never referenced [declared_but_not_referenced] double *normal_y = geometry->geometry_parameters.p_mesh_storage->normal_y; ^ "./Unit_test_abs_logger_event.c", line 10400: warning: variable "normal_z" was declared but never referenced [declared_but_not_referenced] double *normal_z = geometry->geometry_parameters.p_mesh_storage->normal_z; ^ "./Unit_test_abs_logger_event.c", line 10429: warning: variable "center" was declared but never referenced [declared_but_not_referenced] Coords center = geometry->center; ^ "./Unit_test_abs_logger_event.c", line 10487: warning: variable "output" was set but never used [set_but_not_used] int output; ^ "./Unit_test_abs_logger_event.c", line 10503: warning: variable "tmp" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10503: warning: variable "intersect_pos" was declared but never referenced [declared_but_not_referenced] Coords edge1,edge2,h,s,q,tmp,intersect_pos; ^ "./Unit_test_abs_logger_event.c", line 10504: warning: variable "UNION_EPSILON" was declared but never referenced [declared_but_not_referenced] double UNION_EPSILON = 0.0000001; ^ "./Unit_test_abs_logger_event.c", line 10505: warning: variable "this_facet_t" was declared but never referenced [declared_but_not_referenced] double this_facet_t; ^ "./Unit_test_abs_logger_event.c", line 10942: warning: variable "vector2" is used before its value is set [used_before_set] if (verbal == 1) printf("vector1 = (%f,%f,%f)\n",vector1.x,vector1.y,vector2.z); ^ "./Unit_test_abs_logger_event.c", line 10931: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11008: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11215: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11313: warning: variable "solutions" was declared but never referenced [declared_but_not_referenced] int iterate,number_of_solutions,solutions,number_of_positions = 30; ^ "./Unit_test_abs_logger_event.c", line 11499: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 11692: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_abs_logger_event.c", line 11693: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_abs_logger_event.c", line 12227: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_abs_logger_event.c", line 12228: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_abs_logger_event.c", line 12627: warning: variable "square_center" is used before its value is set [used_before_set] Coords box_end_point = coords_sub(coords_set(0,0,-z_depth/2),square_center); ^ "./Unit_test_abs_logger_event.c", line 12487: warning: variable "is_rectangle" was declared but never referenced [declared_but_not_referenced] int is_rectangle = geometry_box->geometry_parameters.p_box_storage->is_rectangle; ^ "./Unit_test_abs_logger_event.c", line 12492: warning: variable "y_height2" was declared but never referenced [declared_but_not_referenced] double y_height2 = geometry_box->geometry_parameters.p_box_storage->y_height2; ^ "./Unit_test_abs_logger_event.c", line 12493: warning: variable "x_vector" was declared but never referenced [declared_but_not_referenced] Coords x_vector = geometry_box->geometry_parameters.p_box_storage->x_vector; ^ "./Unit_test_abs_logger_event.c", line 12494: warning: variable "y_vector" was declared but never referenced [declared_but_not_referenced] Coords y_vector = geometry_box->geometry_parameters.p_box_storage->y_vector; ^ "./Unit_test_abs_logger_event.c", line 12501: warning: variable "Y" was declared but never referenced [declared_but_not_referenced] double Y; ^ "./Unit_test_abs_logger_event.c", line 12502: warning: variable "max_r" was declared but never referenced [declared_but_not_referenced] double max_r; ^ "./Unit_test_abs_logger_event.c", line 12625: warning: variable "square_offset" was declared but never referenced [declared_but_not_referenced] double square_offset; ^ "./Unit_test_abs_logger_event.c", line 12891: warning: variable "debug_dist" was set but never used [set_but_not_used] double debug_dist; ^ "./Unit_test_abs_logger_event.c", line 12957: warning: variable "seperated" was declared but never referenced [declared_but_not_referenced] int seperated = 0; ^ "./Unit_test_abs_logger_event.c", line 13143: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Unit_test_abs_logger_event.c", line 13146: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Unit_test_abs_logger_event.c", line 13303: warning: variable "temp_pointer" was declared but never referenced [declared_but_not_referenced] int *temp_pointer; ^ "./Unit_test_abs_logger_event.c", line 13306: warning: variable "mask_global_index" was declared but never referenced [declared_but_not_referenced] int this_mask_status,mask_index,mask_global_index; ^ "./Unit_test_abs_logger_event.c", line 14225: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int mask_index,mask_mode,found_index,logic_ALL; ^ "./Unit_test_abs_logger_event.c", line 14134: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,mask_volume_number,mask_index; ^ "./Unit_test_abs_logger_event.c", line 14437: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,parent,mask_index,masked_volume_index,ANY_logic,true_parent_volume_number; ^ "./Unit_test_abs_logger_event.c", line 14627: warning: variable "found_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,iterate2,found_index,I_index,I_volume; ^ "./Unit_test_abs_logger_event.c", line 14776: warning: variable "string_output" was declared but never referenced [declared_but_not_referenced] char string_output[124]; ^ "./Unit_test_abs_logger_event.c", line 15180: warning: variable "mask_index" was declared but never referenced [declared_but_not_referenced] int volume_index,iterate,mask_index; ^ "./Unit_test_abs_logger_event.c", line 16065: warning: variable "count" is used before its value is set [used_before_set] for(line0=0; line0temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].x_pos = given_x_pos; ^ "./Unit_test_abs_logger_event.c", line 16834: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].y_pos = given_y_pos; ^ "./Unit_test_abs_logger_event.c", line 16835: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].z_pos = given_z_pos; ^ "./Unit_test_abs_logger_event.c", line 16836: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].x_vel = given_x_vel; ^ "./Unit_test_abs_logger_event.c", line 16837: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].y_vel = given_y_vel; ^ "./Unit_test_abs_logger_event.c", line 16838: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].z_vel = given_z_vel; ^ "./Unit_test_abs_logger_event.c", line 16839: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].x_pol = 0.0; ^ "./Unit_test_abs_logger_event.c", line 16840: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].y_pol = 0.0; ^ "./Unit_test_abs_logger_event.c", line 16841: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].z_pol = 1.0; ^ "./Unit_test_abs_logger_event.c", line 16842: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].time = time; ^ "./Unit_test_abs_logger_event.c", line 16843: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements++].weight = p; ^ "./Unit_test_abs_logger_event.c", line 16850: error: incomplete type "struct temp_abs_event_data_element_struct" is not allowed temporary_storage.elements = malloc(temporary_storage.num_elements*sizeof(struct temp_abs_event_data_element_struct)); ^ "./Unit_test_abs_logger_event.c", line 16854: error: expression must be a pointer to a complete object type temporary_storage.elements[index].x_pos = storage->temp_abs_event_data.elements[index].x_pos; ^ "./Unit_test_abs_logger_event.c", line 16854: error: expression must be a pointer to a complete object type temporary_storage.elements[index].x_pos = storage->temp_abs_event_data.elements[index].x_pos; ^ "./Unit_test_abs_logger_event.c", line 16855: error: expression must be a pointer to a complete object type temporary_storage.elements[index].y_pos = storage->temp_abs_event_data.elements[index].y_pos; ^ "./Unit_test_abs_logger_event.c", line 16855: error: expression must be a pointer to a complete object type temporary_storage.elements[index].y_pos = storage->temp_abs_event_data.elements[index].y_pos; ^ "./Unit_test_abs_logger_event.c", line 16856: error: expression must be a pointer to a complete object type temporary_storage.elements[index].z_pos = storage->temp_abs_event_data.elements[index].z_pos; ^ "./Unit_test_abs_logger_event.c", line 16856: error: expression must be a pointer to a complete object type temporary_storage.elements[index].z_pos = storage->temp_abs_event_data.elements[index].z_pos; ^ "./Unit_test_abs_logger_event.c", line 16857: error: expression must be a pointer to a complete object type temporary_storage.elements[index].x_vel = storage->temp_abs_event_data.elements[index].x_vel; ^ "./Unit_test_abs_logger_event.c", line 16857: error: expression must be a pointer to a complete object type temporary_storage.elements[index].x_vel = storage->temp_abs_event_data.elements[index].x_vel; ^ "./Unit_test_abs_logger_event.c", line 16858: error: expression must be a pointer to a complete object type temporary_storage.elements[index].y_vel = storage->temp_abs_event_data.elements[index].y_vel; ^ "./Unit_test_abs_logger_event.c", line 16858: error: expression must be a pointer to a complete object type temporary_storage.elements[index].y_vel = storage->temp_abs_event_data.elements[index].y_vel; ^ "./Unit_test_abs_logger_event.c", line 16859: error: expression must be a pointer to a complete object type temporary_storage.elements[index].z_vel = storage->temp_abs_event_data.elements[index].z_vel; ^ "./Unit_test_abs_logger_event.c", line 16859: error: expression must be a pointer to a complete object type temporary_storage.elements[index].z_vel = storage->temp_abs_event_data.elements[index].z_vel; ^ "./Unit_test_abs_logger_event.c", line 16860: error: expression must be a pointer to a complete object type temporary_storage.elements[index].x_pol = storage->temp_abs_event_data.elements[index].x_pol; ^ "./Unit_test_abs_logger_event.c", line 16860: error: expression must be a pointer to a complete object type temporary_storage.elements[index].x_pol = storage->temp_abs_event_data.elements[index].x_pol; ^ "./Unit_test_abs_logger_event.c", line 16861: error: expression must be a pointer to a complete object type temporary_storage.elements[index].y_pol = storage->temp_abs_event_data.elements[index].y_pol; ^ "./Unit_test_abs_logger_event.c", line 16861: error: expression must be a pointer to a complete object type temporary_storage.elements[index].y_pol = storage->temp_abs_event_data.elements[index].y_pol; ^ "./Unit_test_abs_logger_event.c", line 16862: error: expression must be a pointer to a complete object type temporary_storage.elements[index].z_pol = storage->temp_abs_event_data.elements[index].z_pol; ^ "./Unit_test_abs_logger_event.c", line 16862: error: expression must be a pointer to a complete object type temporary_storage.elements[index].z_pol = storage->temp_abs_event_data.elements[index].z_pol; ^ "./Unit_test_abs_logger_event.c", line 16863: error: expression must be a pointer to a complete object type temporary_storage.elements[index].time = storage->temp_abs_event_data.elements[index].time; ^ "./Unit_test_abs_logger_event.c", line 16863: error: expression must be a pointer to a complete object type temporary_storage.elements[index].time = storage->temp_abs_event_data.elements[index].time; ^ "./Unit_test_abs_logger_event.c", line 16864: error: expression must be a pointer to a complete object type temporary_storage.elements[index].weight = storage->temp_abs_event_data.elements[index].weight; ^ "./Unit_test_abs_logger_event.c", line 16864: error: expression must be a pointer to a complete object type temporary_storage.elements[index].weight = storage->temp_abs_event_data.elements[index].weight; ^ "./Unit_test_abs_logger_event.c", line 16872: error: incomplete type "struct temp_abs_event_data_element_struct" is not allowed storage->temp_abs_event_data.elements = malloc(storage->temp_abs_event_data.allocated_elements*sizeof(struct temp_abs_event_data_element_struct)); ^ "./Unit_test_abs_logger_event.c", line 16876: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].x_pos = temporary_storage.elements[index].x_pos; ^ "./Unit_test_abs_logger_event.c", line 16876: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].x_pos = temporary_storage.elements[index].x_pos; ^ "./Unit_test_abs_logger_event.c", line 16877: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].y_pos = temporary_storage.elements[index].y_pos; ^ "./Unit_test_abs_logger_event.c", line 16877: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].y_pos = temporary_storage.elements[index].y_pos; ^ "./Unit_test_abs_logger_event.c", line 16878: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].z_pos = temporary_storage.elements[index].z_pos; ^ "./Unit_test_abs_logger_event.c", line 16878: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].z_pos = temporary_storage.elements[index].z_pos; ^ "./Unit_test_abs_logger_event.c", line 16879: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].x_vel = temporary_storage.elements[index].x_vel; ^ "./Unit_test_abs_logger_event.c", line 16879: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].x_vel = temporary_storage.elements[index].x_vel; ^ "./Unit_test_abs_logger_event.c", line 16880: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].y_vel = temporary_storage.elements[index].y_vel; ^ "./Unit_test_abs_logger_event.c", line 16880: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].y_vel = temporary_storage.elements[index].y_vel; ^ "./Unit_test_abs_logger_event.c", line 16881: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].z_vel = temporary_storage.elements[index].z_vel; ^ "./Unit_test_abs_logger_event.c", line 16881: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].z_vel = temporary_storage.elements[index].z_vel; ^ "./Unit_test_abs_logger_event.c", line 16882: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].x_pol = temporary_storage.elements[index].x_pol; ^ "./Unit_test_abs_logger_event.c", line 16882: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].x_pol = temporary_storage.elements[index].x_pol; ^ "./Unit_test_abs_logger_event.c", line 16883: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].y_pol = temporary_storage.elements[index].y_pol; ^ "./Unit_test_abs_logger_event.c", line 16883: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].y_pol = temporary_storage.elements[index].y_pol; ^ "./Unit_test_abs_logger_event.c", line 16884: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].z_pol = temporary_storage.elements[index].z_pol; ^ "./Unit_test_abs_logger_event.c", line 16884: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].z_pol = temporary_storage.elements[index].z_pol; ^ "./Unit_test_abs_logger_event.c", line 16885: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].time = temporary_storage.elements[index].time; ^ "./Unit_test_abs_logger_event.c", line 16885: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].time = temporary_storage.elements[index].time; ^ "./Unit_test_abs_logger_event.c", line 16886: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].weight = temporary_storage.elements[index].weight; ^ "./Unit_test_abs_logger_event.c", line 16886: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[index].weight = temporary_storage.elements[index].weight; ^ "./Unit_test_abs_logger_event.c", line 16893: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].x_pos = given_x_pos; ^ "./Unit_test_abs_logger_event.c", line 16894: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].y_pos = given_y_pos; ^ "./Unit_test_abs_logger_event.c", line 16895: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].z_pos = given_z_pos; ^ "./Unit_test_abs_logger_event.c", line 16896: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].x_vel = given_x_vel; ^ "./Unit_test_abs_logger_event.c", line 16897: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].y_vel = given_y_vel; ^ "./Unit_test_abs_logger_event.c", line 16898: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].z_vel = given_z_vel; ^ "./Unit_test_abs_logger_event.c", line 16899: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].x_pol = 0.0; ^ "./Unit_test_abs_logger_event.c", line 16900: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].y_pol = 0.0; ^ "./Unit_test_abs_logger_event.c", line 16901: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].z_pol = 1.0; ^ "./Unit_test_abs_logger_event.c", line 16902: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements].time = time; ^ "./Unit_test_abs_logger_event.c", line 16903: error: expression must be a pointer to a complete object type storage->temp_abs_event_data.elements[storage->temp_abs_event_data.num_elements++].weight = p; ^ "./Unit_test_abs_logger_event.c", line 16822: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Unit_test_abs_logger_event.c", line 16970: warning: function "Monitor_nD_Trace" declared implicitly [implicit_func_decl] pp = Monitor_nD_Trace(&(storage->DEFS), &(storage->Vars), &_localparticle); ^ "./Unit_test_abs_logger_event.c", line 16969: warning: variable "pp" was set but never used [set_but_not_used] int pp; ^ "./Unit_test_abs_logger_event.c", line 16988: error: expression must be a pointer to a complete object type _localparticle.x = storage->temp_abs_event_data.elements[index].x_pos; ^ "./Unit_test_abs_logger_event.c", line 16989: error: expression must be a pointer to a complete object type _localparticle.y = storage->temp_abs_event_data.elements[index].y_pos; ^ "./Unit_test_abs_logger_event.c", line 16990: error: expression must be a pointer to a complete object type _localparticle.z = storage->temp_abs_event_data.elements[index].z_pos; ^ "./Unit_test_abs_logger_event.c", line 16992: error: expression must be a pointer to a complete object type _localparticle.vx = storage->temp_abs_event_data.elements[index].x_vel; ^ "./Unit_test_abs_logger_event.c", line 16993: error: expression must be a pointer to a complete object type _localparticle.vy = storage->temp_abs_event_data.elements[index].y_vel; ^ "./Unit_test_abs_logger_event.c", line 16994: error: expression must be a pointer to a complete object type _localparticle.vz = storage->temp_abs_event_data.elements[index].z_vel; ^ "./Unit_test_abs_logger_event.c", line 17000: error: expression must be a pointer to a complete object type _localparticle.p = storage->temp_abs_event_data.elements[index].weight; ^ "./Unit_test_abs_logger_event.c", line 17001: error: expression must be a pointer to a complete object type _localparticle.t = storage->temp_abs_event_data.elements[index].time; ^ "./Unit_test_abs_logger_event.c", line 17004: warning: function "Monitor_nD_Trace" declared implicitly [implicit_func_decl] pp = Monitor_nD_Trace(&(storage->DEFS), &(storage->Vars), &_localparticle); ^ "./Unit_test_abs_logger_event.c", line 17003: warning: variable "pp" was set but never used [set_but_not_used] int pp; ^ "./Unit_test_abs_logger_event.c", line 17021: error: expression must be a pointer to a complete object type _localparticle.x = storage->temp_abs_event_data.elements[index].x_pos; ^ "./Unit_test_abs_logger_event.c", line 17022: error: expression must be a pointer to a complete object type _localparticle.y = storage->temp_abs_event_data.elements[index].y_pos; ^ "./Unit_test_abs_logger_event.c", line 17023: error: expression must be a pointer to a complete object type _localparticle.z = storage->temp_abs_event_data.elements[index].z_pos; ^ "./Unit_test_abs_logger_event.c", line 17025: error: expression must be a pointer to a complete object type _localparticle.vx = storage->temp_abs_event_data.elements[index].x_vel; ^ "./Unit_test_abs_logger_event.c", line 17026: error: expression must be a pointer to a complete object type _localparticle.vy = storage->temp_abs_event_data.elements[index].y_vel; ^ "./Unit_test_abs_logger_event.c", line 17027: error: expression must be a pointer to a complete object type _localparticle.vz = storage->temp_abs_event_data.elements[index].z_vel; ^ "./Unit_test_abs_logger_event.c", line 17034: error: expression must be a pointer to a complete object type _localparticle.t = storage->temp_abs_event_data.elements[index].time; ^ "./Unit_test_abs_logger_event.c", line 17037: warning: function "Monitor_nD_Trace" declared implicitly [implicit_func_decl] pp = Monitor_nD_Trace(&(storage->DEFS), &(storage->Vars), &_localparticle); ^ "./Unit_test_abs_logger_event.c", line 17036: warning: variable "pp" was set but never used [set_but_not_used] int pp; ^ "./Unit_test_abs_logger_event.c", line 19468: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Unit_test_abs_logger_event.c", line 19468: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Unit_test_abs_logger_event.c", line 19468: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Unit_test_abs_logger_event.c", line 19468: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Unit_test_abs_logger_event.c", line 19468: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Unit_test_abs_logger_event.c", line 19468: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Unit_test_abs_logger_event.c", line 19825: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Unit_test_abs_logger_event.c", line 20731: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unit_test_abs_logger_event.c", line 20769: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unit_test_abs_logger_event.c", line 20825: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unit_test_abs_logger_event.c", line 20861: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unit_test_abs_logger_event.c", line 20897: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unit_test_abs_logger_event.c", line 21407: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unit_test_abs_logger_event.c", line 22901: warning: variable "is_cylinder" was set but never used [set_but_not_used] int is_cylinder = 0; ^ "./Unit_test_abs_logger_event.c", line 23027: warning: function "Monitor_nD_Init" declared implicitly [implicit_func_decl] Monitor_nD_Init(&this_abs_storage.DEFS, &this_abs_storage.Vars, 0.1, 0.1, 0, 0,0,0,0,0,0,0); /* dims for mcdisplay */ ^ "./Unit_test_abs_logger_event.c", line 23046: error: incomplete type "struct temp_abs_event_data_element_struct" is not allowed this_abs_storage.temp_abs_event_data.elements = malloc(this_abs_storage.temp_abs_event_data.allocated_elements*sizeof(struct temp_abs_event_data_element_struct)); ^ "./Unit_test_abs_logger_event.c", line 23091: warning: variable "process_index" was declared but never referenced [declared_but_not_referenced] int process_index; ^ "./Unit_test_abs_logger_event.c", line 25010: warning: variable "physics_output" was set but never used [set_but_not_used] int physics_output; ^ "./Unit_test_abs_logger_event.c", line 26542: warning: function "Monitor_nD_Save" declared implicitly [implicit_func_decl] Monitor_nD_Save(&this_abs_storage.DEFS, &this_abs_storage.Vars); ^ "./Unit_test_abs_logger_event.c", line 26831: warning: function "Monitor_nD_Finally" declared implicitly [implicit_func_decl] Monitor_nD_Finally(&this_abs_storage.DEFS, &this_abs_storage.Vars); ^ "./Unit_test_abs_logger_event.c", line 28146: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Unit_test_abs_logger_event.c", line 28147: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Unit_test_abs_logger_event.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Unit_test_abs_logger_event.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ 87 errors detected in the compilation of "./Unit_test_abs_logger_event.c". INFO: call to nvc failed with Command 'nvc -o ./Unit_test_abs_logger_event.out ./Unit_test_abs_logger_event.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 294, in prepare Process(lexer.quote(options.cc)).run(args) File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'nvc -o ./Unit_test_abs_logger_event.out ./Unit_test_abs_logger_event.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC' returned non-zero exit status 2.