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: "MAXIV_Bloch_20240301_104916" INFO: Regenerating c-file: MAXIV_Bloch.c DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace -t -o MAXIV_Bloch.c C:\\Users\\pkwi\\mctest\\20240301_1047_43\\3.4.24_Windows\\MAXIV_Bloch\\MAXIV_Bloch.instr CFLAGS= ----------------------------------------------------------- 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: MAXIV_Bloch.exe DEBUG: CMD: cl.exe -o MAXIV_Bloch.exe MAXIV_Bloch.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 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' MAXIV_Bloch.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 MAXIV_Bloch.c(2171): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXIV_Bloch.c(2171): note: consider using '%zi' in the format string MAXIV_Bloch.c(5741): warning C4477: 'printf' : format string '%i' requires an argument of type 'int', but variadic argument 1 has type 'void *' MAXIV_Bloch.c(5741): warning C4313: 'printf': '%i' in format string conflicts with argument 1 of type 'void *' MAXIV_Bloch.c(7237): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXIV_Bloch.c(7237): note: consider using '%zi' in the format string MAXIV_Bloch.c(7835): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXIV_Bloch.c(7835): note: consider using '%zi' in the format string MAXIV_Bloch.c(7860): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' MAXIV_Bloch.c(7860): note: consider using '%zi' in the format string MAXIV_Bloch.c(8050): error C2146: syntax error: missing ';' before identifier 'R' MAXIV_Bloch.c(8050): error C2061: syntax error: identifier 'R' MAXIV_Bloch.c(8051): error C2059: syntax error: '}' MAXIV_Bloch.c(8098): error C2079: 'rconst' uses undefined struct 't_reflec_constant' MAXIV_Bloch.c(8113): error C2061: syntax error: identifier 'refleccq' MAXIV_Bloch.c(8113): error C2059: syntax error: ';' MAXIV_Bloch.c(8113): error C2059: syntax error: '' MAXIV_Bloch.c(8117): error C2061: syntax error: identifier 'reflecc' MAXIV_Bloch.c(8117): error C2059: syntax error: ';' MAXIV_Bloch.c(8117): error C2059: syntax error: '' MAXIV_Bloch.c(8120): error C2061: syntax error: identifier 'reflec_coating' MAXIV_Bloch.c(8120): error C2059: syntax error: ';' MAXIV_Bloch.c(8120): error C2059: syntax error: '' MAXIV_Bloch.c(8122): error C2061: syntax error: identifier 'reflec_bare' MAXIV_Bloch.c(8122): error C2059: syntax error: ';' MAXIV_Bloch.c(8122): error C2059: syntax error: '' MAXIV_Bloch.c(8124): error C2061: syntax error: identifier 'reflec_q_prmtc' MAXIV_Bloch.c(8124): error C2059: syntax error: ';' MAXIV_Bloch.c(8124): error C2059: syntax error: '' MAXIV_Bloch.c(8126): error C2061: syntax error: identifier 'reflec_parratt' MAXIV_Bloch.c(8126): error C2059: syntax error: ';' MAXIV_Bloch.c(8126): error C2059: syntax error: '' MAXIV_Bloch.c(8128): error C2061: syntax error: identifier 'reflec_kinematic' MAXIV_Bloch.c(8128): error C2059: syntax error: ';' MAXIV_Bloch.c(8128): error C2059: syntax error: '' MAXIV_Bloch.c(8130): error C2061: syntax error: identifier 'parrat_reflec_bulk' MAXIV_Bloch.c(8130): error C2059: syntax error: ';' MAXIV_Bloch.c(8130): error C2059: syntax error: '' MAXIV_Bloch.c(8132): error C2061: syntax error: identifier 'reflec_eth_prmtc' MAXIV_Bloch.c(8132): error C2059: syntax error: ';' MAXIV_Bloch.c(8132): error C2059: syntax error: '' MAXIV_Bloch.c(8177): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' MAXIV_Bloch.c(8183): error C2224: left of '.R' must have struct/union type MAXIV_Bloch.c(8250): error C2224: left of '.R' must have struct/union type MAXIV_Bloch.c(8270): error C2224: left of '.R' must have struct/union type MAXIV_Bloch.c(8282): error C2224: left of '.R' must have struct/union type MAXIV_Bloch.c(8449): error C2061: syntax error: identifier 'reflec_coating' MAXIV_Bloch.c(8449): error C2059: syntax error: ';' MAXIV_Bloch.c(8449): error C2059: syntax error: '' MAXIV_Bloch.c(8481): error C2061: syntax error: identifier 'reflec_bare' MAXIV_Bloch.c(8481): error C2059: syntax error: ';' MAXIV_Bloch.c(8481): error C2059: syntax error: '' MAXIV_Bloch.c(8485): error C2061: syntax error: identifier 'reflec_kinematic' MAXIV_Bloch.c(8485): error C2059: syntax error: ';' MAXIV_Bloch.c(8485): error C2059: syntax error: '' MAXIV_Bloch.c(8495): error C2061: syntax error: identifier 'reflec_q_prmtc' MAXIV_Bloch.c(8495): error C2059: syntax error: ';' MAXIV_Bloch.c(8495): error C2059: syntax error: '' MAXIV_Bloch.c(8507): error C2061: syntax error: identifier 'reflec_eth_prmtc' MAXIV_Bloch.c(8507): error C2059: syntax error: ';' MAXIV_Bloch.c(8507): error C2059: syntax error: '' MAXIV_Bloch.c(8517): error C2061: syntax error: identifier 'reflec_parratt' MAXIV_Bloch.c(8517): error C2059: syntax error: ';' MAXIV_Bloch.c(8517): error C2059: syntax error: '' MAXIV_Bloch.c(8540): error C2061: syntax error: identifier 'parrat_reflec_bulk' MAXIV_Bloch.c(8540): error C2059: syntax error: ';' MAXIV_Bloch.c(8540): error C2059: syntax error: '' MAXIV_Bloch.c(8564): error C2061: syntax error: identifier 'refleccq' MAXIV_Bloch.c(8564): error C2059: syntax error: ';' MAXIV_Bloch.c(8564): error C2059: syntax error: '' MAXIV_Bloch.c(8621): error C2224: left of '.R' must have struct/union type MAXIV_Bloch.c(8621): error C2168: 'fabs': too few actual parameters for intrinsic function MAXIV_Bloch.c(8626): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(8626): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXIV_Bloch.c(8631): error C2146: syntax error: missing ';' before identifier 'rp' MAXIV_Bloch.c(8631): error C2065: 'rp': undeclared identifier MAXIV_Bloch.c(8632): error C2065: 'rp': undeclared identifier MAXIV_Bloch.c(8633): error C2065: 'rp': undeclared identifier MAXIV_Bloch.c(8633): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(8633): warning C4024: 'conj': different types for formal and actual parameter 1 MAXIV_Bloch.c(8633): error C2088: '*': illegal for struct MAXIV_Bloch.c(8633): error C2198: 'creal': too few arguments for call MAXIV_Bloch.c(8638): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(8638): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXIV_Bloch.c(8648): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(8648): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXIV_Bloch.c(8653): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(8653): warning C4024: 'cabs': different types for formal and actual parameter 1 MAXIV_Bloch.c(8678): error C2061: syntax error: identifier 'reflecceth' MAXIV_Bloch.c(8678): error C2059: syntax error: ';' MAXIV_Bloch.c(8678): error C2059: syntax error: '' MAXIV_Bloch.c(10986): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' MAXIV_Bloch.c(10986): note: consider using '%zi' in the format string MAXIV_Bloch.c(11001): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' MAXIV_Bloch.c(11001): note: consider using '%zi' in the format string MAXIV_Bloch.c(11008): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 4 has type 'size_t' MAXIV_Bloch.c(11008): note: consider using '%zi' in the format string MAXIV_Bloch.c(11023): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 3 has type 'size_t' MAXIV_Bloch.c(11023): note: consider using '%zi' in the format string MAXIV_Bloch.c(11030): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 4 has type 'size_t' MAXIV_Bloch.c(11030): note: consider using '%zi' in the format string MAXIV_Bloch.c(11138): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 3 has type 'size_t' MAXIV_Bloch.c(11138): note: consider using '%zi' in the format string MAXIV_Bloch.c(11772): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' MAXIV_Bloch.c(11772): note: consider using '%zi' in the format string MAXIV_Bloch.c(15171): warning C4477: 'printf' : format string '%f' requires an argument of type 'double', but variadic argument 3 has type 'int' MAXIV_Bloch.c(15231): 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' MAXIV_Bloch.c(15232): 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' MAXIV_Bloch.c(17103): error C2146: syntax error: missing ';' before identifier 'R' MAXIV_Bloch.c(17103): error C2065: 'R': undeclared identifier MAXIV_Bloch.c(17104): error C2065: 'R': undeclared identifier MAXIV_Bloch.c(17104): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(17104): warning C4024: 'conj': different types for formal and actual parameter 1 MAXIV_Bloch.c(17104): error C2088: '*': illegal for struct MAXIV_Bloch.c(17104): error C2198: 'creal': too few arguments for call MAXIV_Bloch.c(17105): error C2065: 'R': undeclared identifier MAXIV_Bloch.c(17105): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' MAXIV_Bloch.c(17105): warning C4024: 'cimag': different types for formal and actual parameter 1 MAXIV_Bloch.c(17105): warning C4024: 'creal': different types for formal and actual parameter 1 INFO: call to cl.exe failed with Command 'cl.exe -o MAXIV_Bloch.exe MAXIV_Bloch.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11' 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 MAXIV_Bloch.exe MAXIV_Bloch.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11' returned non-zero exit status 2.