INFO: No output directory specified (--dir) INFO: Using directory: "Test_source_spectra_20250426_065936" INFO: Regenerating c-file: Test_source_spectra.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_source_spectra.c Test_source_spectra.instr 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:59:54.402 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,2 2025-04-26 06:59:54.402 | 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:59:54.403 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-04-26 06:59:54.403 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - int source_spectra_find_offset(char * fn){ line 2:11 no viable alternative at input 'include "read_table-lib"' 2025-04-26 06:59:54.456 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 2,11 2025-04-26 06:59:54.457 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~~~~~~~~^ no viable alternative at input 'include "read_table-lib"' 2025-04-26 06:59:54.457 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - 2025-04-26 06:59:54.457 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - int source_spectra_find_offset(char * fn){ 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 ss -> GPU kernel from component ss4d -> GPU kernel from component psd0 -> GPU kernel from component emon0 -> GPU kernel from component psd1 -> GPU kernel from component psd2 ----------------------------------------------------------- DEBUG: CMD: mcxtrace-antlr -I${MCXTRACE} finished INFO: Recompiling: ./Test_source_spectra.out DEBUG: CMD: mpicc -o ./Test_source_spectra.out ./Test_source_spectra.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_source_spectra.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_source_spectra.c:887:6: note: previous declaration of 'mt_srandom' with type 'void(long unsigned int)' 887 | void mt_srandom (unsigned long x); | ^~~~~~~~~~ ./Test_source_spectra.c:5657:10: error: conflicting types for 'mt_random'; have 'uint32_t(void)' {aka 'unsigned int(void)'} 5657 | uint32_t mt_random(void) { | ^~~~~~~~~ ./Test_source_spectra.c:886:15: note: previous declaration of 'mt_random' with type 'long unsigned int(void)' 886 | unsigned long mt_random(void); | ^~~~~~~~~ ./Test_source_spectra.c:7014:3: error: expected identifier or '(' before '%' token 7014 | %include "read_table-lib"; | ^ ./Test_source_spectra.c: In function 'source_spectra_find_offset': ./Test_source_spectra.c:7024:15: warning: implicit declaration of function 'Open_File' [-Wimplicit-function-declaration] 7024 | if( (fs=Open_File(fn,"rb",NULL))==NULL){ | ^~~~~~~~~ ./Test_source_spectra.c:7024:14: warning: assignment to 'FILE *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 7024 | if( (fs=Open_File(fn,"rb",NULL))==NULL){ | ^ ./Test_source_spectra.c: At top level: ./Test_source_spectra.c:7057:33: error: unknown type name 't_Table' 7057 | double interpolate_4d_spectra(t_Table data, int *idx,int *N, double *alpha){ | ^~~~~~~ ./Test_source_spectra.c:7150:3: error: unknown type name 't_Table' 7150 | t_Table * xproj; | ^~~~~~~ ./Test_source_spectra.c:7151:3: error: unknown type name 't_Table' 7151 | t_Table * yproj; | ^~~~~~~ ./Test_source_spectra.c:7152:3: error: unknown type name 't_Table' 7152 | t_Table * map; | ^~~~~~~ ./Test_source_spectra.c: In function 'class_Source_spectra_initialize': ./Test_source_spectra.c:7898:11: warning: 'return' with a value, in function returning void 7898 | return(_comp); | ^ ./Test_source_spectra.c:7849:6: note: declared here 7849 | void class_Source_spectra_initialize(_class_Source_spectra *_comp) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Test_source_spectra.c:7909:28: error: 't_Table' undeclared (first use in this function) 7909 | xproj=calloc(nE,sizeof(t_Table)); | ^~~~~~~ ./Test_source_spectra.c:7909:28: note: each undeclared identifier is reported only once for each function it appears in ./Test_source_spectra.c:7924:20: warning: implicit declaration of function 'Table_Read_Offset' [-Wimplicit-function-declaration] 7924 | if ( (status=Table_Read_Offset(&(xproj[num]),fnx,0,&offset,0))==-1){ | ^~~~~~~~~~~~~~~~~ ./Test_source_spectra.c:7937:28: error: request for member 'rows' in something not a structure or union 7937 | for (r=0;r 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_source_spectra.out ./Test_source_spectra.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.