INFO: No output directory specified (--dir) INFO: Using directory: "SOLEIL_ROCK_20250426_062205" INFO: Regenerating c-file: SOLEIL_ROCK.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 ./SOLEIL_ROCK.c SOLEIL_ROCK.instr 2025-04-26 06:23:14.001 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Mirror_toroid_pothole(0):read_table-lib :Mirror_toroid_pothole(1):reflectivity-lib :Mirror(0):read_table-lib :Mirror(1):reflectivity-lib :Mirror(2):interoff-lib :Bragg_crystal(0):perfect_crystals-lib :perfect_crystals-lib(0):read_table-lib :Mirror_curved(0):read_table-lib :Mirror_curved(1):reflectivity-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Fluorescence(0):read_table-lib 2025-04-26 06:23:14.002 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib perfect_crystals-lib monitor_nd-lib interoff-lib 2025-04-26 06:23:14.002 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib monitor_nd-lib interoff-lib 2025-04-26 06:23:14.002 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib monitor_nd-lib interoff-lib perfect_crystals-lib 2025-04-26 06:23:14.002 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib perfect_crystals-lib interoff-lib monitor_nd-lib 2025-04-26 06:23:14.003 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib perfect_crystals-lib monitor_nd-lib interoff-lib 2025-04-26 06:23:14.003 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib perfect_crystals-lib monitor_nd-lib interoff-lib line 2:2 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} 2025-04-26 06:23:15.791 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,2 2025-04-26 06:23:15.791 | 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} 2025-04-26 06:23:15.791 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-04-26 06:23:15.791 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #ifndef FLUORESCENCE_DECL line 2:11 no viable alternative at input 'include "interoff-lib"' 2025-04-26 06:23:15.825 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,11 2025-04-26 06:23:15.825 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~~~~~~^ no viable alternative at input 'include "interoff-lib"' 2025-04-26 06:23:15.825 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-04-26 06:23:15.825 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - #ifndef FLUORESCENCE_DECL 2025-04-26 06:23:16.158 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('XRAYLIB_LINES_MAX+1',) due to invalid literal for int() with base 10: 'XRAYLIB_LINES_MAX+1' The instrument has 9 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component absorption_sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component slit1 -> GPU kernel from component slit2 -> GPU kernel from component mirror_m1 -> GPU kernel from component mirror_m1_out -> GPU kernel from component slit3_xy -> GPU kernel from component slit3_div -> GPU kernel from component slit3 -> GPU kernel from component mirror_m2a -> GPU kernel from component mirror_m2a_out -> GPU kernel from component slit4_in -> GPU kernel from component slit4 -> GPU kernel from component arm_crystal0 -> GPU kernel from component bragg_crystal -> GPU kernel from component arm_crystal1 -> GPU kernel from component bragg_crystal_two -> GPU kernel from component arm_crystal2 -> GPU kernel from component bragg_crystal_out -> GPU kernel from component slit5 -> GPU kernel from component slit6 -> GPU kernel from component mirror_m2b -> GPU kernel from component mirror_m2b_out -> GPU kernel from component EnergyMonitor_before_sample -> GPU kernel from component e_repartition_after_m2b -> GPU kernel from component sample_in Component absorption_sample is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> SPLIT within buffer at component absorption_sample -> GPU kernel from component EnergyMonitor_after_sample -> GPU kernel from component psd_monitor ----------------------------------------------------------- CFLAGS= -lxrl -DUSE_OFF -std=c99 -DFUNNEL DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./SOLEIL_ROCK.out DEBUG: CMD: mpicc -o ./SOLEIL_ROCK.out ./SOLEIL_ROCK.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 -lxrl -DUSE_OFF -std=c99 -DFUNNEL ./SOLEIL_ROCK.c:5619:6: error: conflicting types for 'mt_srandom'; have 'void(uint32_t)' {aka 'void(unsigned int)'} 5619 | void mt_srandom(uint32_t seed) { | ^~~~~~~~~~ ./SOLEIL_ROCK.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./SOLEIL_ROCK.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./SOLEIL_ROCK.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./SOLEIL_ROCK.c:6970:30: error: expected ')' before 'double' 6970 | double Table_Value2d(t_Table, double, double); | ^~~~~~~ | ) ./SOLEIL_ROCK.c:6992:3: error: unknown type name 't_Table' 6992 | t_Table *T; | ^~~~~~~ ./SOLEIL_ROCK.c:6999:3: error: unknown type name 't_Table' 6999 | t_Table *T; | ^~~~~~~ ./SOLEIL_ROCK.c:7018:3: error: unknown type name 't_Table' 7018 | t_Table *T; | ^~~~~~~ ./SOLEIL_ROCK.c:7066:40: error: unknown type name 't_Table' 7066 | enum reflec_Type get_table_reflec_type(t_Table *t); | ^~~~~~~ ./SOLEIL_ROCK.c:7790:3: error: expected identifier or '(' before '%' token 7790 | %include "interoff-lib" // for OFF/PLY geometry | ^ In file included from /home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include/xraylib/xraylib.h:56, from ./SOLEIL_ROCK.c:7803: /home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include/xraylib/xraylib-error.h:29:3: warning: data definition has no type or storage class 29 | } xrl_error_code; | ^~~~~~~~~~~~~~ /home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include/xraylib/xraylib-error.h:29:3: warning: type defaults to 'int' in declaration of 'xrl_error_code' [-Wimplicit-int] /home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include/xraylib/xraylib-error.h:44:3: error: expected specifier-qualifier-list before 'xrl_error_code' 44 | xrl_error_code code; | ^~~~~~~~~~~~~~ /home/nexmap/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include/xraylib/xraylib-error.h:55:47: error: expected declaration specifiers or '...' before 'xrl_error_code' 55 | int xrl_error_matches(const xrl_error *error, xrl_error_code code); | ^~~~~~~~~~~~~~ ./SOLEIL_ROCK.c: In function 'fluo_get_material': ./SOLEIL_ROCK.c:7935:18: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 7935 | FILE *file = Open_File(filename, "r", NULL); | ^~~~~~~~~ ./SOLEIL_ROCK.c:7935:18: warning: initialization of 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] ./SOLEIL_ROCK.c: In function 'reflec_Init': ./SOLEIL_ROCK.c:8607:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 8607 | int N=(unsigned int)((double **) pars)[0]; | ^ ./SOLEIL_ROCK.c: In function 'reflec_Init_File': ./SOLEIL_ROCK.c:8706:15: warning: implicit declaration of function 'get_table_reflec_type' [-Wimplicit-function-declaration] 8706 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./SOLEIL_ROCK.c:8736:26: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8736 | R->prms.rc.T = table; | ^ ./SOLEIL_ROCK.c:8748:25: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8748 | R->prms.rqpm.T=table; | ^ ./SOLEIL_ROCK.c:8790:27: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8790 | R->prms.rethpm.T=table; | ^ ./SOLEIL_ROCK.c:8802:38: error: request for member 'rows' in something not a structure or union 8802 | int rows = R->prms.rethpm.T->rows; | ^~ ./SOLEIL_ROCK.c:8803:38: error: request for member 'columns' in something not a structure or union 8803 | int cols = R->prms.rethpm.T->columns; | ^~ ./SOLEIL_ROCK.c: At top level: ./SOLEIL_ROCK.c:8833:18: error: conflicting types for 'get_table_reflec_type'; have 'enum reflec_Type(t_Table *)' {aka 'enum reflec_Type(struct struct_table *)'} 8833 | enum reflec_Type get_table_reflec_type(t_Table *t){ | ^~~~~~~~~~~~~~~~~~~~~ ./SOLEIL_ROCK.c:8706:15: note: previous implicit declaration of 'get_table_reflec_type' with type 'int()' 8706 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./SOLEIL_ROCK.c: In function 'reflec_coating': ./SOLEIL_ROCK.c:8887:20: error: incompatible type for argument 1 of 'Table_Value' 8887 | f1=Table_Value(*(ptr->T),e,1); | ^~~~~~~~~ | | | int ./SOLEIL_ROCK.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_ROCK.c:8888:20: error: incompatible type for argument 1 of 'Table_Value' 8888 | f2=Table_Value(*(ptr->T),e,2); | ^~~~~~~~~ | | | int ./SOLEIL_ROCK.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_ROCK.c: In function 'reflec_q_prmtc': ./SOLEIL_ROCK.c:8928:15: error: request for member 'columns' in something not a structure or union 8928 | if (ptr->T->columns>2){ | ^~ ./SOLEIL_ROCK.c:8929:25: error: request for member 'columns' in something not a structure or union 8929 | double c=(ptr->T->columns-2)*g+1; | ^~ ./SOLEIL_ROCK.c:8930:41: error: request for member 'rows' in something not a structure or union 8930 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~ ./SOLEIL_ROCK.c:8930:25: error: incompatible type for argument 1 of 'Table_Value2d' 8930 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~~~~~~~~ | | | int ./SOLEIL_ROCK.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_ROCK.c:8932:23: error: incompatible type for argument 1 of 'Table_Value' 8932 | r=Table_Value(*(ptr->T),q,1); | ^~~~~~~~~ | | | int ./SOLEIL_ROCK.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_ROCK.c: In function 'reflec_eth_prmtc': ./SOLEIL_ROCK.c:8940:15: error: request for member 'rows' in something not a structure or union 8940 | ec=(ptr->T->rows-1) * (e-ptr->emin)/(ptr->emax - ptr->emin); | ^~ ./SOLEIL_ROCK.c:8941:16: error: request for member 'columns' in something not a structure or union 8941 | thc=(ptr->T->columns-1)*(th-ptr->thetamin)/(ptr->thetamax - ptr->thetamin); | ^~ ./SOLEIL_ROCK.c:8942:21: error: incompatible type for argument 1 of 'Table_Value2d' 8942 | r=Table_Value2d(*(ptr->T),ec,thc); | ^~~~~~~~~ | | | int ./SOLEIL_ROCK.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_ROCK.c: At top level: ./SOLEIL_ROCK.c:9285:9: error: conflicting types for 'Open_File'; have 'FILE *(char *, const char *, char *)' 9285 | FILE *Open_File(char *File, const char *Mode, char *Path) | ^~~~~~~~~ ./SOLEIL_ROCK.c:7935:18: note: previous implicit declaration of 'Open_File' with type 'int()' 7935 | FILE *file = Open_File(filename, "r", NULL); | ^~~~~~~~~ ./SOLEIL_ROCK.c: In function 'class_Fluorescence_initialize': ./SOLEIL_ROCK.c:17075:41: error: 'xrl_error' {aka 'struct _xrl_error'} has no member named 'message' 17075 | NAME_CURRENT_COMP, material, error->message)); | ^~ ./SOLEIL_ROCK.c:622:10: note: in definition of macro 'exit' 622 | exit(code); \ | ^~~~ ./SOLEIL_ROCK.c:17100:79: error: 'xrl_error' {aka 'struct _xrl_error'} has no member named 'message' 17100 | exit(fprintf(stderr, "ERROR: %s: Z=%i %s\n", NAME_CURRENT_COMP, Z, error->message)); | ^~ ./SOLEIL_ROCK.c:622:10: note: in definition of macro 'exit' 622 | exit(code); \ | ^~~~ INFO: call to mpicc failed with Command 'mpicc -o ./SOLEIL_ROCK.out ./SOLEIL_ROCK.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 -lxrl -DUSE_OFF -std=c99 -DFUNNEL' 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 ./SOLEIL_ROCK.out ./SOLEIL_ROCK.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 -lxrl -DUSE_OFF -std=c99 -DFUNNEL' returned non-zero exit status 1.