WARNING: Full-path compiler "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.29.30133/bin/HostX64/x64/cl.exe" not found!! WARNING: Attempting replacement by "cl.exe" INFO: No output directory specified (--dir) INFO: Using directory: "Template_Johann_spec_20240301_105017" INFO: Regenerating c-file: Template_Johann_spec.c DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace -t -o Template_Johann_spec.c C:\\Users\\pkwi\\mctest\\20240301_1047_43\\3.4.24_Windows\\Template_Johann_spec\\Template_Johann_spec.instr Info: 'Bragg_crystal_bent_BC' is a contributed component. CFLAGS= -std=c99 ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace finished INFO: Recompiling: Template_Johann_spec.exe DEBUG: CMD: cl.exe -o Template_Johann_spec.exe Template_Johann_spec.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 -std=c99 Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30153 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release cl : Command line warning D9002 : ignoring unknown option '-lm' cl : Command line warning D9002 : ignoring unknown option '-std=c99' Template_Johann_spec.c C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winbase.h(9531): warning C5105: macro expansion producing 'defined' has undefined behavior Template_Johann_spec.c(2171): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' Template_Johann_spec.c(2171): note: consider using '%zi' in the format string Template_Johann_spec.c(5741): warning C4477: 'printf' : format string '%i' requires an argument of type 'int', but variadic argument 1 has type 'void *' Template_Johann_spec.c(5741): warning C4313: 'printf': '%i' in format string conflicts with argument 1 of type 'void *' Template_Johann_spec.c(7181): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' Template_Johann_spec.c(7181): note: consider using '%zi' in the format string Template_Johann_spec.c(7779): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' Template_Johann_spec.c(7779): note: consider using '%zi' in the format string Template_Johann_spec.c(7804): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' Template_Johann_spec.c(7804): note: consider using '%zi' in the format string Template_Johann_spec.c(7986): error C2143: syntax error: missing ')' before '*' Template_Johann_spec.c(7986): error C2143: syntax error: missing '{' before '*' Template_Johann_spec.c(7986): error C2059: syntax error: 'type' Template_Johann_spec.c(7989): error C2059: syntax error: ')' Template_Johann_spec.c(7992): error C2146: syntax error: missing ')' before identifier 'kqvals' Template_Johann_spec.c(7992): error C2061: syntax error: identifier 'kqvals' Template_Johann_spec.c(7992): error C2059: syntax error: ';' Template_Johann_spec.c(7992): error C2059: syntax error: '[' Template_Johann_spec.c(7995): error C2059: syntax error: ')' Template_Johann_spec.c(8001): error C2146: syntax error: missing ')' before identifier 'chi0' Template_Johann_spec.c(8001): error C2061: syntax error: identifier 'chi0' Template_Johann_spec.c(8001): error C2059: syntax error: ';' Template_Johann_spec.c(8001): error C2059: syntax error: ',' Template_Johann_spec.c(8002): error C2059: syntax error: ')' Template_Johann_spec.c(8010): error C2146: syntax error: missing ')' before identifier 'chi0' Template_Johann_spec.c(8010): error C2061: syntax error: identifier 'chi0' Template_Johann_spec.c(8010): error C2059: syntax error: ';' Template_Johann_spec.c(8010): error C2059: syntax error: ',' Template_Johann_spec.c(8011): error C2059: syntax error: ')' Template_Johann_spec.c(8037): error C2143: syntax error: missing ')' before '*' Template_Johann_spec.c(8037): error C2143: syntax error: missing '{' before '*' Template_Johann_spec.c(8037): error C2059: syntax error: 'type' Template_Johann_spec.c(8040): error C2059: syntax error: ')' Template_Johann_spec.c(8127): error C2146: syntax error: missing ')' before identifier 'chi0' Template_Johann_spec.c(8127): error C2061: syntax error: identifier 'chi0' Template_Johann_spec.c(8127): error C2059: syntax error: ';' Template_Johann_spec.c(8127): error C2059: syntax error: ',' Template_Johann_spec.c(8129): error C2059: syntax error: ')' Template_Johann_spec.c(8210): error C2146: syntax error: missing ')' before identifier 'kqvals' Template_Johann_spec.c(8210): error C2061: syntax error: identifier 'kqvals' Template_Johann_spec.c(8210): error C2059: syntax error: ';' Template_Johann_spec.c(8210): error C2059: syntax error: '[' Template_Johann_spec.c(8213): error C2059: syntax error: ')' Template_Johann_spec.c(8344): error C2146: syntax error: missing ')' before identifier 'chi0' Template_Johann_spec.c(8344): error C2061: syntax error: identifier 'chi0' Template_Johann_spec.c(8344): error C2059: syntax error: ';' Template_Johann_spec.c(8344): error C2059: syntax error: ',' Template_Johann_spec.c(8345): error C2059: syntax error: ')' Template_Johann_spec.c(9422): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' Template_Johann_spec.c(9422): note: consider using '%zi' in the format string Template_Johann_spec.c(9437): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' Template_Johann_spec.c(9437): note: consider using '%zi' in the format string Template_Johann_spec.c(9444): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 4 has type 'size_t' Template_Johann_spec.c(9444): note: consider using '%zi' in the format string Template_Johann_spec.c(9459): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 3 has type 'size_t' Template_Johann_spec.c(9459): note: consider using '%zi' in the format string Template_Johann_spec.c(9466): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 4 has type 'size_t' Template_Johann_spec.c(9466): note: consider using '%zi' in the format string Template_Johann_spec.c(9574): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 3 has type 'size_t' Template_Johann_spec.c(9574): note: consider using '%zi' in the format string Template_Johann_spec.c(10208): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' Template_Johann_spec.c(10208): note: consider using '%zi' in the format string Template_Johann_spec.c(13141): warning C4473: 'fprintf' : not enough arguments passed for format string Template_Johann_spec.c(13141): note: placeholders and their parameters expect 3 variadic arguments, but 1 were provided Template_Johann_spec.c(13141): note: the missing variadic argument 2 is required by format string '%g' Template_Johann_spec.c(13421): warning C4005: 'min': macro redefinition C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\stdlib.h(1283): note: see previous definition of 'min' Template_Johann_spec.c(13422): warning C4005: 'max': macro redefinition C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt\stdlib.h(1282): note: see previous definition of 'max' Template_Johann_spec.c(14234): error C2146: syntax error: missing ';' before identifier 'chi0' Template_Johann_spec.c(14234): error C2065: 'chih': undeclared identifier Template_Johann_spec.c(14237): error C2065: 'chih': undeclared identifier Template_Johann_spec.c(14249): error C2065: 'chih': undeclared identifier INFO: call to cl.exe failed with Command 'cl.exe -o Template_Johann_spec.exe Template_Johann_spec.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 -std=c99' returned non-zero exit status 2. Traceback (most recent call last): File "C:\install_mcstas\miniconda3\share\mcxtrace\tools\Python\mxrun\mxrun.py", line 569, in main() File "C:\install_mcstas\miniconda3\share\mcxtrace\tools\Python\mxrun\mxrun.py", line 483, in main mcstas.prepare(options) File "C:\install_mcstas\miniconda3\share\mcxtrace\tools\Python\mxrun\mccode.py", line 245, in prepare Process(lexer.quote(options.cc)).run(args) File "C:\install_mcstas\miniconda3\share\mcxtrace\tools\Python\mxrun\mccode.py", line 77, in run raise err File "C:\install_mcstas\miniconda3\share\mcxtrace\tools\Python\mxrun\mccode.py", line 73, in run proc = run(command, shell=True, check=True, text=True, capture_output=pipe) File "C:\install_mcstas\miniconda3\lib\subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command 'cl.exe -o Template_Johann_spec.exe Template_Johann_spec.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 -std=c99' returned non-zero exit status 2.