INFO: No output directory specified (--dir) INFO: Using directory: "Test_Mirrors_20250426_064128" INFO: Regenerating c-file: Test_Mirrors.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 ./Test_Mirrors.c Test_Mirrors.instr 2025-04-26 06:42:40.167 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib :Mirror(0):read_table-lib :Mirror(1):reflectivity-lib :Mirror(2):interoff-lib :Mirror_elliptic(0):perfect_crystals-lib :Mirror_elliptic(1):read_table-lib :Mirror_elliptic(2):reflectivity-lib :perfect_crystals-lib(0):read_table-lib :Mirror_curved(0):read_table-lib :Mirror_curved(1):reflectivity-lib :Mirror_toroid(0):read_table-lib :Mirror_toroid(1):reflectivity-lib :Mirror_toroid_pothole(0):read_table-lib :Mirror_toroid_pothole(1):reflectivity-lib :Multilayer_elliptic(0):read_table-lib :Multilayer_elliptic(1):reflectivity-lib 2025-04-26 06:42:40.168 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib perfect_crystals-lib interoff-lib 2025-04-26 06:42:40.168 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib 2025-04-26 06:42:40.168 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib interoff-lib 2025-04-26 06:42:40.168 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib interoff-lib perfect_crystals-lib The instrument has 5 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component src -> GPU kernel from component psd0 -> GPU kernel from component mirror_stage -> GPU kernel from component mt0_flat -> GPU kernel from component mt1_ellip -> GPU kernel from component mt2_parab -> GPU kernel from component mt3_curved -> GPU kernel from component mt4_toroid -> GPU kernel from component mt5_toroid_pot -> GPU kernel from component mt6_multilayer -> GPU kernel from component mirror_out -> GPU kernel from component psd1 -> GPU kernel from component psd2 -> GPU kernel from component psd3 ----------------------------------------------------------- CFLAGS= -std=c99 DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./Test_Mirrors.out DEBUG: CMD: mpicc -o ./Test_Mirrors.out ./Test_Mirrors.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 -std=c99 ./Test_Mirrors.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./Test_Mirrors.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./Test_Mirrors.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./Test_Mirrors.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./Test_Mirrors.c:6970:30: error: expected ')' before 'double' 6970 | double Table_Value2d(t_Table, double, double); | ^~~~~~~ | ) ./Test_Mirrors.c:6992:3: error: unknown type name 't_Table' 6992 | t_Table *T; | ^~~~~~~ ./Test_Mirrors.c:6999:3: error: unknown type name 't_Table' 6999 | t_Table *T; | ^~~~~~~ ./Test_Mirrors.c:7018:3: error: unknown type name 't_Table' 7018 | t_Table *T; | ^~~~~~~ ./Test_Mirrors.c:7066:40: error: unknown type name 't_Table' 7066 | enum reflec_Type get_table_reflec_type(t_Table *t); | ^~~~~~~ ./Test_Mirrors.c: In function 'reflec_Init': ./Test_Mirrors.c:8045:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 8045 | int N=(unsigned int)((double **) pars)[0]; | ^ ./Test_Mirrors.c: In function 'reflec_Init_File': ./Test_Mirrors.c:8144:15: warning: implicit declaration of function 'get_table_reflec_type' [-Wimplicit-function-declaration] 8144 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./Test_Mirrors.c:8174:26: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8174 | R->prms.rc.T = table; | ^ ./Test_Mirrors.c:8186:25: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8186 | R->prms.rqpm.T=table; | ^ ./Test_Mirrors.c:8228:27: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8228 | R->prms.rethpm.T=table; | ^ ./Test_Mirrors.c:8240:38: error: request for member 'rows' in something not a structure or union 8240 | int rows = R->prms.rethpm.T->rows; | ^~ ./Test_Mirrors.c:8241:38: error: request for member 'columns' in something not a structure or union 8241 | int cols = R->prms.rethpm.T->columns; | ^~ ./Test_Mirrors.c: At top level: ./Test_Mirrors.c:8271:18: error: conflicting types for 'get_table_reflec_type'; have 'enum reflec_Type(t_Table *)' {aka 'enum reflec_Type(struct struct_table *)'} 8271 | enum reflec_Type get_table_reflec_type(t_Table *t){ | ^~~~~~~~~~~~~~~~~~~~~ ./Test_Mirrors.c:8144:15: note: previous implicit declaration of 'get_table_reflec_type' with type 'int()' 8144 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./Test_Mirrors.c: In function 'reflec_coating': ./Test_Mirrors.c:8325:20: error: incompatible type for argument 1 of 'Table_Value' 8325 | f1=Table_Value(*(ptr->T),e,1); | ^~~~~~~~~ | | | int ./Test_Mirrors.c:7184:30: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7184 | double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ | ~~~~~~~~^~~~~ ./Test_Mirrors.c:8326:20: error: incompatible type for argument 1 of 'Table_Value' 8326 | f2=Table_Value(*(ptr->T),e,2); | ^~~~~~~~~ | | | int ./Test_Mirrors.c:7184:30: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7184 | double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ | ~~~~~~~~^~~~~ ./Test_Mirrors.c: In function 'reflec_q_prmtc': ./Test_Mirrors.c:8366:15: error: request for member 'columns' in something not a structure or union 8366 | if (ptr->T->columns>2){ | ^~ ./Test_Mirrors.c:8367:25: error: request for member 'columns' in something not a structure or union 8367 | double c=(ptr->T->columns-2)*g+1; | ^~ ./Test_Mirrors.c:8368:41: error: request for member 'rows' in something not a structure or union 8368 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~ ./Test_Mirrors.c:8368:25: error: incompatible type for argument 1 of 'Table_Value2d' 8368 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~~~~~~~~ | | | int ./Test_Mirrors.c:7191:32: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7191 | double Table_Value2d(t_Table Table, double X, double Y); /* same as Table_Index with non-integer indices and 2d interpolation */ | ~~~~~~~~^~~~~ ./Test_Mirrors.c:8370:23: error: incompatible type for argument 1 of 'Table_Value' 8370 | r=Table_Value(*(ptr->T),q,1); | ^~~~~~~~~ | | | int ./Test_Mirrors.c:7184:30: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7184 | double Table_Value(t_Table Table, double X, long j); /* search X in 1st column and return interpolated value in j-column */ | ~~~~~~~~^~~~~ ./Test_Mirrors.c: In function 'reflec_eth_prmtc': ./Test_Mirrors.c:8378:15: error: request for member 'rows' in something not a structure or union 8378 | ec=(ptr->T->rows-1) * (e-ptr->emin)/(ptr->emax - ptr->emin); | ^~ ./Test_Mirrors.c:8379:16: error: request for member 'columns' in something not a structure or union 8379 | thc=(ptr->T->columns-1)*(th-ptr->thetamin)/(ptr->thetamax - ptr->thetamin); | ^~ ./Test_Mirrors.c:8380:21: error: incompatible type for argument 1 of 'Table_Value2d' 8380 | r=Table_Value2d(*(ptr->T),ec,thc); | ^~~~~~~~~ | | | int ./Test_Mirrors.c:7191:32: note: expected 't_Table' {aka 'struct struct_table'} but argument is of type 'int' 7191 | 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 ./Test_Mirrors.out ./Test_Mirrors.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 -std=c99' 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 ./Test_Mirrors.out ./Test_Mirrors.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 -std=c99' returned non-zero exit status 1.