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: "SOLEIL_DISCO_20240301_104947" INFO: Regenerating c-file: SOLEIL_DISCO.c DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace -t -o SOLEIL_DISCO.c C:\\Users\\pkwi\\mctest\\20240301_1047_43\\3.4.24_Windows\\SOLEIL_DISCO\\SOLEIL_DISCO.instr Info: 'Mirror_toroid_pothole' is a contributed component. CFLAGS= -std=c99 ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component reflective_grating ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component reflective_grating ----------------------------------------------------------- DEBUG: CMD: C:\install_mcstas\miniconda3\bin\mcxtrace finished INFO: Recompiling: SOLEIL_DISCO.exe DEBUG: CMD: cl.exe -o SOLEIL_DISCO.exe SOLEIL_DISCO.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' SOLEIL_DISCO.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 SOLEIL_DISCO.c(2171): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' SOLEIL_DISCO.c(2171): note: consider using '%zi' in the format string SOLEIL_DISCO.c(5741): warning C4477: 'printf' : format string '%i' requires an argument of type 'int', but variadic argument 1 has type 'void *' SOLEIL_DISCO.c(5741): warning C4313: 'printf': '%i' in format string conflicts with argument 1 of type 'void *' SOLEIL_DISCO.c(7224): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' SOLEIL_DISCO.c(7224): note: consider using '%zi' in the format string SOLEIL_DISCO.c(7822): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' SOLEIL_DISCO.c(7822): note: consider using '%zi' in the format string SOLEIL_DISCO.c(7847): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' SOLEIL_DISCO.c(7847): note: consider using '%zi' in the format string SOLEIL_DISCO.c(8042): error C2146: syntax error: missing ';' before identifier 'R' SOLEIL_DISCO.c(8042): error C2061: syntax error: identifier 'R' SOLEIL_DISCO.c(8043): error C2059: syntax error: '}' SOLEIL_DISCO.c(8090): error C2079: 'rconst' uses undefined struct 't_reflec_constant' SOLEIL_DISCO.c(8105): error C2061: syntax error: identifier 'refleccq' SOLEIL_DISCO.c(8105): error C2059: syntax error: ';' SOLEIL_DISCO.c(8105): error C2059: syntax error: '' SOLEIL_DISCO.c(8109): error C2061: syntax error: identifier 'reflecc' SOLEIL_DISCO.c(8109): error C2059: syntax error: ';' SOLEIL_DISCO.c(8109): error C2059: syntax error: '' SOLEIL_DISCO.c(8112): error C2061: syntax error: identifier 'reflec_coating' SOLEIL_DISCO.c(8112): error C2059: syntax error: ';' SOLEIL_DISCO.c(8112): error C2059: syntax error: '' SOLEIL_DISCO.c(8114): error C2061: syntax error: identifier 'reflec_bare' SOLEIL_DISCO.c(8114): error C2059: syntax error: ';' SOLEIL_DISCO.c(8114): error C2059: syntax error: '' SOLEIL_DISCO.c(8116): error C2061: syntax error: identifier 'reflec_q_prmtc' SOLEIL_DISCO.c(8116): error C2059: syntax error: ';' SOLEIL_DISCO.c(8116): error C2059: syntax error: '' SOLEIL_DISCO.c(8118): error C2061: syntax error: identifier 'reflec_parratt' SOLEIL_DISCO.c(8118): error C2059: syntax error: ';' SOLEIL_DISCO.c(8118): error C2059: syntax error: '' SOLEIL_DISCO.c(8120): error C2061: syntax error: identifier 'reflec_kinematic' SOLEIL_DISCO.c(8120): error C2059: syntax error: ';' SOLEIL_DISCO.c(8120): error C2059: syntax error: '' SOLEIL_DISCO.c(8122): error C2061: syntax error: identifier 'parrat_reflec_bulk' SOLEIL_DISCO.c(8122): error C2059: syntax error: ';' SOLEIL_DISCO.c(8122): error C2059: syntax error: '' SOLEIL_DISCO.c(8124): error C2061: syntax error: identifier 'reflec_eth_prmtc' SOLEIL_DISCO.c(8124): error C2059: syntax error: ';' SOLEIL_DISCO.c(8124): error C2059: syntax error: '' SOLEIL_DISCO.c(8169): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' SOLEIL_DISCO.c(8175): error C2224: left of '.R' must have struct/union type SOLEIL_DISCO.c(8242): error C2224: left of '.R' must have struct/union type SOLEIL_DISCO.c(8262): error C2224: left of '.R' must have struct/union type SOLEIL_DISCO.c(8274): error C2224: left of '.R' must have struct/union type SOLEIL_DISCO.c(8441): error C2061: syntax error: identifier 'reflec_coating' SOLEIL_DISCO.c(8441): error C2059: syntax error: ';' SOLEIL_DISCO.c(8441): error C2059: syntax error: '' SOLEIL_DISCO.c(8473): error C2061: syntax error: identifier 'reflec_bare' SOLEIL_DISCO.c(8473): error C2059: syntax error: ';' SOLEIL_DISCO.c(8473): error C2059: syntax error: '' SOLEIL_DISCO.c(8477): error C2061: syntax error: identifier 'reflec_kinematic' SOLEIL_DISCO.c(8477): error C2059: syntax error: ';' SOLEIL_DISCO.c(8477): error C2059: syntax error: '' SOLEIL_DISCO.c(8487): error C2061: syntax error: identifier 'reflec_q_prmtc' SOLEIL_DISCO.c(8487): error C2059: syntax error: ';' SOLEIL_DISCO.c(8487): error C2059: syntax error: '' SOLEIL_DISCO.c(8499): error C2061: syntax error: identifier 'reflec_eth_prmtc' SOLEIL_DISCO.c(8499): error C2059: syntax error: ';' SOLEIL_DISCO.c(8499): error C2059: syntax error: '' SOLEIL_DISCO.c(8509): error C2061: syntax error: identifier 'reflec_parratt' SOLEIL_DISCO.c(8509): error C2059: syntax error: ';' SOLEIL_DISCO.c(8509): error C2059: syntax error: '' SOLEIL_DISCO.c(8532): error C2061: syntax error: identifier 'parrat_reflec_bulk' SOLEIL_DISCO.c(8532): error C2059: syntax error: ';' SOLEIL_DISCO.c(8532): error C2059: syntax error: '' SOLEIL_DISCO.c(8556): error C2061: syntax error: identifier 'refleccq' SOLEIL_DISCO.c(8556): error C2059: syntax error: ';' SOLEIL_DISCO.c(8556): error C2059: syntax error: '' SOLEIL_DISCO.c(8613): error C2224: left of '.R' must have struct/union type SOLEIL_DISCO.c(8613): error C2168: 'fabs': too few actual parameters for intrinsic function SOLEIL_DISCO.c(8618): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_DISCO.c(8618): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_DISCO.c(8623): error C2146: syntax error: missing ';' before identifier 'rp' SOLEIL_DISCO.c(8623): error C2065: 'rp': undeclared identifier SOLEIL_DISCO.c(8624): error C2065: 'rp': undeclared identifier SOLEIL_DISCO.c(8625): error C2065: 'rp': undeclared identifier SOLEIL_DISCO.c(8625): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_DISCO.c(8625): warning C4024: 'conj': different types for formal and actual parameter 1 SOLEIL_DISCO.c(8625): error C2088: '*': illegal for struct SOLEIL_DISCO.c(8625): error C2198: 'creal': too few arguments for call SOLEIL_DISCO.c(8630): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_DISCO.c(8630): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_DISCO.c(8640): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_DISCO.c(8640): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_DISCO.c(8645): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_DISCO.c(8645): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_DISCO.c(8670): error C2061: syntax error: identifier 'reflecceth' SOLEIL_DISCO.c(8670): error C2059: syntax error: ';' SOLEIL_DISCO.c(8670): error C2059: syntax error: '' SOLEIL_DISCO.c(10150): error C2143: syntax error: missing ')' before '*' SOLEIL_DISCO.c(10150): error C2143: syntax error: missing '{' before '*' SOLEIL_DISCO.c(10150): error C2059: syntax error: 'type' SOLEIL_DISCO.c(10153): error C2059: syntax error: ')' SOLEIL_DISCO.c(10156): error C2146: syntax error: missing ')' before identifier 'kqvals' SOLEIL_DISCO.c(10156): error C2061: syntax error: identifier 'kqvals' SOLEIL_DISCO.c(10156): error C2059: syntax error: ';' SOLEIL_DISCO.c(10156): error C2059: syntax error: '[' SOLEIL_DISCO.c(10159): error C2059: syntax error: ')' SOLEIL_DISCO.c(10165): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_DISCO.c(10165): error C2061: syntax error: identifier 'chi0' SOLEIL_DISCO.c(10165): error C2059: syntax error: ';' SOLEIL_DISCO.c(10165): error C2059: syntax error: ',' SOLEIL_DISCO.c(10166): error C2059: syntax error: ')' SOLEIL_DISCO.c(10174): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_DISCO.c(10174): error C2061: syntax error: identifier 'chi0' SOLEIL_DISCO.c(10174): error C2059: syntax error: ';' SOLEIL_DISCO.c(10174): error C2059: syntax error: ',' SOLEIL_DISCO.c(10175): error C2059: syntax error: ')' SOLEIL_DISCO.c(10201): error C2143: syntax error: missing ')' before '*' SOLEIL_DISCO.c(10201): error C2143: syntax error: missing '{' before '*' SOLEIL_DISCO.c(10201): error C2059: syntax error: 'type' SOLEIL_DISCO.c(10204): error C2059: syntax error: ')' SOLEIL_DISCO.c(10291): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_DISCO.c(10291): error C2061: syntax error: identifier 'chi0' SOLEIL_DISCO.c(10291): error C2059: syntax error: ';' SOLEIL_DISCO.c(10291): fatal error C1003: error count exceeds 100; stopping compilation INFO: call to cl.exe failed with Command 'cl.exe -o SOLEIL_DISCO.exe SOLEIL_DISCO.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 SOLEIL_DISCO.exe SOLEIL_DISCO.c -lm /Zi /O2 /Ob1 /DNDEBUG /DWIN32 /D_WINDOWS /std:c11 -std=c99' returned non-zero exit status 2.