INFO: No output directory specified (--dir) INFO: Using directory: "XFEL_SPB_20251123_030431" INFO: Regenerating c-file: XFEL_SPB.c WARNING: Full-path code-generator "C:\Miniconda\envs\mcxtrace\bin\mcxtrace" not found!! WARNING: Attempting replacement by "mcxtrace" DEBUG: CMD: mcxtrace -t -o XFEL_SPB.c XFEL_SPB.instr ----------------------------------------------------------- WARNING: Existing (COPY) EXTEND block in COMPONENT mono2: EXTEND %{ if(!SCATTERED) ABSORB; %} is overwritten by: EXTEND %{ if(!SCATTERED) ABSORB; %} ----------------------------------------------------------- ----------------------------------------------------------- WARNING: Existing (COPY) EXTEND block in COMPONENT kb_mirror1v: EXTEND %{ if(!SCATTERED) ABSORB; %} is overwritten by: EXTEND %{ if(!SCATTERED) ABSORB; %} ----------------------------------------------------------- CFLAGS= -std=c99 ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: mcxtrace finished INFO: Recompiling: XFEL_SPB.exe DEBUG: CMD: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" XFEL_SPB.c /DUSE_MPI /DYNAMICBASE /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /IC:/Miniconda/envs/mcxtrace/Library/include -DNDEBUG -D_POSIX_SOURCE -std=c99 /link msmpi.lib /LIBPATH:C:/Miniconda/envs/mcxtrace/Library/lib Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35219 for x64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9002 : ignoring unknown option '-std=c99' XFEL_SPB.c XFEL_SPB.c(1811): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' XFEL_SPB.c(1811): note: consider using '%zi' in the format string XFEL_SPB.c(8694): error C2146: syntax error: missing ';' before identifier 'R' XFEL_SPB.c(8694): error C2061: syntax error: identifier 'R' XFEL_SPB.c(8695): error C2059: syntax error: '}' XFEL_SPB.c(8742): error C2079: 'rconst' uses undefined struct 't_reflec_constant' XFEL_SPB.c(8757): error C2061: syntax error: identifier 'refleccq' XFEL_SPB.c(8757): error C2059: syntax error: ';' XFEL_SPB.c(8757): error C2059: syntax error: '' XFEL_SPB.c(8761): error C2061: syntax error: identifier 'reflecc' XFEL_SPB.c(8761): error C2059: syntax error: ';' XFEL_SPB.c(8761): error C2059: syntax error: '' XFEL_SPB.c(8764): error C2061: syntax error: identifier 'reflec_coating' XFEL_SPB.c(8764): error C2059: syntax error: ';' XFEL_SPB.c(8764): error C2059: syntax error: '' XFEL_SPB.c(8766): error C2061: syntax error: identifier 'reflec_bare' XFEL_SPB.c(8766): error C2059: syntax error: ';' XFEL_SPB.c(8766): error C2059: syntax error: '' XFEL_SPB.c(8768): error C2061: syntax error: identifier 'reflec_q_prmtc' XFEL_SPB.c(8768): error C2059: syntax error: ';' XFEL_SPB.c(8768): error C2059: syntax error: '' XFEL_SPB.c(8770): error C2061: syntax error: identifier 'reflec_parratt' XFEL_SPB.c(8770): error C2059: syntax error: ';' XFEL_SPB.c(8770): error C2059: syntax error: '' XFEL_SPB.c(8772): error C2061: syntax error: identifier 'reflec_kinematic' XFEL_SPB.c(8772): error C2059: syntax error: ';' XFEL_SPB.c(8772): error C2059: syntax error: '' XFEL_SPB.c(8774): error C2061: syntax error: identifier 'parrat_reflec_bulk' XFEL_SPB.c(8774): error C2059: syntax error: ';' XFEL_SPB.c(8774): error C2059: syntax error: '' XFEL_SPB.c(8776): error C2061: syntax error: identifier 'reflec_eth_prmtc' XFEL_SPB.c(8776): error C2059: syntax error: ';' XFEL_SPB.c(8776): error C2059: syntax error: '' XFEL_SPB.c(8821): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' XFEL_SPB.c(8828): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8896): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8917): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(8929): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(9109): error C2061: syntax error: identifier 'reflec_coating' XFEL_SPB.c(9109): error C2059: syntax error: ';' XFEL_SPB.c(9109): error C2059: syntax error: '' XFEL_SPB.c(9141): error C2061: syntax error: identifier 'reflec_bare' XFEL_SPB.c(9141): error C2059: syntax error: ';' XFEL_SPB.c(9141): error C2059: syntax error: '' XFEL_SPB.c(9145): error C2061: syntax error: identifier 'reflec_kinematic' XFEL_SPB.c(9145): error C2059: syntax error: ';' XFEL_SPB.c(9145): error C2059: syntax error: '' XFEL_SPB.c(9155): error C2061: syntax error: identifier 'reflec_q_prmtc' XFEL_SPB.c(9155): error C2059: syntax error: ';' XFEL_SPB.c(9155): error C2059: syntax error: '' XFEL_SPB.c(9167): error C2061: syntax error: identifier 'reflec_eth_prmtc' XFEL_SPB.c(9167): error C2059: syntax error: ';' XFEL_SPB.c(9167): error C2059: syntax error: '' XFEL_SPB.c(9177): error C2061: syntax error: identifier 'reflec_parratt' XFEL_SPB.c(9177): error C2059: syntax error: ';' XFEL_SPB.c(9177): error C2059: syntax error: '' XFEL_SPB.c(9200): error C2061: syntax error: identifier 'parrat_reflec_bulk' XFEL_SPB.c(9200): error C2059: syntax error: ';' XFEL_SPB.c(9200): error C2059: syntax error: '' XFEL_SPB.c(9224): error C2061: syntax error: identifier 'refleccq' XFEL_SPB.c(9224): error C2059: syntax error: ';' XFEL_SPB.c(9224): error C2059: syntax error: '' XFEL_SPB.c(9282): error C2224: left of '.R' must have struct/union type XFEL_SPB.c(9282): error C2168: 'fabs': too few actual parameters for intrinsic function XFEL_SPB.c(9287): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(9287): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(9292): error C2146: syntax error: missing ';' before identifier 'rp' XFEL_SPB.c(9292): error C2065: 'rp': undeclared identifier XFEL_SPB.c(9293): error C2065: 'rp': undeclared identifier XFEL_SPB.c(9294): error C2065: 'rp': undeclared identifier XFEL_SPB.c(9294): error C2065: 'rp': undeclared identifier XFEL_SPB.c(9294): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(9294): warning C4024: 'conj': different types for formal and actual parameter 1 XFEL_SPB.c(9294): error C2088: built-in operator '*' cannot be applied to an operand of type '_Dcomplex' XFEL_SPB.c(9294): error C2198: 'double creal(_Dcomplex)': too few arguments for call XFEL_SPB.c(9299): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(9299): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(9309): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(9309): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(9314): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' XFEL_SPB.c(9314): warning C4024: 'cabs': different types for formal and actual parameter 1 XFEL_SPB.c(9340): error C2061: syntax error: identifier 'reflecceth' XFEL_SPB.c(9340): error C2059: syntax error: ';' XFEL_SPB.c(9340): error C2059: syntax error: '' XFEL_SPB.c(9362): error C2143: syntax error: missing ')' before '*' XFEL_SPB.c(9362): error C2143: syntax error: missing '{' before '*' XFEL_SPB.c(9362): error C2059: syntax error: 'type' XFEL_SPB.c(9365): error C2059: syntax error: ')' XFEL_SPB.c(9368): error C2146: syntax error: missing ')' before identifier 'kqvals' XFEL_SPB.c(9368): error C2061: syntax error: identifier 'kqvals' XFEL_SPB.c(9368): error C2059: syntax error: ';' XFEL_SPB.c(9368): error C2059: syntax error: '[' XFEL_SPB.c(9371): error C2059: syntax error: ')' XFEL_SPB.c(9377): error C2146: syntax error: missing ')' before identifier 'chi0' XFEL_SPB.c(9377): error C2061: syntax error: identifier 'chi0' XFEL_SPB.c(9377): error C2059: syntax error: ';' XFEL_SPB.c(9377): error C2059: syntax error: ',' XFEL_SPB.c(9378): error C2059: syntax error: ')' XFEL_SPB.c(9386): error C2146: syntax error: missing ')' before identifier 'chi0' XFEL_SPB.c(9386): error C2061: syntax error: identifier 'chi0' XFEL_SPB.c(9386): error C2059: syntax error: ';' XFEL_SPB.c(9386): error C2059: syntax error: ',' XFEL_SPB.c(9387): error C2059: syntax error: ')' XFEL_SPB.c(9413): error C2143: syntax error: missing ')' before '*' XFEL_SPB.c(9413): error C2143: syntax error: missing '{' before '*' XFEL_SPB.c(9413): error C2059: syntax error: 'type' XFEL_SPB.c(9416): error C2059: syntax error: ')' XFEL_SPB.c(9503): error C2146: syntax error: missing ')' before identifier 'chi0' XFEL_SPB.c(9503): error C2061: syntax error: identifier 'chi0' XFEL_SPB.c(9503): fatal error C1003: error count exceeds 100; stopping compilation INFO: call to "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" failed with Command '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" XFEL_SPB.c /DUSE_MPI /DYNAMICBASE /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /IC:/Miniconda/envs/mcxtrace/Library/include -DNDEBUG -D_POSIX_SOURCE -std=c99 /link msmpi.lib /LIBPATH:C:/Miniconda/envs/mcxtrace/Library/lib' returned non-zero exit status 2. ERROR: Compilation failed for XFEL_SPB.c using compiler C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe