INFO: No output directory specified (--dir) INFO: Using directory: "Test_ML_elliptic_20250505_063936" INFO: Regenerating c-file: Test_ML_elliptic.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_ML_elliptic.c Test_ML_elliptic.instr 2025-05-05 06:40:08.137 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_flat(0):read_table-lib :Multilayer_elliptic(0):read_table-lib :Multilayer_elliptic(1):reflectivity-lib 2025-05-05 06:40:08.137 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib 2025-05-05 06:40:08.137 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib reflectivity-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component source -> GPU kernel from component psd0 -> GPU kernel from component emon0 -> GPU kernel from component a1 -> GPU kernel from component ml0 -> GPU kernel from component ml1 -> GPU kernel from component a2 -> GPU kernel from component psd1 -> GPU kernel from component emon1 -> GPU kernel from component psdd -> GPU kernel from component emond -> GPU kernel from component emonsingle -> GPU kernel from component psd6 -> GPU kernel from component emon6 ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./Test_ML_elliptic.out DEBUG: CMD: mpicc -o ./Test_ML_elliptic.out ./Test_ML_elliptic.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 ./Test_ML_elliptic.c:868:19: error: unknown type name 'randstate_t' 868 | double _randnorm2(randstate_t* state); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:891:1: error: unknown type name 'randstate_t' 891 | randstate_t _hash(randstate_t x); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:891:19: error: unknown type name 'randstate_t' 891 | randstate_t _hash(randstate_t x); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:895:16: error: unknown type name 'randstate_t' 895 | double _rand01(randstate_t* state); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:897:17: error: unknown type name 'randstate_t' 897 | double _randpm1(randstate_t* state); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:899:30: error: unknown type name 'randstate_t' 899 | double _rand0max(double max, randstate_t* state); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:901:44: error: unknown type name 'randstate_t' 901 | double _randminmax(double min, double max, randstate_t* state); | ^~~~~~~~~~~ ./Test_ML_elliptic.c:903:22: error: unknown type name 'randstate_t' 903 | double _randtriangle(randstate_t* state); | ^~~~~~~~~~~ ./Test_ML_elliptic.c: In function '_randvec_target_circle': ./Test_ML_elliptic.c:874:22: warning: implicit declaration of function '_rand0max'; did you mean 'rand0max'? [-Wimplicit-function-declaration] 874 | #define rand0max(p1) _rand0max(p1, _particle->randstate) | ^~~~~~~~~ ./Test_ML_elliptic.c:5315:22: note: in expansion of macro 'rand0max' 5315 | theta = acos(1 - rand0max(2)); | ^~~~~~~~ ./Test_ML_elliptic.c: In function '_randvec_target_rect_angular': ./Test_ML_elliptic.c:873:19: warning: implicit declaration of function '_randpm1'; did you mean 'randpm1'? [-Wimplicit-function-declaration] 873 | #define randpm1() _randpm1(_particle->randstate) | ^~~~~~~~ ./Test_ML_elliptic.c:5402:19: note: in expansion of macro 'randpm1' 5402 | phi = width*randpm1()/2.0; | ^~~~~~~ ./Test_ML_elliptic.c: At top level: ./Test_ML_elliptic.c:5768:1: error: unknown type name 'randstate_t' 5768 | randstate_t _hash(randstate_t x) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5768:19: error: unknown type name 'randstate_t' 5768 | randstate_t _hash(randstate_t x) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5781:18: error: unknown type name 'randstate_t' 5781 | double _randnorm(randstate_t* state) | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5809:19: error: unknown type name 'randstate_t' 5809 | double _randnorm2(randstate_t* state) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5820:22: error: unknown type name 'randstate_t' 5820 | double _randtriangle(randstate_t* state) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5825:16: error: unknown type name 'randstate_t' 5825 | double _rand01(randstate_t* state) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5833:17: error: unknown type name 'randstate_t' 5833 | double _randpm1(randstate_t* state) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5841:30: error: unknown type name 'randstate_t' 5841 | double _rand0max(double max, randstate_t* state) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c:5848:44: error: unknown type name 'randstate_t' 5848 | double _randminmax(double min, double max, randstate_t* state) { | ^~~~~~~~~~~ ./Test_ML_elliptic.c: In function 'reflec_Init': ./Test_ML_elliptic.c:9017:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 9017 | int N=(unsigned int)((double **) pars)[0]; | ^ ./Test_ML_elliptic.c: In function 'class_Source_flat_trace': ./Test_ML_elliptic.c:872:18: warning: implicit declaration of function '_rand01'; did you mean 'rand01'? [-Wimplicit-function-declaration] 872 | #define rand01() _rand01(_particle->randstate) | ^~~~~~~ ./Test_ML_elliptic.c:11035:25: note: in expansion of macro 'rand01' 11035 | x = xmin + xwidth*rand01(); | ^~~~~~ ./Test_ML_elliptic.c:871:20: warning: implicit declaration of function '_randnorm2'; did you mean 'randnorm'? [-Wimplicit-function-declaration] 871 | #define randnorm() _randnorm2(_particle->randstate) // NOTE: can't use _randnorm on GPU | ^~~~~~~~~~ ./Test_ML_elliptic.c:11072:15: note: in expansion of macro 'randnorm' 11072 | e=E0+dE*randnorm(); | ^~~~~~~~ INFO: call to mpicc failed with Command 'mpicc -o ./Test_ML_elliptic.out ./Test_ML_elliptic.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 <module> 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_ML_elliptic.out ./Test_ML_elliptic.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.