INFO: No output directory specified (--dir) INFO: Using directory: "MAXIV_Bloch_20250514_060118" INFO: Regenerating c-file: MAXIV_Bloch.c WARNING: Full-path code-generator "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace-antlr -I${MCXTRACE}" not found!! WARNING: Attempting replacement by "mcxtrace-antlr -I${MCXTRACE}" DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} -t -o ./MAXIV_Bloch.c MAXIV_Bloch.instr 2025-05-14 06:02:30.340 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib :Mirror_toroid(0):read_table-lib :Mirror_toroid(1):reflectivity-lib :Mirror(0):read_table-lib :Mirror(1):reflectivity-lib :Mirror(2):interoff-lib :Grating_reflect(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Mirror_curved(0):read_table-lib :Mirror_curved(1):reflectivity-lib 2025-05-14 06:02:30.340 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib interoff-lib monitor_nd-lib 2025-05-14 06:02:30.341 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib monitor_nd-lib interoff-lib 2025-05-14 06:02:30.341 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib monitor_nd-lib interoff-lib 2025-05-14 06:02:30.341 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib monitor_nd-lib interoff-lib 2025-05-14 06:02:30.341 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib monitor_nd-lib interoff-lib 2025-05-14 06:02:30.341 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib monitor_nd-lib interoff-lib The instrument has 30 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component origin -> GPU kernel from component source_flat -> GPU kernel from component Source_E_monitor -> GPU kernel from component Source_psd_monitor -> GPU kernel from component M1_arm -> GPU kernel from component Mirror_toroid -> GPU kernel from component M1_perfect_mirror -> GPU kernel from component Toroidal_Monitor_arm1 -> GPU kernel from component Toroidal_Monitor_arm2 -> GPU kernel from component M1_E_monitor -> GPU kernel from component M1_psd_monitor -> GPU kernel from component cPGM_arm -> GPU kernel from component PG1_arm -> GPU kernel from component M2_rotation_arm1 -> GPU kernel from component M2_rotation_arm2 -> GPU kernel from component M2_rotation_arm3 -> GPU kernel from component mirror2 -> GPU kernel from component pg_a -> GPU kernel from component Plane_grating2 -> GPU kernel from component postPgmfpi -> GPU kernel from component psd2ma -> GPU kernel from component vbanana -> GPU kernel from component psd2m -> GPU kernel from component Monochromator_Monitor_arm -> GPU kernel from component Monochromator_E_monitor -> GPU kernel from component Monochromator_psd_monitor -> GPU kernel from component M3_arm -> GPU kernel from component m3Psd -> GPU kernel from component mirror3 -> GPU kernel from component Exit_slit_arm0 -> GPU kernel from component M4_arm1 -> GPU kernel from component M3_Monitor_arm -> GPU kernel from component M3_E_monitor -> GPU kernel from component M3_psd_monitor -> GPU kernel from component ExT_arm2 -> GPU kernel from component bef_slit -> GPU kernel from component Exitslit -> GPU kernel from component aft_slit -> GPU kernel from component M4Before_psd_monitor -> GPU kernel from component M4Before_e_monitor -> GPU kernel from component M4_arm2 -> GPU kernel from component mirror4 -> GPU kernel from component M4_Monitor_Arm -> GPU kernel from component M4_psd_monitor -> GPU kernel from component M4_e_monitor ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./MAXIV_Bloch.out DEBUG: CMD: mpicc -o ./MAXIV_Bloch.out ./MAXIV_Bloch.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm ./MAXIV_Bloch.c:6984:30: error: expected ')' before 'double' 6984 | double Table_Value2d(t_Table, double, double); | ^~~~~~~ | ) ./MAXIV_Bloch.c:7006:3: error: unknown type name 't_Table' 7006 | t_Table *T; | ^~~~~~~ ./MAXIV_Bloch.c:7013:3: error: unknown type name 't_Table' 7013 | t_Table *T; | ^~~~~~~ ./MAXIV_Bloch.c:7032:3: error: unknown type name 't_Table' 7032 | t_Table *T; | ^~~~~~~ ./MAXIV_Bloch.c:7080:40: error: unknown type name 't_Table' 7080 | enum reflec_Type get_table_reflec_type(t_Table *t); | ^~~~~~~ ./MAXIV_Bloch.c: In function 'reflec_Init': ./MAXIV_Bloch.c:8324:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 8324 | int N=(unsigned int)((double **) pars)[0]; | ^ ./MAXIV_Bloch.c: In function 'reflec_Init_File': ./MAXIV_Bloch.c:8423:15: warning: implicit declaration of function 'get_table_reflec_type' [-Wimplicit-function-declaration] 8423 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./MAXIV_Bloch.c:8453:26: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8453 | R->prms.rc.T = table; | ^ ./MAXIV_Bloch.c:8465:25: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8465 | R->prms.rqpm.T=table; | ^ ./MAXIV_Bloch.c:8507:27: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8507 | R->prms.rethpm.T=table; | ^ ./MAXIV_Bloch.c:8519:38: error: request for member 'rows' in something not a structure or union 8519 | int rows = R->prms.rethpm.T->rows; | ^~ ./MAXIV_Bloch.c:8520:38: error: request for member 'columns' in something not a structure or union 8520 | int cols = R->prms.rethpm.T->columns; | ^~ ./MAXIV_Bloch.c: At top level: ./MAXIV_Bloch.c:8550:18: error: conflicting types for 'get_table_reflec_type'; have 'enum reflec_Type(t_Table *)' {aka 'enum reflec_Type(struct struct_table *)'} 8550 | enum reflec_Type get_table_reflec_type(t_Table *t){ | ^~~~~~~~~~~~~~~~~~~~~ ./MAXIV_Bloch.c:8423:15: note: previous implicit declaration of 'get_table_reflec_type' with type 'int()' 8423 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./MAXIV_Bloch.c: In function 'reflec_coating': ./MAXIV_Bloch.c:8604:20: error: incompatible type for argument 1 of 'Table_Value' 8604 | f1=Table_Value(*(ptr->T),e,1); | ^~~~~~~~~ | | | int ./MAXIV_Bloch.c:7198:30: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7198 | double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ | ~~~~~~~~^~~~~ ./MAXIV_Bloch.c:8605:20: error: incompatible type for argument 1 of 'Table_Value' 8605 | f2=Table_Value(*(ptr->T),e,2); | ^~~~~~~~~ | | | int ./MAXIV_Bloch.c:7198:30: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7198 | double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ | ~~~~~~~~^~~~~ ./MAXIV_Bloch.c: In function 'reflec_q_prmtc': ./MAXIV_Bloch.c:8645:15: error: request for member 'columns' in something not a structure or union 8645 | if (ptr->T->columns>2){ | ^~ ./MAXIV_Bloch.c:8646:25: error: request for member 'columns' in something not a structure or union 8646 | double c=(ptr->T->columns-2)*g+1; | ^~ ./MAXIV_Bloch.c:8647:41: error: request for member 'rows' in something not a structure or union 8647 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~ ./MAXIV_Bloch.c:8647:25: error: incompatible type for argument 1 of 'Table_Value2d' 8647 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~~~~~~~~ | | | int ./MAXIV_Bloch.c:7205:32: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7205 | double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ | ~~~~~~~~^~~~~ ./MAXIV_Bloch.c:8649:23: error: incompatible type for argument 1 of 'Table_Value' 8649 | r=Table_Value(*(ptr->T),q,1); | ^~~~~~~~~ | | | int ./MAXIV_Bloch.c:7198:30: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7198 | double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ | ~~~~~~~~^~~~~ ./MAXIV_Bloch.c: In function 'reflec_eth_prmtc': ./MAXIV_Bloch.c:8657:15: error: request for member 'rows' in something not a structure or union 8657 | ec=(ptr->T->rows-1) * (e-ptr->emin)/(ptr->emax - ptr->emin); | ^~ ./MAXIV_Bloch.c:8658:16: error: request for member 'columns' in something not a structure or union 8658 | thc=(ptr->T->columns-1)*(th-ptr->thetamin)/(ptr->thetamax - ptr->thetamin); | ^~ ./MAXIV_Bloch.c:8659:21: error: incompatible type for argument 1 of 'Table_Value2d' 8659 | r=Table_Value2d(*(ptr->T),ec,thc); | ^~~~~~~~~ | | | int ./MAXIV_Bloch.c:7205:32: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7205 | double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ | ~~~~~~~~^~~~~ INFO: call to mpicc failed with Command 'mpicc -o ./MAXIV_Bloch.out ./MAXIV_Bloch.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm' returned non-zero exit status 1. Traceback (most recent call last): File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 616, in main() File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mxrun.py", line 524, in main mcstas.prepare(options) File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 311, in prepare Process(lexer.quote(options.cc)).run(args) File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 77, in run raise err File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/tools/Python/mxrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'mpicc -o ./MAXIV_Bloch.out ./MAXIV_Bloch.c -lm -DUSE_MPI -lmpi -fno-PIC -fPIE -flto -O3 -mtune=native -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm' returned non-zero exit status 1.