INFO: No output directory specified (--dir) INFO: Using directory: "ILL_SALSA_20241118_143903" INFO: Regenerating c-file: ILL_SALSA.c DEBUG: CMD: /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ILL_SALSA.c ILL_SALSA.instr 2024-11-18 14:39:08.189 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Guide_gravity(0):ref-lib :Guide_gravity(1):read_table-lib :ref-lib(0):read_table-lib :Powder_process(0):read_table-lib :Powder_process(1):interoff-lib 2024-11-18 14:39:08.189 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib ref-lib Traceback (most recent call last): File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr", line 8, in sys.exit(mcstas()) ^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/commands.py", line 82, in mcstas mccode('mcstas', MCSTAS_REGISTRY, MCSTAS_GENERATOR) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/commands.py", line 74, in mccode visitor = CTargetVisitor(instrument, generate=generator, config=config, verbose=config['verbose']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/target.py", line 32, in __init__ self.__post_init__() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c.py", line 259, in __post_init__ self._parse_libraries_for_typedefs() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c.py", line 154, in _parse_libraries_for_typedefs defined_types = parse(block.to_c(), user_types=list(typedefs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 355, in extract_c_defined_types _, types = extract_c_declared_variables_and_defined_types(block, user_types, verbose=verbose) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 342, in extract_c_declared_variables_and_defined_types visitor.visitCompilationUnit(tree) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 439, in visitCompilationUnit return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 8423, in accept return visitor.visitTranslationUnit(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 444, in visitTranslationUnit return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 8493, in accept return visitor.visitExternalDeclaration(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CVisitor.py", line 449, in visitExternalDeclaration return self.visitChildren(ctx) ^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) ^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 3010, in accept return visitor.visitDeclaration(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 198, in visitDeclaration inits = [self.visit(x) for x in ctx.initDeclaratorList().initDeclarator()] ^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 34, in visit return tree.accept(self) ^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 3379, in accept return visitor.visitInitDeclarator(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 258, in visitInitDeclarator decl = self.visit(ctx.declarator()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/antlr4/tree/Tree.py", line 34, in visit return tree.accept(self) ^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/grammar/CParser.py", line 4849, in accept return visitor.visitDeclarator(self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/site-packages/mccode_antlr/translators/c_listener.py", line 298, in visitDeclarator raise RuntimeError('No idea how to handle multi-level arrays') RuntimeError: No idea how to handle multi-level arrays INFO: call to /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr failed with Command '/home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ILL_SALSA.c ILL_SALSA.instr' returned non-zero exit status 1. Traceback (most recent call last): File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 149, in prepare Process(mccode_bin_abspath).run(['-t', '-o', self.cpath, self.path]) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.12/subprocess.py", line 571, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '/home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./ILL_SALSA.c ILL_SALSA.instr' returned non-zero exit status 1.