INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromators_20251212_035125" INFO: Regenerating c-file: Test_Monochromators.c DEBUG: CMD: /Users/runner/miniconda3/envs/mcstas/bin/mcstas -t -o ./Test_Monochromators.c Test_Monochromators.instr Info: 'Monochromator_2foc' is a contributed component. CFLAGS= @NCRYSTALFLAGS@ -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/runner/miniconda3/envs/mcstas/bin/mcstas finished INFO: Recompiling: ./Test_Monochromators.out --> launching cmd: ncrystal-config --show buildflags DEBUG: CMD: mpicc -o ./Test_Monochromators.out ./Test_Monochromators.c -lm -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/runner/miniconda3/envs/mcstas/lib -L/Users/runner/miniconda3/envs/mcstas/lib -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/mcstas/include -DUSE_MPI -lmpi -headerpad_max_install_names -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/mcstas/include -O2 -g -DNDEBUG -isysroot /Applications/Xcode_16.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -D_DARWIN_C_SOURCE -I/Users/runner/miniconda3/envs/mcstas/include -Wl,-rpath,/Users/runner/miniconda3/envs/mcstas/lib -L/Users/runner/miniconda3/envs/mcstas/lib -fno-PIC -fPIE -flto -O3 -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm -Wl,-rpath,/Users/runner/miniconda3/envs/mcstas/lib -Wl,/Users/runner/miniconda3/envs/mcstas/lib/libNCrystal.dylib -I/Users/runner/miniconda3/envs/mcstas/include -DFUNNEL ./Test_Monochromators.c:16890:6: warning: address of array 'NXcfg' will always evaluate to 'true' [-Wpointer-bool-conversion] 16890 | if(NXcfg && strlen(NXcfg)) | ^~~~~ ~~ ./Test_Monochromators.c:16891:41: warning: address of array 'NXcfg' will always evaluate to 'true' [-Wpointer-bool-conversion] 16891 | stracpy(_Mono7_var._parameters.cfg, NXcfg ? NXcfg : "", 16384); | ^~~~~ ~ ./Test_Monochromators.c:17434:6: warning: address of array 'tofopts' will always evaluate to 'true' [-Wpointer-bool-conversion] 17434 | if(tofopts && strlen(tofopts)) | ^~~~~~~ ~~ ./Test_Monochromators.c:17435:42: warning: address of array 'tofopts' will always evaluate to 'true' [-Wpointer-bool-conversion] 17435 | stracpy(_T3_var._parameters.options, tofopts ? tofopts : "", 16384); | ^~~~~~~ ~ ./Test_Monochromators.c:19393:16: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] 19393 | sinTheta = abs(vx)/vel; | ^ ./Test_Monochromators.c:19393:16: note: use function 'fabs' instead 19393 | sinTheta = abs(vx)/vel; | ^~~ | fabs ./Test_Monochromators.c:21282:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21282 | if ((( _instrument_var._parameters.Mono == 1 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21282:47: note: remove extraneous parentheses around the comparison to silence this warning 21282 | if ((( _instrument_var._parameters.Mono == 1 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21282:47: note: use '=' to turn this equality comparison into an assignment 21282 | if ((( _instrument_var._parameters.Mono == 1 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:21304:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21304 | if ((( _instrument_var._parameters.Mono == 2 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21304:47: note: remove extraneous parentheses around the comparison to silence this warning 21304 | if ((( _instrument_var._parameters.Mono == 2 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21304:47: note: use '=' to turn this equality comparison into an assignment 21304 | if ((( _instrument_var._parameters.Mono == 2 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:21326:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21326 | if ((( _instrument_var._parameters.Mono == 3 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21326:47: note: remove extraneous parentheses around the comparison to silence this warning 21326 | if ((( _instrument_var._parameters.Mono == 3 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21326:47: note: use '=' to turn this equality comparison into an assignment 21326 | if ((( _instrument_var._parameters.Mono == 3 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:21348:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21348 | if ((( _instrument_var._parameters.Mono == 4 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21348:47: note: remove extraneous parentheses around the comparison to silence this warning 21348 | if ((( _instrument_var._parameters.Mono == 4 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21348:47: note: use '=' to turn this equality comparison into an assignment 21348 | if ((( _instrument_var._parameters.Mono == 4 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:21370:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21370 | if ((( _instrument_var._parameters.Mono == 5 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21370:47: note: remove extraneous parentheses around the comparison to silence this warning 21370 | if ((( _instrument_var._parameters.Mono == 5 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21370:47: note: use '=' to turn this equality comparison into an assignment 21370 | if ((( _instrument_var._parameters.Mono == 5 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:21392:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21392 | if ((( _instrument_var._parameters.Mono == 6 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21392:47: note: remove extraneous parentheses around the comparison to silence this warning 21392 | if ((( _instrument_var._parameters.Mono == 6 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21392:47: note: use '=' to turn this equality comparison into an assignment 21392 | if ((( _instrument_var._parameters.Mono == 6 ))) // conditional WHEN execution | ^~ | = ./Test_Monochromators.c:21414:47: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 21414 | if ((( _instrument_var._parameters.Mono == 7 ))) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Monochromators.c:21414:47: note: remove extraneous parentheses around the comparison to silence this warning 21414 | if ((( _instrument_var._parameters.Mono == 7 ))) // conditional WHEN execution | ~ ^ ~ ./Test_Monochromators.c:21414:47: note: use '=' to turn this equality comparison into an assignment 21414 | if ((( _instrument_var._parameters.Mono == 7 ))) // conditional WHEN execution | ^~ | = 12 warnings generated. ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcstas/lib' ignored ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcstas/lib' ignored ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcstas/lib' ignored DEBUG: CMD: mpicc finished DEBUG: CMD: otool -l ./Test_Monochromators.out DEBUG: CMD: otool finished INFO: ===