INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromators_20241011_190634" INFO: Regenerating c-file: Test_Monochromators.c DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/mcstas -t -o ./Test_Monochromators.c Test_Monochromators.instr Info: 'Monochromator_2foc' is a contributed component. Info: 'NCrystal_sample' is a contributed component. CFLAGS= -Wl,-rpath,CMD(ncrystal-config --show libdir) -Wl,CMD(ncrystal-config --show libpath) -ICMD(ncrystal-config --show includedir) -DFUNNEL --> Added COMPONENT Mono4 USERVAR ncol_9 with type int --> Added COMPONENT Mono4 USERVAR nrow_9 with type int WARNING: The parameter mosaic_AB of Mono6 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: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Mono7 is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Mono7 -> GPU kernel from component Sphere1 ----------------------------------------------------------- DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/mcstas finished INFO: Recompiling: ./Test_Monochromators.out --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show libpath --> launching cmd: ncrystal-config --show includedir DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/arm64-apple-darwin20.0.0-clang -o ./Test_Monochromators.out ./Test_Monochromators.c -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/peterwillendrup/miniforge3/lib -L/Users/peterwillendrup/miniforge3/lib -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/peterwillendrup/miniforge3/include -headerpad_max_install_names -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/peterwillendrup/miniforge3/include -fdebug-prefix-map=/Users/runner/miniforge3/conda-bld/mcstas-suite_1727875387353/work=/usr/local/src/conda/mcstas-core-3.5.2 -fdebug-prefix-map=/Users/peterwillendrup/miniforge3=/usr/local/src/conda-prefix -O2 -g -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -D_DARWIN_C_SOURCE -I/Users/peterwillendrup/miniforge3/include -Wl,-rpath,/Users/peterwillendrup/miniforge3/lib -L/Users/peterwillendrup/miniforge3/lib -fno-PIC -fPIE -flto -O3 -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm -Wl,-rpath,/Users/peterwillendrup/miniforge3/lib -Wl,/Users/peterwillendrup/miniforge3/lib/libNCrystal.3.9.7.dylib -I/Users/peterwillendrup/miniforge3/include -DFUNNEL ./Test_Monochromators.c:11999:38: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 11999 | if(!ext || ext == infile) return infile; | ^~~~~~ ./Test_Monochromators.c:12008:41: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 12008 | && strcasecmp(ext, "res")) return infile; | ^~~~~~ ./Test_Monochromators.c:12011:26: warning: returning 'const char *' from a function with result type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 12011 | if (!OUTFILE) return infile; | ^~~~~~ ./Test_Monochromators.c:16377:6: warning: address of array 'NXcfg' will always evaluate to 'true' [-Wpointer-bool-conversion] 16377 | if(NXcfg && strlen(NXcfg)) | ^~~~~ ~~ ./Test_Monochromators.c:16378:41: warning: address of array 'NXcfg' will always evaluate to 'true' [-Wpointer-bool-conversion] 16378 | stracpy(_Mono7_var._parameters.cfg, NXcfg ? NXcfg : "", 16384); | ^~~~~ ~ ./Test_Monochromators.c:16851:6: warning: address of array 'tofopts' will always evaluate to 'true' [-Wpointer-bool-conversion] 16851 | if(tofopts && strlen(tofopts)) | ^~~~~~~ ~~ ./Test_Monochromators.c:16852:42: warning: address of array 'tofopts' will always evaluate to 'true' [-Wpointer-bool-conversion] 16852 | stracpy(_T3_var._parameters.options, tofopts ? tofopts : "", 16384); | ^~~~~~~ ~ ./Test_Monochromators.c:18770:16: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 18770 | sinTheta = abs(vx)/vel; | ^ ./Test_Monochromators.c:18770:16: note: use function 'fabs' instead 18770 | sinTheta = abs(vx)/vel; | ^~~ | fabs ./Test_Monochromators.c:20639:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20639 | if ((( _instrument_var._parameters.Mono == 1 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20639:47: note: remove extraneous parentheses around the comparison to silence this warning 20639 | if ((( _instrument_var._parameters.Mono == 1 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20639:47: note: use '=' to turn this equality comparison into an assignment 20639 | if ((( _instrument_var._parameters.Mono == 1 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:20661:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20661 | if ((( _instrument_var._parameters.Mono == 2 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20661:47: note: remove extraneous parentheses around the comparison to silence this warning 20661 | if ((( _instrument_var._parameters.Mono == 2 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20661:47: note: use '=' to turn this equality comparison into an assignment 20661 | if ((( _instrument_var._parameters.Mono == 2 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:20683:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20683 | if ((( _instrument_var._parameters.Mono == 3 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20683:47: note: remove extraneous parentheses around the comparison to silence this warning 20683 | if ((( _instrument_var._parameters.Mono == 3 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20683:47: note: use '=' to turn this equality comparison into an assignment 20683 | if ((( _instrument_var._parameters.Mono == 3 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:20705:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20705 | if ((( _instrument_var._parameters.Mono == 4 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20705:47: note: remove extraneous parentheses around the comparison to silence this warning 20705 | if ((( _instrument_var._parameters.Mono == 4 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20705:47: note: use '=' to turn this equality comparison into an assignment 20705 | if ((( _instrument_var._parameters.Mono == 4 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:20727:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20727 | if ((( _instrument_var._parameters.Mono == 5 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20727:47: note: remove extraneous parentheses around the comparison to silence this warning 20727 | if ((( _instrument_var._parameters.Mono == 5 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20727:47: note: use '=' to turn this equality comparison into an assignment 20727 | if ((( _instrument_var._parameters.Mono == 5 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:20749:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20749 | if ((( _instrument_var._parameters.Mono == 6 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20749:47: note: remove extraneous parentheses around the comparison to silence this warning 20749 | if ((( _instrument_var._parameters.Mono == 6 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20749:47: note: use '=' to turn this equality comparison into an assignment 20749 | if ((( _instrument_var._parameters.Mono == 6 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:20771:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 20771 | if ((( _instrument_var._parameters.Mono == 7 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:20771:47: note: remove extraneous parentheses around the comparison to silence this warning 20771 | if ((( _instrument_var._parameters.Mono == 7 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:20771:47: note: use '=' to turn this equality comparison into an assignment 20771 | if ((( _instrument_var._parameters.Mono == 7 ))) // conditional WHEN execution | ^~ | = 15 warnings generated. DEBUG: CMD: /Users/peterwillendrup/miniforge3/bin/arm64-apple-darwin20.0.0-clang finished INFO: ===