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: "XFEL_SPB_20240301_105242" INFO: Regenerating c-file: XFEL_SPB.c DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace -t -o XFEL_SPB.c C:\\Users\\pkwi\\mctest\\20240301_1047_43\\3.4.24_Windows\\XFEL_SPB\\XFEL_SPB.instr 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: XFEL_SPB.exe DEBUG: CMD: cl.exe -o XFEL_SPB.exe XFEL_SPB.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' XFEL_SPB.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 XFEL_SPB.c(2171): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' XFEL_SPB.c(2171): note: consider using '%zi' in the format string XFEL_SPB.c(5741): warning C4477: 'printf' : format string '%i' requires an argument of type 'int', but variadic argument 1 has type 'void *' XFEL_SPB.c(5741): warning C4313: 'printf': '%i' in format string conflicts with argument 1 of type 'void *' XFEL_SPB.c(7189): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' XFEL_SPB.c(7189): note: consider using '%zi' in the format string XFEL_SPB.c(7787): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' XFEL_SPB.c(7787): note: consider using '%zi' in the format string XFEL_SPB.c(7812): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' XFEL_SPB.c(7812): note: consider using '%zi' in the format string XFEL_SPB.c(8006): error C2146: syntax error: missing ';' before identifier 'R' XFEL_SPB.c(8006): error C2061: syntax error: identifier 'R' XFEL_SPB.c(8007): error C2059: syntax error: '}' XFEL_SPB.c(8054): error C2079: 'rconst' uses undefined struct 't_reflec_constant' XFEL_SPB.c(8069): error C2061: syntax error: identifier 'refleccq' XFEL_SPB.c(8069): error C2059: syntax error: ';' XFEL_SPB.c(8069): error C2059: syntax error: '' XFEL_SPB.c(8073): error C2061: syntax error: identifier 'reflecc' XFEL_SPB.c(8073): error C2059: syntax error: ';' XFEL_SPB.c(8073): error C2059: syntax error: '' XFEL_SPB.c(8076): error C2061: syntax error: identifier 'reflec_coating' XFEL_SPB.c(8076): error C2059: syntax error: ';' XFEL_SPB.c(8076): error C2059: syntax error: '' XFEL_SPB.c(8078): error C2061: syntax error: identifier 'reflec_bare' XFEL_SPB.c(8078): error C2059: syntax error: ';' XFEL_SPB.c(8078): error C2059: syntax error: '' XFEL_SPB.c(8080): error C2061: syntax error: identifier 'reflec_q_prmtc' XFEL_SPB.c(8080): error C2059: syntax error: ';' XFEL_SPB.c(8080): error C2059: syntax error: '' XFEL_SPB.c(8082): error C2061: syntax error: identifier 'reflec_parratt' XFEL_SPB.c(8082): error C2059: syntax error: ';' XFEL_SPB.c(8082): error C2059: syntax error: '' XFEL_SPB.c(8084): error C2061: syntax error: identifier 'reflec_kinematic' XFEL_SPB.c(8084): error C2059: syntax error: ';' XFEL_SPB.c(8084): error C2059: syntax error: '' XFEL_SPB.c(8086): error C2061: syntax error: identifier 'parrat_reflec_bulk' XFEL_SPB.c(8086): error C2059: syntax error: ';' XFEL_SPB.c(8086): error C2059: syntax error: '' XFEL_SPB.c(8088): error C2061: syntax error: identifier 'reflec_eth_prmtc' XFEL_SPB.c(8088): error C2059: syntax error: ';' XFEL_SPB.c(8088): error C2059: syntax error: '' XFEL_SPB.c(8133): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' XFEL_SPB.c(8139): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8206): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8226): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8238): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8405): error C2061: syntax error: identifier 'reflec_coating' XFEL_SPB.c(8405): error C2059: syntax error: ';' XFEL_SPB.c(8405): error C2059: syntax error: '' XFEL_SPB.c(8437): error C2061: syntax error: identifier 'reflec_bare' XFEL_SPB.c(8437): error C2059: syntax error: ';' XFEL_SPB.c(8437): error C2059: syntax error: '' XFEL_SPB.c(8441): error C2061: syntax error: identifier 'reflec_kinematic' XFEL_SPB.c(8441): error C2059: syntax error: ';' XFEL_SPB.c(8441): error C2059: syntax error: '' XFEL_SPB.c(8451): error C2061: syntax error: identifier 'reflec_q_prmtc' XFEL_SPB.c(8451): error C2059: syntax error: ';' XFEL_SPB.c(8451): error C2059: syntax error: '' XFEL_SPB.c(8463): error C2061: syntax error: identifier 'reflec_eth_prmtc' XFEL_SPB.c(8463): error C2059: syntax error: ';' XFEL_SPB.c(8463): error C2059: syntax error: '' XFEL_SPB.c(8473): error C2061: syntax error: identifier 'reflec_parratt' XFEL_SPB.c(8473): error C2059: syntax error: ';' XFEL_SPB.c(8473): error C2059: syntax error: '' XFEL_SPB.c(8496): error C2061: syntax error: identifier 'parrat_reflec_bulk' XFEL_SPB.c(8496): error C2059: syntax error: ';' XFEL_SPB.c(8496): error C2059: syntax error: '' XFEL_SPB.c(8520): error C2061: syntax error: identifier 'refleccq' XFEL_SPB.c(8520): error C2059: syntax error: ';' XFEL_SPB.c(8520): error C2059: syntax error: '' XFEL_SPB.c(8577): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8577): error C2168: 'fabs': too few actual parameters for intrinsic function XFEL_SPB.c(8582): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(8582): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(8587): error C2146: syntax error: missing ';' before identifier 'rp' XFEL_SPB.c(8587): error C2065: 'rp': undeclared identifier XFEL_SPB.c(8588): error C2065: 'rp': undeclared identifier XFEL_SPB.c(8589): error C2065: 'rp': undeclared identifier XFEL_SPB.c(8589): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(8589): warning C4024: 'conj': different types for formal and actual parameter 1 XFEL_SPB.c(8589): error C2088: '*': illegal for struct XFEL_SPB.c(8589): error C2198: 'creal': too few arguments for call XFEL_SPB.c(8594): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(8594): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(8604): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(8604): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(8609): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(8609): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(8634): error C2061: syntax error: identifier 'reflecceth' XFEL_SPB.c(8634): error C2059: syntax error: ';' XFEL_SPB.c(8634): error C2059: syntax error: '' XFEL_SPB.c(8656): error C2143: syntax error: missing ')' before '*' XFEL_SPB.c(8656): error C2143: syntax error: missing '{' before '*' XFEL_SPB.c(8656): error C2059: syntax error: 'type' XFEL_SPB.c(8659): error C2059: syntax error: ')' XFEL_SPB.c(8662): error C2146: syntax error: missing ')' before identifier 'kqvals' XFEL_SPB.c(8662): error C2061: syntax error: identifier 'kqvals' XFEL_SPB.c(8662): error C2059: syntax error: ';' XFEL_SPB.c(8662): error C2059: syntax error: '[' XFEL_SPB.c(8665): error C2059: syntax error: ')' XFEL_SPB.c(8671): error C2146: syntax error: missing ')' before identifier 'chi0' XFEL_SPB.c(8671): error C2061: syntax error: identifier 'chi0' XFEL_SPB.c(8671): error C2059: syntax error: ';' XFEL_SPB.c(8671): error C2059: syntax error: ',' XFEL_SPB.c(8672): error C2059: syntax error: ')' XFEL_SPB.c(8680): error C2146: syntax error: missing ')' before identifier 'chi0' XFEL_SPB.c(8680): error C2061: syntax error: identifier 'chi0' XFEL_SPB.c(8680): error C2059: syntax error: ';' XFEL_SPB.c(8680): error C2059: syntax error: ',' XFEL_SPB.c(8681): error C2059: syntax error: ')' XFEL_SPB.c(8707): error C2143: syntax error: missing ')' before '*' XFEL_SPB.c(8707): error C2143: syntax error: missing '{' before '*' XFEL_SPB.c(8707): error C2059: syntax error: 'type' XFEL_SPB.c(8710): error C2059: syntax error: ')' XFEL_SPB.c(8797): error C2146: syntax error: missing ')' before identifier 'chi0' XFEL_SPB.c(8797): error C2061: syntax error: identifier 'chi0' XFEL_SPB.c(8797): error C2059: syntax error: ';' XFEL_SPB.c(8797): fatal error C1003: error count exceeds 100; stopping compilation INFO: call to cl.exe failed with Command 'cl.exe -o XFEL_SPB.exe XFEL_SPB.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 XFEL_SPB.exe XFEL_SPB.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 -std=c99' returned non-zero exit status 2.