INFO: No output directory specified (--dir) INFO: Using directory: "SOLEIL_PX2a_20251123_030303" INFO: Regenerating c-file: SOLEIL_PX2a.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_PX2a.c SOLEIL_PX2a.instr CFLAGS= @GSLFLAGS@ -DFUNNEL -std=c99 WARNING: The parameter mosaic_AB 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 surf_dir 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: Component undulator is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component undulator -> GPU kernel from component bragg_crystal_location -> SPLIT within buffer at component sample ----------------------------------------------------------- DEBUG: CMD: mcxtrace finished INFO: Recompiling: SOLEIL_PX2a.exe DEBUG: CMD: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" SOLEIL_PX2a.c /DUSE_MPI /DYNAMICBASE /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /IC:/Miniconda/envs/mcxtrace/Library/include -DNDEBUG -D_POSIX_SOURCE /IC:\Miniconda\envs\mcxtrace/Library/include -DFUNNEL -std=c99 /link msmpi.lib /LIBPATH:C:/Miniconda/envs/mcxtrace/Library/lib /LIBPATH:C:\Miniconda\envs\mcxtrace/Library/lib gsl.lib gslcblas.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_PX2a.c SOLEIL_PX2a.c(1824): warning C4477: 'fprintf' : format string '%li' requires an argument of type 'long', but variadic argument 1 has type 'size_t' SOLEIL_PX2a.c(1824): note: consider using '%zi' in the format string SOLEIL_PX2a.c(7149): error C2143: syntax error: missing ')' before '*' SOLEIL_PX2a.c(7149): error C2143: syntax error: missing '{' before '*' SOLEIL_PX2a.c(7149): error C2059: syntax error: 'type' SOLEIL_PX2a.c(7152): error C2059: syntax error: ')' SOLEIL_PX2a.c(7155): error C2146: syntax error: missing ')' before identifier 'kqvals' SOLEIL_PX2a.c(7155): error C2061: syntax error: identifier 'kqvals' SOLEIL_PX2a.c(7155): error C2059: syntax error: ';' SOLEIL_PX2a.c(7155): error C2059: syntax error: '[' SOLEIL_PX2a.c(7158): error C2059: syntax error: ')' SOLEIL_PX2a.c(7164): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_PX2a.c(7164): error C2061: syntax error: identifier 'chi0' SOLEIL_PX2a.c(7164): error C2059: syntax error: ';' SOLEIL_PX2a.c(7164): error C2059: syntax error: ',' SOLEIL_PX2a.c(7165): error C2059: syntax error: ')' SOLEIL_PX2a.c(7173): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_PX2a.c(7173): error C2061: syntax error: identifier 'chi0' SOLEIL_PX2a.c(7173): error C2059: syntax error: ';' SOLEIL_PX2a.c(7173): error C2059: syntax error: ',' SOLEIL_PX2a.c(7174): error C2059: syntax error: ')' SOLEIL_PX2a.c(8786): error C2143: syntax error: missing ')' before '*' SOLEIL_PX2a.c(8786): error C2143: syntax error: missing '{' before '*' SOLEIL_PX2a.c(8786): error C2059: syntax error: 'type' SOLEIL_PX2a.c(8789): error C2059: syntax error: ')' SOLEIL_PX2a.c(8876): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_PX2a.c(8876): error C2061: syntax error: identifier 'chi0' SOLEIL_PX2a.c(8876): error C2059: syntax error: ';' SOLEIL_PX2a.c(8876): error C2059: syntax error: ',' SOLEIL_PX2a.c(8878): error C2059: syntax error: ')' SOLEIL_PX2a.c(8959): error C2146: syntax error: missing ')' before identifier 'kqvals' SOLEIL_PX2a.c(8959): error C2061: syntax error: identifier 'kqvals' SOLEIL_PX2a.c(8959): error C2059: syntax error: ';' SOLEIL_PX2a.c(8959): error C2059: syntax error: '[' SOLEIL_PX2a.c(8962): error C2059: syntax error: ')' SOLEIL_PX2a.c(9093): error C2146: syntax error: missing ')' before identifier 'chi0' SOLEIL_PX2a.c(9093): error C2061: syntax error: identifier 'chi0' SOLEIL_PX2a.c(9093): error C2059: syntax error: ';' SOLEIL_PX2a.c(9093): error C2059: syntax error: ',' SOLEIL_PX2a.c(9094): error C2059: syntax error: ')' SOLEIL_PX2a.c(9346): error C2146: syntax error: missing ';' before identifier 'R' SOLEIL_PX2a.c(9346): error C2061: syntax error: identifier 'R' SOLEIL_PX2a.c(9347): error C2059: syntax error: '}' SOLEIL_PX2a.c(9394): error C2079: 'rconst' uses undefined struct 't_reflec_constant' SOLEIL_PX2a.c(9409): error C2061: syntax error: identifier 'refleccq' SOLEIL_PX2a.c(9409): error C2059: syntax error: ';' SOLEIL_PX2a.c(9409): error C2059: syntax error: '' SOLEIL_PX2a.c(9413): error C2061: syntax error: identifier 'reflecc' SOLEIL_PX2a.c(9413): error C2059: syntax error: ';' SOLEIL_PX2a.c(9413): error C2059: syntax error: '' SOLEIL_PX2a.c(9416): error C2061: syntax error: identifier 'reflec_coating' SOLEIL_PX2a.c(9416): error C2059: syntax error: ';' SOLEIL_PX2a.c(9416): error C2059: syntax error: '' SOLEIL_PX2a.c(9418): error C2061: syntax error: identifier 'reflec_bare' SOLEIL_PX2a.c(9418): error C2059: syntax error: ';' SOLEIL_PX2a.c(9418): error C2059: syntax error: '' SOLEIL_PX2a.c(9420): error C2061: syntax error: identifier 'reflec_q_prmtc' SOLEIL_PX2a.c(9420): error C2059: syntax error: ';' SOLEIL_PX2a.c(9420): error C2059: syntax error: '' SOLEIL_PX2a.c(9422): error C2061: syntax error: identifier 'reflec_parratt' SOLEIL_PX2a.c(9422): error C2059: syntax error: ';' SOLEIL_PX2a.c(9422): error C2059: syntax error: '' SOLEIL_PX2a.c(9424): error C2061: syntax error: identifier 'reflec_kinematic' SOLEIL_PX2a.c(9424): error C2059: syntax error: ';' SOLEIL_PX2a.c(9424): error C2059: syntax error: '' SOLEIL_PX2a.c(9426): error C2061: syntax error: identifier 'parrat_reflec_bulk' SOLEIL_PX2a.c(9426): error C2059: syntax error: ';' SOLEIL_PX2a.c(9426): error C2059: syntax error: '' SOLEIL_PX2a.c(9428): error C2061: syntax error: identifier 'reflec_eth_prmtc' SOLEIL_PX2a.c(9428): error C2059: syntax error: ';' SOLEIL_PX2a.c(9428): error C2059: syntax error: '' SOLEIL_PX2a.c(9473): warning C4311: 'type cast': pointer truncation from 'double *' to 'unsigned int' SOLEIL_PX2a.c(9480): error C2224: left of '.R' must have struct/union type SOLEIL_PX2a.c(9548): error C2224: left of '.R' must have struct/union type SOLEIL_PX2a.c(9569): error C2224: left of '.R' must have struct/union type SOLEIL_PX2a.c(9581): error C2224: left of '.R' must have struct/union type SOLEIL_PX2a.c(9761): error C2061: syntax error: identifier 'reflec_coating' SOLEIL_PX2a.c(9761): error C2059: syntax error: ';' SOLEIL_PX2a.c(9761): error C2059: syntax error: '' SOLEIL_PX2a.c(9793): error C2061: syntax error: identifier 'reflec_bare' SOLEIL_PX2a.c(9793): error C2059: syntax error: ';' SOLEIL_PX2a.c(9793): error C2059: syntax error: '' SOLEIL_PX2a.c(9797): error C2061: syntax error: identifier 'reflec_kinematic' SOLEIL_PX2a.c(9797): error C2059: syntax error: ';' SOLEIL_PX2a.c(9797): error C2059: syntax error: '' SOLEIL_PX2a.c(9807): error C2061: syntax error: identifier 'reflec_q_prmtc' SOLEIL_PX2a.c(9807): error C2059: syntax error: ';' SOLEIL_PX2a.c(9807): error C2059: syntax error: '' SOLEIL_PX2a.c(9819): error C2061: syntax error: identifier 'reflec_eth_prmtc' SOLEIL_PX2a.c(9819): error C2059: syntax error: ';' SOLEIL_PX2a.c(9819): error C2059: syntax error: '' SOLEIL_PX2a.c(9829): error C2061: syntax error: identifier 'reflec_parratt' SOLEIL_PX2a.c(9829): error C2059: syntax error: ';' SOLEIL_PX2a.c(9829): error C2059: syntax error: '' SOLEIL_PX2a.c(9852): error C2061: syntax error: identifier 'parrat_reflec_bulk' SOLEIL_PX2a.c(9852): error C2059: syntax error: ';' SOLEIL_PX2a.c(9852): error C2059: syntax error: '' SOLEIL_PX2a.c(9876): error C2061: syntax error: identifier 'refleccq' SOLEIL_PX2a.c(9876): error C2059: syntax error: ';' SOLEIL_PX2a.c(9876): error C2059: syntax error: '' SOLEIL_PX2a.c(9934): error C2224: left of '.R' must have struct/union type SOLEIL_PX2a.c(9934): error C2168: 'fabs': too few actual parameters for intrinsic function SOLEIL_PX2a.c(9939): error C2440: 'function': cannot convert from 'int' to '_Dcomplex' SOLEIL_PX2a.c(9939): warning C4024: 'cabs': different types for formal and actual parameter 1 SOLEIL_PX2a.c(9944): error C2146: syntax error: missing ';' before identifier 'rp' SOLEIL_PX2a.c(9944): 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_PX2a.c /DUSE_MPI /DYNAMICBASE /DWIN32 /D_WINDOWS /Zi /O2 /Ob1 /DNDEBUG /IC:/Miniconda/envs/mcxtrace/Library/include -DNDEBUG -D_POSIX_SOURCE /IC:\Miniconda\envs\mcxtrace/Library/include -DFUNNEL -std=c99 /link msmpi.lib /LIBPATH:C:/Miniconda/envs/mcxtrace/Library/lib /LIBPATH:C:\Miniconda\envs\mcxtrace/Library/lib gsl.lib gslcblas.lib' returned non-zero exit status 2. ERROR: Compilation failed for SOLEIL_PX2a.c using compiler C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe