INFO: No output directory specified (--dir) INFO: Using directory: "Test_Mono_20251123_030140" INFO: Regenerating c-file: Test_Mono.c DEBUG: CMD: /Users/runner/miniconda3/envs/mcxtrace/bin/mcxtrace -t -o ./Test_Mono.c Test_Mono.instr Warning: 'Perfect_crystal' is an obsolete component (not maintained). Info: 'Bragg_crystal_BC' is a contributed component. Info: 'Bragg_crystal_bent_BC' is a contributed component. Info: 'Bragg_crystal_simple' is a contributed component. CFLAGS= -std=c99 WARNING: The parameter mosaic_AB of MonoBCsx 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 MonoBCsx 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: ----------------------------------------------------------- DEBUG: CMD: /Users/runner/miniconda3/envs/mcxtrace/bin/mcxtrace finished INFO: Recompiling: ./Test_Mono.out DEBUG: CMD: mpicc -o ./Test_Mono.out ./Test_Mono.c -lm -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/runner/miniconda3/envs/mcxtrace/lib -L/Users/runner/miniconda3/envs/mcxtrace/lib -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/mcxtrace/include -DUSE_MPI -lmpi -headerpad_max_install_names -ftree-vectorize -fPIC -fstack-protector-strong -O2 -pipe -isystem /Users/runner/miniconda3/envs/mcxtrace/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/mcxtrace/include -Wl,-rpath,/Users/runner/miniconda3/envs/mcxtrace/lib -L/Users/runner/miniconda3/envs/mcxtrace/lib -fno-PIC -fPIE -flto -O3 -march=native -fno-math-errno -ftree-vectorize -g -DNDEBUG -D_POSIX_SOURCE -std=c99 -lm -std=c99 ./Test_Mono.c:14056:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 14056 | if (status=Table_Read(&(m_t),material,0)==-1){ | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Test_Mono.c:14056:15: note: place parentheses around the assignment to silence this warning 14056 | if (status=Table_Read(&(m_t),material,0)==-1){ | ^ | ( ) ./Test_Mono.c:14056:15: note: use '==' to turn this assignment into an equality comparison 14056 | if (status=Table_Read(&(m_t),material,0)==-1){ | ^ | == ./Test_Mono.c:14066:80: warning: data argument not used by format string [-Wformat-extra-args] 14066 | fprintf(stderr,"Error(%s): No material file specified\n",NAME_CURRENT_COMP,material); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ./Test_Mono.c:14036:20: note: expanded from macro 'material' 14036 | #define material (_comp->_parameters.material) | ^ ./Test_Mono.c:14069:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 14069 | if (status=Table_Read(&(f0_t),form_factors,0)==-1){ | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./Test_Mono.c:14069:15: note: place parentheses around the assignment to silence this warning 14069 | if (status=Table_Read(&(f0_t),form_factors,0)==-1){ | ^ | ( ) ./Test_Mono.c:14069:15: note: use '==' to turn this assignment into an equality comparison 14069 | if (status=Table_Read(&(f0_t),form_factors,0)==-1){ | ^ | == ./Test_Mono.c:14659:92: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 14659 | printf("Single_crystal: %s: Warning: No surf_dir surface normal set. Ignoring CTR.\n", i, NAME_CURRENT_COMP); | ~~ ^ | %d ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14659:95: warning: data argument not used by format string [-Wformat-extra-args] 14659 | printf("Single_crystal: %s: Warning: No surf_dir surface normal set. Ignoring CTR.\n", i, NAME_CURRENT_COMP); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ./Test_Mono.c:776:27: note: expanded from macro 'NAME_CURRENT_COMP' 776 | #define NAME_CURRENT_COMP (_comp->_name) | ^ ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14668:100: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 14668 | printf("Single_crystal: %s: Warning: surf_FT2[%i] < 0. Must all be >= 0. Ignoring CTR.\n", i, NAME_CURRENT_COMP); | ~~ ^ | %d ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14668:103: warning: format specifies type 'int' but the argument has type 'char *' [-Wformat] 14668 | printf("Single_crystal: %s: Warning: surf_FT2[%i] < 0. Must all be >= 0. Ignoring CTR.\n", i, NAME_CURRENT_COMP); | ~~ ^~~~~~~~~~~~~~~~~ | %s ./Test_Mono.c:776:27: note: expanded from macro 'NAME_CURRENT_COMP' 776 | #define NAME_CURRENT_COMP (_comp->_name) | ^~~~~~~~~~~~~~ ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14679:100: warning: format specifies type 'char *' but the argument has type 'double' [-Wformat] 14679 | printf("Single_crystal: %s: Warning: surf_k = [%g:%g]. Must be around 0. Ignoring CTR.\n", min_k, max_k, NAME_CURRENT_COMP); | ~~ ^~~~~ | %f ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14679:114: warning: format specifies type 'double' but the argument has type 'char *' [-Wformat] 14679 | printf("Single_crystal: %s: Warning: surf_k = [%g:%g]. Must be around 0. Ignoring CTR.\n", min_k, max_k, NAME_CURRENT_COMP); | ~~ ^~~~~~~~~~~~~~~~~ | %s ./Test_Mono.c:776:27: note: expanded from macro 'NAME_CURRENT_COMP' 776 | #define NAME_CURRENT_COMP (_comp->_name) | ^~~~~~~~~~~~~~ ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14685:97: warning: format specifies type 'char *' but the argument has type 'double' [-Wformat] 14685 | printf("Single_crystal: %s: Warning: sum(surf_FT2) <= 0. Must be > 0. Ignoring CTR.\n", min_k, max_k, NAME_CURRENT_COMP); | ~~ ^~~~~ | %f ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:14685:104: warning: data argument not used by format string [-Wformat-extra-args] 14685 | printf("Single_crystal: %s: Warning: sum(surf_FT2) <= 0. Must be > 0. Ignoring CTR.\n", min_k, max_k, NAME_CURRENT_COMP); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ./Test_Mono.c:610:5: note: expanded from macro 'MPI_MASTER' 610 | { statement; } \ | ^~~~~~~~~ ./Test_Mono.c:17220:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17220 | if ((_instrument_var._parameters.Mono == 0)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17220:45: note: remove extraneous parentheses around the comparison to silence this warning 17220 | if ((_instrument_var._parameters.Mono == 0)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17220:45: note: use '=' to turn this equality comparison into an assignment 17220 | if ((_instrument_var._parameters.Mono == 0)) // conditional WHEN execution | ^~ | = ./Test_Mono.c:17242:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17242 | if ((_instrument_var._parameters.Mono == 1)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17242:45: note: remove extraneous parentheses around the comparison to silence this warning 17242 | if ((_instrument_var._parameters.Mono == 1)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17242:45: note: use '=' to turn this equality comparison into an assignment 17242 | if ((_instrument_var._parameters.Mono == 1)) // conditional WHEN execution | ^~ | = ./Test_Mono.c:17264:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17264 | if ((_instrument_var._parameters.Mono == 2)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17264:45: note: remove extraneous parentheses around the comparison to silence this warning 17264 | if ((_instrument_var._parameters.Mono == 2)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17264:45: note: use '=' to turn this equality comparison into an assignment 17264 | if ((_instrument_var._parameters.Mono == 2)) // conditional WHEN execution | ^~ | = ./Test_Mono.c:17286:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17286 | if ((_instrument_var._parameters.Mono == 3)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17286:45: note: remove extraneous parentheses around the comparison to silence this warning 17286 | if ((_instrument_var._parameters.Mono == 3)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17286:45: note: use '=' to turn this equality comparison into an assignment 17286 | if ((_instrument_var._parameters.Mono == 3)) // conditional WHEN execution | ^~ | = ./Test_Mono.c:17308:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17308 | if ((_instrument_var._parameters.Mono == 4)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17308:45: note: remove extraneous parentheses around the comparison to silence this warning 17308 | if ((_instrument_var._parameters.Mono == 4)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17308:45: note: use '=' to turn this equality comparison into an assignment 17308 | if ((_instrument_var._parameters.Mono == 4)) // conditional WHEN execution | ^~ | = ./Test_Mono.c:17330:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17330 | if ((_instrument_var._parameters.Mono == 5)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17330:45: note: remove extraneous parentheses around the comparison to silence this warning 17330 | if ((_instrument_var._parameters.Mono == 5)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17330:45: note: use '=' to turn this equality comparison into an assignment 17330 | if ((_instrument_var._parameters.Mono == 5)) // conditional WHEN execution | ^~ | = ./Test_Mono.c:17352:45: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 17352 | if ((_instrument_var._parameters.Mono == 6)) // conditional WHEN execution | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ ./Test_Mono.c:17352:45: note: remove extraneous parentheses around the comparison to silence this warning 17352 | if ((_instrument_var._parameters.Mono == 6)) // conditional WHEN execution | ~ ^ ~ ./Test_Mono.c:17352:45: note: use '=' to turn this equality comparison into an assignment 17352 | if ((_instrument_var._parameters.Mono == 6)) // conditional WHEN execution | ^~ | = 18 warnings generated. ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcxtrace/lib' ignored ld: warning: duplicate -rpath '/Users/runner/miniconda3/envs/mcxtrace/lib' ignored DEBUG: CMD: mpicc finished DEBUG: CMD: otool -l ./Test_Mono.out DEBUG: CMD: otool finished INFO: ===