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: "MAXII_811_20240301_104910" INFO: Regenerating c-file: MAXII_811.c DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace -t -o MAXII_811.c C:\\Users\\pkwi\\mctest\\20240301_1047_43\\3.4.24_Windows\\MAXII_811\\MAXII_811.instr CFLAGS= -std=c99 WARNING: The parameter format of si_sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. WARNING: The parameter mat_format of si_sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component si_sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component si_sample ----------------------------------------------------------- DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace finished INFO: Recompiling: MAXII_811.exe DEBUG: CMD: cl.exe -o MAXII_811.exe MAXII_811.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' MAXII_811.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 MAXII_811.c(2171): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXII_811.c(2171): note: consider using '%zi' in the format string MAXII_811.c(5741): warning C4477: 'printf' : format string '%i' requires an argument of type 'int', but variadic argument 1 has type 'void *' MAXII_811.c(5741): warning C4313: 'printf': '%i' in format string conflicts with argument 1 of type 'void *' MAXII_811.c(7214): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXII_811.c(7214): note: consider using '%zi' in the format string MAXII_811.c(7812): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXII_811.c(7812): note: consider using '%zi' in the format string MAXII_811.c(7837): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXII_811.c(7837): note: consider using '%zi' in the format string MAXII_811.c(9512): error C2146: syntax error: missing ';' before identifier 'R' MAXII_811.c(9512): error C2061: syntax error: identifier 'R' MAXII_811.c(9513): error C2059: syntax error: '}' MAXII_811.c(9560): error C2079: 'rconst' uses undefined struct 't_reflec_constant' MAXII_811.c(9575): error C2061: syntax error: identifier 'refleccq' MAXII_811.c(9575): error C2059: syntax error: ';' MAXII_811.c(9575): error C2059: syntax error: '' MAXII_811.c(9579): error C2061: syntax error: identifier 'reflecc' MAXII_811.c(9579): error C2059: syntax error: ';' MAXII_811.c(9579): error C2059: syntax error: '' MAXII_811.c(9582): error C2061: syntax error: identifier 'reflec_coating' MAXII_811.c(9582): error C2059: syntax error: ';' MAXII_811.c(9582): error C2059: syntax error: '' MAXII_811.c(9584): error C2061: syntax error: identifier 'reflec_bare' MAXII_811.c(9584): error C2059: syntax error: ';' MAXII_811.c(9584): error C2059: syntax error: '' MAXII_811.c(9586): error C2061: syntax error: identifier 'reflec_q_prmtc' MAXII_811.c(9586): error C2059: syntax error: ';' MAXII_811.c(9586): error C2059: syntax error: '' MAXII_811.c(9588): error C2061: syntax error: identifier 'reflec_parratt' MAXII_811.c(9588): error C2059: syntax error: ';' MAXII_811.c(9588): error C2059: syntax error: '' MAXII_811.c(9590): error C2061: syntax error: identifier 'reflec_kinematic' MAXII_811.c(9590): error C2059: syntax error: ';' MAXII_811.c(9590): error C2059: syntax error: '' MAXII_811.c(9592): error C2061: syntax error: identifier 'parrat_reflec_bulk' MAXII_811.c(9592): error C2059: syntax error: ';' MAXII_811.c(9592): error C2059: syntax error: '' MAXII_811.c(9594): error C2061: syntax error: identifier 'reflec_eth_prmtc' MAXII_811.c(9594): error C2059: syntax error: ';' MAXII_811.c(9594): error C2059: syntax error: '' MAXII_811.c(9639): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' MAXII_811.c(9645): error C2224: left of '.R' must have struct/union type MAXII_811.c(9712): error C2224: left of '.R' must have struct/union type MAXII_811.c(9732): error C2224: left of '.R' must have struct/union type MAXII_811.c(9744): error C2224: left of '.R' must have struct/union type MAXII_811.c(9911): error C2061: syntax error: identifier 'reflec_coating' MAXII_811.c(9911): error C2059: syntax error: ';' MAXII_811.c(9911): error C2059: syntax error: '' MAXII_811.c(9943): error C2061: syntax error: identifier 'reflec_bare' MAXII_811.c(9943): error C2059: syntax error: ';' MAXII_811.c(9943): error C2059: syntax error: '' MAXII_811.c(9947): error C2061: syntax error: identifier 'reflec_kinematic' MAXII_811.c(9947): error C2059: syntax error: ';' MAXII_811.c(9947): error C2059: syntax error: '' MAXII_811.c(9957): error C2061: syntax error: identifier 'reflec_q_prmtc' MAXII_811.c(9957): error C2059: syntax error: ';' MAXII_811.c(9957): error C2059: syntax error: '' MAXII_811.c(9969): error C2061: syntax error: identifier 'reflec_eth_prmtc' MAXII_811.c(9969): error C2059: syntax error: ';' MAXII_811.c(9969): error C2059: syntax error: '' MAXII_811.c(9979): error C2061: syntax error: identifier 'reflec_parratt' MAXII_811.c(9979): error C2059: syntax error: ';' MAXII_811.c(9979): error C2059: syntax error: '' MAXII_811.c(10002): error C2061: syntax error: identifier 'parrat_reflec_bulk' MAXII_811.c(10002): error C2059: syntax error: ';' MAXII_811.c(10002): error C2059: syntax error: '' MAXII_811.c(10026): error C2061: syntax error: identifier 'refleccq' MAXII_811.c(10026): error C2059: syntax error: ';' MAXII_811.c(10026): error C2059: syntax error: '' MAXII_811.c(10083): error C2224: left of '.R' must have struct/union type MAXII_811.c(10083): error C2168: 'fabs': too few actual parameters for intrinsic function MAXII_811.c(10088): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXII_811.c(10088): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXII_811.c(10093): error C2146: syntax error: missing ';' before identifier 'rp' MAXII_811.c(10093): error C2065: 'rp': undeclared identifier MAXII_811.c(10094): error C2065: 'rp': undeclared identifier MAXII_811.c(10095): error C2065: 'rp': undeclared identifier MAXII_811.c(10095): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXII_811.c(10095): warning C4024: 'conj': different types for formal and actual parameter 1 MAXII_811.c(10095): error C2088: '*': illegal for struct MAXII_811.c(10095): error C2198: 'creal': too few arguments for call MAXII_811.c(10100): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXII_811.c(10100): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXII_811.c(10110): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXII_811.c(10110): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXII_811.c(10115): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXII_811.c(10115): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXII_811.c(10140): error C2061: syntax error: identifier 'reflecceth' MAXII_811.c(10140): error C2059: syntax error: ';' MAXII_811.c(10140): error C2059: syntax error: '' MAXII_811.c(10162): error C2143: syntax error: missing ')' before '*' MAXII_811.c(10162): error C2143: syntax error: missing '{' before '*' MAXII_811.c(10162): error C2059: syntax error: 'type' MAXII_811.c(10165): error C2059: syntax error: ')' MAXII_811.c(10168): error C2146: syntax error: missing ')' before identifier 'kqvals' MAXII_811.c(10168): error C2061: syntax error: identifier 'kqvals' MAXII_811.c(10168): error C2059: syntax error: ';' MAXII_811.c(10168): error C2059: syntax error: '[' MAXII_811.c(10171): error C2059: syntax error: ')' MAXII_811.c(10177): error C2146: syntax error: missing ')' before identifier 'chi0' MAXII_811.c(10177): error C2061: syntax error: identifier 'chi0' MAXII_811.c(10177): error C2059: syntax error: ';' MAXII_811.c(10177): error C2059: syntax error: ',' MAXII_811.c(10178): error C2059: syntax error: ')' MAXII_811.c(10186): error C2146: syntax error: missing ')' before identifier 'chi0' MAXII_811.c(10186): error C2061: syntax error: identifier 'chi0' MAXII_811.c(10186): error C2059: syntax error: ';' MAXII_811.c(10186): error C2059: syntax error: ',' MAXII_811.c(10187): error C2059: syntax error: ')' MAXII_811.c(10213): error C2143: syntax error: missing ')' before '*' MAXII_811.c(10213): error C2143: syntax error: missing '{' before '*' MAXII_811.c(10213): error C2059: syntax error: 'type' MAXII_811.c(10216): error C2059: syntax error: ')' MAXII_811.c(10303): error C2146: syntax error: missing ')' before identifier 'chi0' MAXII_811.c(10303): error C2061: syntax error: identifier 'chi0' MAXII_811.c(10303): error C2059: syntax error: ';' MAXII_811.c(10303): fatal error C1003: error count exceeds 100; stopping compilation INFO: call to cl.exe failed with Command 'cl.exe -o MAXII_811.exe MAXII_811.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 MAXII_811.exe MAXII_811.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 -std=c99' returned non-zero exit status 2.