INFO: No output directory specified (--dir) INFO: Using directory: "Test_TasReso_20240919_182408" INFO: Regenerating c-file: Test_TasReso.c DEBUG: CMD: /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_TasReso.c Test_TasReso.instr Downloading file 'mcstas-comps/samples/Res_sample.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.1/mcstas-comps/samples/Res_sample.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.1'. Downloading file 'mcstas-comps/monitors/Res_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.1/mcstas-comps/monitors/Res_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.1'. 2024-09-19 18:24:11.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:67 - sort includes :Monochromator_curved(0):read_table-lib :Incoherent(0):read_table-lib :Incoherent(1):interoff-lib :Single_crystal(0):read_table-lib :Single_crystal(1):interoff-lib :Single_crystal(2):opencl-lib :Res_monitor(0):monitor_nd-lib :Res_monitor(1):cov-lib 2024-09-19 18:24:11.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:92 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib cov-lib 2024-09-19 18:24:11.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:92 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib cov-lib 2024-09-19 18:24:11.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:92 - sorted to read_table-lib monitor_nd-lib interoff-lib cov-lib opencl-lib 2024-09-19 18:24:11.584 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:92 - sorted to read_table-lib interoff-lib opencl-lib monitor_nd-lib cov-lib Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621) Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: org/antlr/v4/Tool has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:756) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) at java.net.URLClassLoader.access$100(URLClassLoader.java:74) at java.net.URLClassLoader$1.run(URLClassLoader.java:369) at java.net.URLClassLoader$1.run(URLClassLoader.java:363) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:362) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621) The instrument has 12 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component origin -> GPU kernel from component Src -> GPU kernel from component mono_arm1 -> GPU kernel from component mono -> GPU kernel from component mono_arm2 -> GPU kernel from component colli_presample -> GPU kernel from component sample_arm1 -> GPU kernel from component sample_Vana -> GPU kernel from component sample_xtal -> GPU kernel from component sample_reso -> GPU kernel from component sample_arm2 -> GPU kernel from component colli_postsample -> GPU kernel from component ana_arm1 -> GPU kernel from component ana -> GPU kernel from component ana_arm2 -> GPU kernel from component psdmon -> GPU kernel from component divmon -> GPU kernel from component lmon -> GPU kernel from component emon -> GPU kernel from component resmon ----------------------------------------------------------- DEBUG: CMD: /home/nexmap/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Test_TasReso.out DEBUG: CMD: mpicc -o ./Test_TasReso.out ./Test_TasReso.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -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_TasReso.c: In function 'cif2hkl': ./Test_TasReso.c:7860:38: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 7860 | if(!ext || ext == infile) return infile; | ^~~~~~ ./Test_TasReso.c:7869:41: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 7869 | && strcasecmp(ext, "res")) return infile; | ^~~~~~ ./Test_TasReso.c:7872:26: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 7872 | if (!OUTFILE) return infile; | ^~~~~~ ./Test_TasReso.c: In function 'raytrace': ./Test_TasReso.c:19840:13: error: 'sample_num' undeclared (first use in this function); did you mean 'sample_rad'? 19840 | if (((sample_num==0))) // conditional WHEN execution | ^~~~~~~~~~ | sample_rad ./Test_TasReso.c:19840:13: note: each undeclared identifier is reported only once for each function it appears in INFO: call to mpicc failed with Command 'mpicc -o ./Test_TasReso.out ./Test_TasReso.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -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/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 579, in main() File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mcrun.py", line 487, in main mcstas.prepare(options) File "/home/nexmap/pkwi/McStas/mcstas/3.x-dev/tools/Python/mcrun/mccode.py", line 294, in prepare Process(lexer.quote(options.cc)).run(args) 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 'mpicc -o ./Test_TasReso.out ./Test_TasReso.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/nexmap/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -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.