INFO: No output directory specified (--dir) INFO: Using directory: "SOLEIL_CASSIOPEE_20250514_061640" INFO: Regenerating c-file: SOLEIL_CASSIOPEE.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_CASSIOPEE.c SOLEIL_CASSIOPEE.instr 2025-05-14 06:17:30.348 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :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 :Grating_reflect(0):read_table-lib :Mirror(0):read_table-lib :Mirror(1):reflectivity-lib :Mirror(2):interoff-lib 2025-05-14 06:17:30.348 | 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:17:30.349 | 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:17:30.349 | 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:17:30.349 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to reflectivity-lib read_table-lib monitor_nd-lib interoff-lib The instrument has 10 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin Component Source_HU60 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. Component Source_HU256 is NOACC, CPUONLY=True ->FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Source_HU256 -> GPU kernel from component M1a -> GPU kernel from component M1a_out -> GPU kernel from component M1b -> GPU kernel from component M1c -> GPU kernel from component M1bc_out -> GPU kernel from component PSD_M1out -> GPU kernel from component PG_location -> GPU kernel from component PG -> GPU kernel from component M2_rotation_axis -> GPU kernel from component M2 -> GPU kernel from component PM_takeoff -> GPU kernel from component slit -> GPU kernel from component M4 -> GPU kernel from component PSD ----------------------------------------------------------- CFLAGS= -DFUNNEL -lgsl -lgslcblas DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./SOLEIL_CASSIOPEE.out DEBUG: CMD: mpicc -o ./SOLEIL_CASSIOPEE.out ./SOLEIL_CASSIOPEE.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 -DFUNNEL -lgsl -lgslcblas ./SOLEIL_CASSIOPEE.c:6984:30: error: expected ')' before 'double' 6984 | double Table_Value2d(t_Table, double, double); | ^~~~~~~ | ) ./SOLEIL_CASSIOPEE.c:7006:3: error: unknown type name 't_Table' 7006 | t_Table *T; | ^~~~~~~ ./SOLEIL_CASSIOPEE.c:7013:3: error: unknown type name 't_Table' 7013 | t_Table *T; | ^~~~~~~ ./SOLEIL_CASSIOPEE.c:7032:3: error: unknown type name 't_Table' 7032 | t_Table *T; | ^~~~~~~ ./SOLEIL_CASSIOPEE.c:7080:40: error: unknown type name 't_Table' 7080 | enum reflec_Type get_table_reflec_type(t_Table *t); | ^~~~~~~ ./SOLEIL_CASSIOPEE.c: In function 'reflec_Init': ./SOLEIL_CASSIOPEE.c:8123:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 8123 | int N=(unsigned int)((double **) pars)[0]; | ^ ./SOLEIL_CASSIOPEE.c: In function 'reflec_Init_File': ./SOLEIL_CASSIOPEE.c:8222:15: warning: implicit declaration of function 'get_table_reflec_type' [-Wimplicit-function-declaration] 8222 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./SOLEIL_CASSIOPEE.c:8252:26: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8252 | R->prms.rc.T = table; | ^ ./SOLEIL_CASSIOPEE.c:8264:25: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8264 | R->prms.rqpm.T=table; | ^ ./SOLEIL_CASSIOPEE.c:8306:27: warning: assignment to 'int *' from incompatible pointer type 't_Table *' {aka 'struct struct_table *'} [-Wincompatible-pointer-types] 8306 | R->prms.rethpm.T=table; | ^ ./SOLEIL_CASSIOPEE.c:8318:38: error: request for member 'rows' in something not a structure or union 8318 | int rows = R->prms.rethpm.T->rows; | ^~ ./SOLEIL_CASSIOPEE.c:8319:38: error: request for member 'columns' in something not a structure or union 8319 | int cols = R->prms.rethpm.T->columns; | ^~ ./SOLEIL_CASSIOPEE.c: At top level: ./SOLEIL_CASSIOPEE.c:8349:18: error: conflicting types for 'get_table_reflec_type'; have 'enum reflec_Type(t_Table *)' {aka 'enum reflec_Type(struct struct_table *)'} 8349 | enum reflec_Type get_table_reflec_type(t_Table *t){ | ^~~~~~~~~~~~~~~~~~~~~ ./SOLEIL_CASSIOPEE.c:8222:15: note: previous implicit declaration of 'get_table_reflec_type' with type 'int()' 8222 | R->type=get_table_reflec_type(table); | ^~~~~~~~~~~~~~~~~~~~~ ./SOLEIL_CASSIOPEE.c: In function 'reflec_coating': ./SOLEIL_CASSIOPEE.c:8403:20: error: incompatible type for argument 1 of 'Table_Value' 8403 | f1=Table_Value(*(ptr->T),e,1); | ^~~~~~~~~ | | | int ./SOLEIL_CASSIOPEE.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_CASSIOPEE.c:8404:20: error: incompatible type for argument 1 of 'Table_Value' 8404 | f2=Table_Value(*(ptr->T),e,2); | ^~~~~~~~~ | | | int ./SOLEIL_CASSIOPEE.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_CASSIOPEE.c: In function 'reflec_q_prmtc': ./SOLEIL_CASSIOPEE.c:8444:15: error: request for member 'columns' in something not a structure or union 8444 | if (ptr->T->columns>2){ | ^~ ./SOLEIL_CASSIOPEE.c:8445:25: error: request for member 'columns' in something not a structure or union 8445 | double c=(ptr->T->columns-2)*g+1; | ^~ ./SOLEIL_CASSIOPEE.c:8446:41: error: request for member 'rows' in something not a structure or union 8446 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~ ./SOLEIL_CASSIOPEE.c:8446:25: error: incompatible type for argument 1 of 'Table_Value2d' 8446 | r=Table_Value2d(*(ptr->T),ptr->T->rows*q/(ptr->qmax-ptr->qmin),c); | ^~~~~~~~~ | | | int ./SOLEIL_CASSIOPEE.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_CASSIOPEE.c:8448:23: error: incompatible type for argument 1 of 'Table_Value' 8448 | r=Table_Value(*(ptr->T),q,1); | ^~~~~~~~~ | | | int ./SOLEIL_CASSIOPEE.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 */ | ~~~~~~~~^~~~~ ./SOLEIL_CASSIOPEE.c: In function 'reflec_eth_prmtc': ./SOLEIL_CASSIOPEE.c:8456:15: error: request for member 'rows' in something not a structure or union 8456 | ec=(ptr->T->rows-1) * (e-ptr->emin)/(ptr->emax - ptr->emin); | ^~ ./SOLEIL_CASSIOPEE.c:8457:16: error: request for member 'columns' in something not a structure or union 8457 | thc=(ptr->T->columns-1)*(th-ptr->thetamin)/(ptr->thetamax - ptr->thetamin); | ^~ ./SOLEIL_CASSIOPEE.c:8458:21: error: incompatible type for argument 1 of 'Table_Value2d' 8458 | r=Table_Value2d(*(ptr->T),ec,thc); | ^~~~~~~~~ | | | int ./SOLEIL_CASSIOPEE.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 ./SOLEIL_CASSIOPEE.out ./SOLEIL_CASSIOPEE.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 -DFUNNEL -lgsl -lgslcblas' 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_CASSIOPEE.out ./SOLEIL_CASSIOPEE.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 -DFUNNEL -lgsl -lgslcblas' returned non-zero exit status 1.