INFO: No output directory specified (--dir) INFO: Using directory: "SOLEIL_MARS_20251123_030301" INFO: Regenerating c-file: SOLEIL_MARS.c WARNING: Full-path code-generator "C:\Miniconda\envs\mcxtrace\bin\mcxtrace" not found!! WARNING: Attempting replacement by "mcxtrace" DEBUG: CMD: mcxtrace -t -o SOLEIL_MARS.c SOLEIL_MARS.instr Warning: Component Sample=PowderN() at line SOLEIL_MARS.instr:314 is 1st in GROUP samples and has a SPLIT. Best practice is to move the SPLIT to an earlier component. CFLAGS= -std=c99 @XRLFLAGS@ -DUSE_OFF -DFUNNEL WARNING: The parameter format of 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 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 Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Sample Component SampleF is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component SampleF -> GPU kernel from component detector_diffraction ----------------------------------------------------------- DEBUG: CMD: mcxtrace finished INFO: Recompiling: SOLEIL_MARS.exe DEBUG: CMD: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" SOLEIL_MARS.c /DUSE_MPI /DYNAMICBASE /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /IC:/Miniconda/envs/mcxtrace/Library/include -DNDEBUG -D_POSIX_SOURCE -std=c99 /IC:\Miniconda\envs\mcxtrace/Library/include -DUSE_OFF -DFUNNEL /link msmpi.lib /LIBPATH:C:/Miniconda/envs/mcxtrace/Library/lib /LIBPATH:C:\Miniconda\envs\mcxtrace/Library/lib xrl.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' SOLEIL_MARS.c SOLEIL_MARS.c(1811): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' SOLEIL_MARS.c(1811): note: consider using '%zi' in the format string SOLEIL_MARS.c(8840): warning C4477: 'printf' : format string '%li' requires an argument of type 'long', but variadic argument 2 has type 'size_t' SOLEIL_MARS.c(8840): note: consider using '%zi' in the format string SOLEIL_MARS.c(12292): error C2146: syntax error: missing ';' before identifier 'R' SOLEIL_MARS.c(12292): error C2061: syntax error: identifier 'R' SOLEIL_MARS.c(12293): error C2059: syntax error: '}' SOLEIL_MARS.c(12340): error C2079: 'rconst' uses undefined struct 't_reflec_constant' SOLEIL_MARS.c(12355): error C2061: syntax error: identifier 'refleccq' SOLEIL_MARS.c(12355): error C2059: syntax error: ';' SOLEIL_MARS.c(12355): error C2059: syntax error: '' SOLEIL_MARS.c(12359): error C2061: syntax error: identifier 'reflecc' SOLEIL_MARS.c(12359): error C2059: syntax error: ';' SOLEIL_MARS.c(12359): error C2059: syntax error: '' SOLEIL_MARS.c(12362): error C2061: syntax error: identifier 'reflec_coating' SOLEIL_MARS.c(12362): error C2059: syntax error: ';' SOLEIL_MARS.c(12362): error C2059: syntax error: '' SOLEIL_MARS.c(12364): error C2061: syntax error: identifier 'reflec_bare' SOLEIL_MARS.c(12364): error C2059: syntax error: ';' SOLEIL_MARS.c(12364): error C2059: syntax error: '' SOLEIL_MARS.c(12366): error C2061: syntax error: identifier 'reflec_q_prmtc' SOLEIL_MARS.c(12366): error C2059: syntax error: ';' SOLEIL_MARS.c(12366): error C2059: syntax error: '' SOLEIL_MARS.c(12368): error C2061: syntax error: identifier 'reflec_parratt' SOLEIL_MARS.c(12368): error C2059: syntax error: ';' SOLEIL_MARS.c(12368): error C2059: syntax error: '' SOLEIL_MARS.c(12370): error C2061: syntax error: identifier 'reflec_kinematic' SOLEIL_MARS.c(12370): error C2059: syntax error: ';' SOLEIL_MARS.c(12370): error C2059: syntax error: '' SOLEIL_MARS.c(12372): error C2061: syntax error: identifier 'parrat_reflec_bulk' SOLEIL_MARS.c(12372): error C2059: syntax error: ';' SOLEIL_MARS.c(12372): error C2059: syntax error: '' SOLEIL_MARS.c(12374): error C2061: syntax error: identifier 'reflec_eth_prmtc' SOLEIL_MARS.c(12374): error C2059: syntax error: ';' SOLEIL_MARS.c(12374): error C2059: syntax error: '' SOLEIL_MARS.c(12419): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' SOLEIL_MARS.c(12426): error C2224: left of '.R' must have struct/union type SOLEIL_MARS.c(12494): error C2224: left of '.R' must have struct/union type SOLEIL_MARS.c(12515): error C2224: left of '.R' must have struct/union type SOLEIL_MARS.c(12527): error C2224: left of '.R' must have struct/union type SOLEIL_MARS.c(12707): error C2061: syntax error: identifier 'reflec_coating' SOLEIL_MARS.c(12707): error C2059: syntax error: ';' SOLEIL_MARS.c(12707): error C2059: syntax error: '' SOLEIL_MARS.c(12739): error C2061: syntax error: identifier 'reflec_bare' SOLEIL_MARS.c(12739): error C2059: syntax error: ';' SOLEIL_MARS.c(12739): error C2059: syntax error: '' SOLEIL_MARS.c(12743): error C2061: syntax error: identifier 'reflec_kinematic' SOLEIL_MARS.c(12743): error C2059: syntax error: ';' SOLEIL_MARS.c(12743): error C2059: syntax error: '' SOLEIL_MARS.c(12753): error C2061: syntax error: identifier 'reflec_q_prmtc' SOLEIL_MARS.c(12753): error C2059: syntax error: ';' SOLEIL_MARS.c(12753): error C2059: syntax error: '' SOLEIL_MARS.c(12765): error C2061: syntax error: identifier 'reflec_eth_prmtc' SOLEIL_MARS.c(12765): error C2059: syntax error: ';' SOLEIL_MARS.c(12765): error C2059: syntax error: '' SOLEIL_MARS.c(12775): error C2061: syntax error: identifier 'reflec_parratt' SOLEIL_MARS.c(12775): error C2059: syntax error: ';' SOLEIL_MARS.c(12775): error C2059: syntax error: '' SOLEIL_MARS.c(12798): error C2061: syntax error: identifier 'parrat_reflec_bulk' SOLEIL_MARS.c(12798): error C2059: syntax error: ';' SOLEIL_MARS.c(12798): error C2059: syntax error: '' SOLEIL_MARS.c(12822): error C2061: syntax error: identifier 'refleccq' SOLEIL_MARS.c(12822): error C2059: syntax error: ';' SOLEIL_MARS.c(12822): error C2059: syntax error: '' SOLEIL_MARS.c(12880): error C2224: left of '.R' must have struct/union type SOLEIL_MARS.c(12880): error C2168: 'fabs': too few actual parameters for intrinsic function SOLEIL_MARS.c(12885): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_MARS.c(12885): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_MARS.c(12890): error C2146: syntax error: missing ';' before identifier 'rp' SOLEIL_MARS.c(12890): error C2065: 'rp': undeclared identifier SOLEIL_MARS.c(12891): error C2065: 'rp': undeclared identifier SOLEIL_MARS.c(12892): error C2065: 'rp': undeclared identifier SOLEIL_MARS.c(12892): error C2065: 'rp': undeclared identifier SOLEIL_MARS.c(12892): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_MARS.c(12892): warning C4024: 'conj': different types for formal and actual parameter 1 SOLEIL_MARS.c(12892): error C2088: built-in operator '*' cannot be applied to an operand of type '_Dcomplex' SOLEIL_MARS.c(12892): error C2198: 'double creal(_Dcomplex)': too few arguments for call SOLEIL_MARS.c(12897): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_MARS.c(12897): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_MARS.c(12907): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_MARS.c(12907): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_MARS.c(12912): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_MARS.c(12912): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_MARS.c(12938): error C2061: syntax error: identifier 'reflecceth' SOLEIL_MARS.c(12938): error C2059: syntax error: ';' SOLEIL_MARS.c(12938): error C2059: syntax error: '' SOLEIL_MARS.c(12960): error C2143: syntax error: missing ')' before '*' SOLEIL_MARS.c(12960): error C2143: syntax error: missing '{' before '*' SOLEIL_MARS.c(12960): error C2059: syntax error: 'type' SOLEIL_MARS.c(12963): error C2059: syntax error: ')' SOLEIL_MARS.c(12966): error C2146: syntax error: missing ')' before identifier 'kqvals' SOLEIL_MARS.c(12966): error C2061: syntax error: identifier 'kqvals' SOLEIL_MARS.c(12966): error C2059: syntax error: ';' SOLEIL_MARS.c(12966): error C2059: syntax error: '[' SOLEIL_MARS.c(12969): error C2059: syntax error: ')' SOLEIL_MARS.c(12975): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_MARS.c(12975): error C2061: syntax error: identifier 'chi0' SOLEIL_MARS.c(12975): error C2059: syntax error: ';' SOLEIL_MARS.c(12975): error C2059: syntax error: ',' SOLEIL_MARS.c(12976): error C2059: syntax error: ')' SOLEIL_MARS.c(12984): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_MARS.c(12984): error C2061: syntax error: identifier 'chi0' SOLEIL_MARS.c(12984): error C2059: syntax error: ';' SOLEIL_MARS.c(12984): error C2059: syntax error: ',' SOLEIL_MARS.c(12985): error C2059: syntax error: ')' SOLEIL_MARS.c(13011): error C2143: syntax error: missing ')' before '*' SOLEIL_MARS.c(13011): error C2143: syntax error: missing '{' before '*' SOLEIL_MARS.c(13011): error C2059: syntax error: 'type' SOLEIL_MARS.c(13014): error C2059: syntax error: ')' SOLEIL_MARS.c(13101): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_MARS.c(13101): error C2061: syntax error: identifier 'chi0' SOLEIL_MARS.c(13101): 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" SOLEIL_MARS.c /DUSE_MPI /DYNAMICBASE /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /IC:/Miniconda/envs/mcxtrace/Library/include -DNDEBUG -D_POSIX_SOURCE -std=c99 /IC:\Miniconda\envs\mcxtrace/Library/include -DUSE_OFF -DFUNNEL /link msmpi.lib /LIBPATH:C:/Miniconda/envs/mcxtrace/Library/lib /LIBPATH:C:\Miniconda\envs\mcxtrace/Library/lib xrl.lib' returned non-zero exit status 2. ERROR: Compilation failed for SOLEIL_MARS.c using compiler C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe