INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromator_bent_20241206_140517" INFO: Regenerating c-file: Test_Monochromator_bent.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Monochromator_bent.c Test_Monochromator_bent.instr 2024-12-06 14:05:20.238 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib 2024-12-06 14:05:20.239 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr", line 8, in sys.exit(mcstas()) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/commands.py", line 82, in mcstas mccode('mcstas', MCSTAS_REGISTRY, MCSTAS_GENERATOR) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/commands.py", line 74, in mccode visitor = CTargetVisitor(instrument, generate=generator, config=config, verbose=config['verbose']) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/translators/target.py", line 32, in __init__ self.__post_init__() File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/translators/c.py", line 259, in __post_init__ self._parse_libraries_for_typedefs() File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/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 "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/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 "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/translators/c_listener.py", line 342, in extract_c_declared_variables_and_defined_types visitor.visitCompilationUnit(tree) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CVisitor.py", line 439, in visitCompilationUnit return self.visitChildren(ctx) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CParser.py", line 8423, in accept return visitor.visitTranslationUnit(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CVisitor.py", line 444, in visitTranslationUnit return self.visitChildren(ctx) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CParser.py", line 8493, in accept return visitor.visitExternalDeclaration(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CVisitor.py", line 449, in visitExternalDeclaration return self.visitChildren(ctx) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/antlr4/tree/Tree.py", line 44, in visitChildren childResult = c.accept(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CParser.py", line 3010, in accept return visitor.visitDeclaration(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/translators/c_listener.py", line 198, in visitDeclaration inits = [self.visit(x) for x in ctx.initDeclaratorList().initDeclarator()] File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/translators/c_listener.py", line 198, in inits = [self.visit(x) for x in ctx.initDeclaratorList().initDeclarator()] File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/antlr4/tree/Tree.py", line 34, in visit return tree.accept(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CParser.py", line 3379, in accept return visitor.visitInitDeclarator(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/translators/c_listener.py", line 258, in visitInitDeclarator decl = self.visit(ctx.declarator()) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/antlr4/tree/Tree.py", line 34, in visit return tree.accept(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/site-packages/mccode_antlr/grammar/CParser.py", line 4849, in accept return visitor.visitDeclarator(self) File "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/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 /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr failed with Command '/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Monochromator_bent.c Test_Monochromator_bent.instr' returned non-zero exit status 1. Traceback (most recent call last): File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 595, in main() File "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 503, in main mcstas.prepare(options) File "/u/data/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 "/u/data/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 77, in run raise err File "/u/data/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 "/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '/u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Monochromator_bent.c Test_Monochromator_bent.instr' returned non-zero exit status 1.