Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mingw and 4.0.2411 error #718

Open
3rav opened this issue Dec 12, 2024 · 5 comments
Open

mingw and 4.0.2411 error #718

3rav opened this issue Dec 12, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@3rav
Copy link

3rav commented Dec 12, 2024

I try to update package for msys2/mingw to new version 4.0.2411 but I have this error:

mingw64

 [16/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/argv.c.obj
  C:/_/B/src/parsec-4.0.2411/parsec/utils/argv.c: In function 'parsec_argv_join_range':
  C:/_/B/src/parsec-4.0.2411/parsec/utils/argv.c:362:20: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
    362 |     str[--str_len] = '\0';
        |     ~~~~~~~~~~~~~~~^~~~~~
  C:/_/B/src/parsec-4.0.2411/parsec/utils/argv.c:357:32: note: at offset -1 into destination object of size 0 allocated by 'malloc'
    357 |     if (NULL == (str = (char*) malloc(str_len)))
        |                                ^~~~~~~~~~~~~~~
  [17/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/class/info.c.obj
  [18/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj
  FAILED: parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj 
  D:\M\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj -MF parsec\CMakeFiles\parsec-base-obj.dir\utils\process_name.c.obj.d -o parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c: In function 'parsec_process_name':
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c:29:11: error: implicit declaration of function 'readlink' [-Wimplicit-function-declaration]
     29 |     ret = readlink("/proc/self/exe", name, len);
        |           ^~~~~~~~
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c:36:13: error: implicit declaration of function 'rindex' [-Wimplicit-function-declaration]
     36 |     sname = rindex(name, PARSEC_PATH_SEP[0]);
        |             ^~~~~~
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c:36:13: warning: incompatible implicit declaration of built-in function 'rindex' [-Wbuiltin-declaration-mismatch]
  [19/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/colors.c.obj
  [20/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/cmd_line.c.obj
  [21/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/parsec_environ.c.obj
  [22/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/keyval_parse.c.obj
  [23/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/installdirs.c.obj
  ninja: build stopped: subcommand failed.
  ==> ERROR: A failure occurred in build().
      Aborting...
  ==> Removing installed dependencies...
  checking dependencies...

clang

[18/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj
  FAILED: parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj 
  D:\M\msys64\clang64\bin\clang.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -fcolor-diagnostics -pthread -MD -MT parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj -MF parsec\CMakeFiles\parsec-base-obj.dir\utils\process_name.c.obj.d -o parsec/CMakeFiles/parsec-base-obj.dir/utils/process_name.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c:29:11: error: call to undeclared function 'readlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     29 |     ret = readlink("/proc/self/exe", name, len);
        |           ^
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c:36:13: error: call to undeclared library function 'rindex' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     36 |     sname = rindex(name, PARSEC_PATH_SEP[0]);
        |             ^
  C:/_/B/src/parsec-4.0.2411/parsec/utils/process_name.c:36:13: note: include the header <strings.h> or explicitly provide a declaration for 'rindex'
  
  2 errors generated.
  
  [19/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/cmd_line.c.obj
  [20/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/colors.c.obj
  [21/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/parsec_environ.c.obj
  [22/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/installdirs.c.obj
  [23/171] Building C object parsec/CMakeFiles/parsec-base-obj.dir/utils/keyval_parse.c.obj
  ninja: build stopped: subcommand failed.
  ==> ERROR: A failure occurred in build().
      Aborting...
  ==> Removing installed dependencies...
  checking dependencies...
@3rav 3rav added the bug Something isn't working label Dec 12, 2024
@3rav
Copy link
Author

3rav commented Dec 12, 2024

The error above is solved by adding the flag: -Wno-implicit-function-declaration
Unfortunately, further errors appeared:

  • mingw64 (gcc):
  [85/171] Building C object parsec/CMakeFiles/parsec.dir/parsec.c.obj
  FAILED: parsec/CMakeFiles/parsec.dir/parsec.c.obj 
  D:\M\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec.dir/parsec.c.obj -MF parsec\CMakeFiles\parsec.dir\parsec.c.obj.d -o parsec/CMakeFiles/parsec.dir/parsec.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/parsec.c
  In file included from C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:35:
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
    429 |     uint32_t nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
        |                         parsec_remote_dep_on
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: note: each undeclared identifier is reported only once for each function it appears in
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:438:20: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
    438 |     int nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
        |                    parsec_remote_dep_on
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c: In function '__parsec_thread_init':
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:346:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    346 |     void *ret = (void*)(long)__parsec_context_wait(es);
        |                 ^
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c: In function 'parsec_taskpool_sync_ids_context':
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:2112:49: warning: unused parameter 'comm' [-Wunused-parameter]
   2112 | void parsec_taskpool_sync_ids_context( intptr_t comm )
        |                                        ~~~~~~~~~^~~~
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c: In function 'parsec_taskpool_sync_ids':
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:2143:47: error: 'MPI_COMM_WORLD' undeclared (first use in this function)
   2143 |   parsec_taskpool_sync_ids_context( (intptr_t)MPI_COMM_WORLD );
        |                                               ^~~~~~~~~~~~~~
  [86/171] Building C object parsec/CMakeFiles/parsec.dir/data_distribution.c.obj
  [87/171] Building C object parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj
  FAILED: parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj 
  D:\M\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj -MF parsec\CMakeFiles\parsec.dir\parsec_reshape.c.obj.d -o parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/parsec_reshape.c
  In file included from C:/_/B/src/parsec-4.0.2411/parsec/parsec_reshape.c:14:
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
    429 |     uint32_t nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
        |                         parsec_remote_dep_on
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: note: each undeclared identifier is reported only once for each function it appears in
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:438:20: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
    438 |     int nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
        |                    parsec_remote_dep_on
  C:/_/B/src/parsec-4.0.2411/parsec/parsec_reshape.c: In function 'parsec_set_up_reshape_promise':
  C:/_/B/src/parsec-4.0.2411/parsec/parsec_reshape.c:454:85: error: 'MPI_COMM_WORLD' undeclared (first use in this function)
    454 |             MPI_Pack_size(aux_data.remote.dst_count, aux_data.remote.dst_datatype , MPI_COMM_WORLD, &dsize);
        |                                                                                     ^~~~~~~~~~~~~~
  [88/171] Building C object parsec/CMakeFiles/parsec.dir/data.c.obj
  FAILED: parsec/CMakeFiles/parsec.dir/data.c.obj 
  D:\M\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec.dir/data.c.obj -MF parsec\CMakeFiles\parsec.dir\data.c.obj.d -o parsec/CMakeFiles/parsec.dir/data.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/data.c
  In file included from C:/_/B/src/parsec-4.0.2411/parsec/data.c:16:
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
    429 |     uint32_t nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
        |                         parsec_remote_dep_on
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: note: each undeclared identifier is reported only once for each function it appears in
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:438:20: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
    438 |     int nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                    ^~~~~~~~~~~~~~~~~~~~~~~~~
        |                    parsec_remote_dep_on
  [89/171] Building C object parsec/CMakeFiles/parsec.dir/debug_marks.c.obj
  [90/171] Building C object parsec/CMakeFiles/parsec.dir/mca/mca_repository.c.obj
  ninja: build stopped: subcommand failed.
  ==> ERROR: A failure occurred in build().
      Aborting...
  • clang64 (clang):
  [87/171] Building C object parsec/CMakeFiles/parsec.dir/parsec.c.obj
  FAILED: parsec/CMakeFiles/parsec.dir/parsec.c.obj 
  D:\M\msys64\clang64\bin\clang.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -fcolor-diagnostics -pthread -MD -MT parsec/CMakeFiles/parsec.dir/parsec.c.obj -MF parsec\CMakeFiles\parsec.dir\parsec.c.obj.d -o parsec/CMakeFiles/parsec.dir/parsec.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/parsec.c
  In file included from C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:35:
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: error: use of undeclared identifier 'parsec_remote_dep_context'
    429 |     uint32_t nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                         ^
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:438:20: error: use of undeclared identifier 'parsec_remote_dep_context'
    438 |     int nb_nodes = parsec_remote_dep_context.max_nodes_number;
        |                    ^
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:265:5: warning: call to undeclared function 'gettimeofday'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    265 |     gettimeofday(&tv_now, NULL);
        |     ^
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:346:17: warning: cast to 'void *' from smaller integer type 'long' [-Wint-to-void-pointer-cast]
    346 |     void *ret = (void*)(long)__parsec_context_wait(es);
        |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:2112:49: warning: unused parameter 'comm' [-Wunused-parameter]
  
   2112 | void parsec_taskpool_sync_ids_context( intptr_t comm )
  
        |                                                 ^
  
  C:/_/B/src/parsec-4.0.2411/parsec/parsec.c:2143:47: error: use of undeclared identifier 'MPI_COMM_WORLD'
  
   2143 |   parsec_taskpool_sync_ids_context( (intptr_t)MPI_COMM_WORLD );
  
        |                                               ^
  
  3 warnings and 3 errors generated.
  
  [88/171] Building C object parsec/CMakeFiles/parsec.dir/data.c.obj
  FAILED: parsec/CMakeFiles/parsec.dir/data.c.obj 
  D:\M\msys64\clang64\bin\clang.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/_/B/src/build-x86_64-w64-mingw32-static -IC:/_/B/src/parsec-4.0.2411/parsec/include -IC:/_/B/src/parsec-4.0.2411 -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/_/B/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wp,-D__USE_MINGW_ANSI_STDIO=1 -D_GNU_SOURCE -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -fcolor-diagnostics -pthread -MD -MT parsec/CMakeFiles/parsec.dir/data.c.obj -MF parsec\CMakeFiles\parsec.dir\data.c.obj.d -o parsec/CMakeFiles/parsec.dir/data.c.obj -c C:/_/B/src/parsec-4.0.2411/parsec/data.c
  In file included from C:/_/B/src/parsec-4.0.2411/parsec/data.c:16:
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:429:25: error: use of undeclared identifier 'parsec_remote_dep_context'
  
    429 |     uint32_t nb_nodes = parsec_remote_dep_context.max_nodes_number;
  
        |                         ^
  
  C:/_/B/src/parsec-4.0.2411/parsec/remote_dep.h:438:20: error: use of undeclared identifier 'parsec_remote_dep_context'
  
    438 |     int nb_nodes = parsec_remote_dep_context.max_nodes_number;
  
        |                    ^
  
  2 errors generated.
  
  [89/171] Building C object parsec/CMakeFiles/parsec.dir/debug_marks.c.obj
  [90/171] Building C object parsec/CMakeFiles/parsec.dir/mca/mca_repository.c.obj
  [91/171] Building C object parsec/CMakeFiles/parsec.dir/mempool.c.obj
  ninja: build stopped: subcommand failed.
  ==> ERROR: A failure occurred in build().
      Aborting...

@bosilca
Copy link
Contributor

bosilca commented Dec 12, 2024

I don't have a mingw machine to test it anymore. Also it appears you are compiling the single node version, definitively not the standard way to use parsec.

Please try the following patch and let me know the outcome

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 176b9361c..6423d8262 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -536,6 +536,7 @@ if( NOT PARSEC_HAVE_RUSAGE_THREAD )
 endif( NOT PARSEC_HAVE_RUSAGE_THREAD)
 check_include_files(limits.h PARSEC_HAVE_LIMITS_H)
 check_include_files(string.h PARSEC_HAVE_STRING_H)
+check_include_files(strings.h PARSEC_HAVE_STRINGS_H)
 check_include_files(libgen.h PARSEC_HAVE_GEN_H)
 check_include_files(complex.h PARSEC_HAVE_COMPLEX_H)
 check_include_files(sys/param.h PARSEC_HAVE_SYS_PARAM_H)
diff --git a/parsec/parsec.c b/parsec/parsec.c
index a375236eb..931ddc4b7 100644
--- a/parsec/parsec.c
+++ b/parsec/parsec.c
@@ -21,6 +21,7 @@
 #if defined(PARSEC_HAVE_GETOPT_H)
 #include <getopt.h>
 #endif  /* defined(PARSEC_HAVE_GETOPT_H) */
+#include <sys/time.h>
 #include "parsec/ayudame.h"
 
 #include "parsec/mca/pins/pins.h"
@@ -2136,13 +2137,6 @@ void parsec_taskpool_sync_ids_context( intptr_t comm )
     parsec_atomic_unlock( &taskpool_array_lock );
 }
 
-/* globally synchronize taskpool id's so that next register generates the same
- * id at all ranks. */
-void parsec_taskpool_sync_ids( void )
-{
-  parsec_taskpool_sync_ids_context( (intptr_t)MPI_COMM_WORLD );
-}
-
 /* Unregister the taskpool with the engine. This make the taskpool_id available for
  * future taskpools. Beware that in a distributed environment the connected taskpools
  * must have the same ID.
diff --git a/parsec/remote_dep.h b/parsec/remote_dep.h
index 931053b7d..944230b5c 100644
--- a/parsec/remote_dep.h
+++ b/parsec/remote_dep.h
@@ -426,18 +426,28 @@ extern int parsec_comm_puts;
 static inline void
 remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
 {
+#ifdef DISTRIBUTED
     uint32_t nb_nodes = parsec_remote_dep_context.max_nodes_number;
     uint32_t _rank = (rank + nb_nodes - root) % nb_nodes;
     *bank = _rank / (8 * sizeof(uint32_t));
     *bit =  _rank % (8 * sizeof(uint32_t));
+#else
+    /* it's a lonely world ! */
+    *bank = *bit = 0;
+#endif  /* DISTRIBUTED */
 }
 
 static inline void
 remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
 {
+#ifdef DISTRIBUTED
     int nb_nodes = parsec_remote_dep_context.max_nodes_number;
     uint32_t _rank = bank * (8 * sizeof(uint32_t)) + bit;
     *rank = (_rank + root) % nb_nodes;
+#else
+    /* it's a lonely world ! */
+    *rank = 0;
+#endif  /* DISTRIBUTED */
 }
 
 #endif /* __USE_PARSEC_REMOTE_DEP_H__ */
diff --git a/parsec/runtime.h b/parsec/runtime.h
index 01a6ad27e..e9eeea746 100644
--- a/parsec/runtime.h
+++ b/parsec/runtime.h
@@ -560,17 +560,6 @@ void parsec_taskpool_unregister(parsec_taskpool_t* tp);
 */
 void parsec_taskpool_sync_ids_context( intptr_t comm );
 
-/**
- * @brief Globally synchronize taskpool IDs.
- *
- * @details
- *  Globally synchronize taskpool IDs so that next register generates the same
- *  id at all ranks. This is a collective over the communication object
- *  associated with PaRSEC, and can be used to resolve discrepancies introduced by
- *  taskpools not registered over all ranks.
-*/
-void parsec_taskpool_sync_ids(void);
-
 /**
  * @brief Returns the execution stream that corresponds to the calling thread
  *
diff --git a/parsec/utils/process_name.c b/parsec/utils/process_name.c
index 66a7cf22b..41329e36e 100644
--- a/parsec/utils/process_name.c
+++ b/parsec/utils/process_name.c
@@ -6,6 +6,9 @@
 #include "parsec/parsec_config.h"
 #include <unistd.h>
 #include <string.h>
+#if defined(PARSEC_HAVE_STRINGS_H)
+#include <strings.h>
+#endif  /* defined(PARSEC_HAVE_STRINGS_H) */
 #include <limits.h>
 #include <stdio.h>
 

@abouteiller
Copy link
Contributor

not sure why readlink is not found it requires unistd.h that is included.

@3rav
Copy link
Author

3rav commented Dec 12, 2024

[84/175] Building C object parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj
FAILED: parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj
C:\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static -IC:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/include -IC:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411 -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -D_GNU_SOURCE -Wno-implicit-function-declaration -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj -MF parsec\CMakeFiles\parsec.dir\parsec_reshape.c.obj.d -o parsec/CMakeFiles/parsec.dir/parsec_reshape.c.obj -c C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_reshape.c
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_reshape.c:14:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_reshape.c: In function 'parsec_set_up_reshape_promise':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_reshape.c:454:85: error: 'MPI_COMM_WORLD' undeclared (first use in this function)
  454 |             MPI_Pack_size(aux_data.remote.dst_count, aux_data.remote.dst_datatype , MPI_COMM_WORLD, &dsize);
      |                                                                                     ^~~~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_reshape.c:454:85: note: each undeclared identifier is reported only once for each function it appears in
[87/175] Building C object parsec/CMakeFiles/parsec.dir/utils/mca_param.c.obj
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c: In function 'read_keys_from_registry':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:937:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  937 |             storage.intval  = (int)word_lpData;
      |                               ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:938:31: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  938 |             override.intval = (int)word_lpData;
      |                               ^
In function 'syn_register',
    inlined from 'parsec_mca_param_reg_syn_name' at C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:317:12:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:1336:9: warning: 'strncat' specified bound depends on the length of the source argument [-Wstringop-overflow=]
 1336 |         strncat(si->si_full_name, syn_type_name, len-1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:1319:16: note: length computed here
 1319 |         len += strlen(syn_type_name);
      |                ^~~~~~~~~~~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c: In function 'parsec_mca_show_mca_params':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:2406:26: warning: 'value_int' may be used uninitialized [-Wmaybe-uninitialized]
 2406 |                     rc = asprintf(&value_string, "%d", value_int);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/utils/mca_param.c:2366:9: note: 'value_int' was declared here
 2366 |     int value_int, j;
      |         ^~~~~~~~~
[88/175] Building C object parsec/CMakeFiles/parsec.dir/data.c.obj
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/data.c:16:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
[89/175] Building C object parsec/CMakeFiles/parsec.dir/parsec.c.obj
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec.c:36:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec.c: In function '__parsec_thread_init':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec.c:347:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  347 |     void *ret = (void*)(long)__parsec_context_wait(es);
      |                 ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec.c: In function 'parsec_taskpool_sync_ids_context':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec.c:2113:49: warning: unused parameter 'comm' [-Wunused-parameter]
 2113 | void parsec_taskpool_sync_ids_context( intptr_t comm )
      |                                        ~~~~~~~~~^~~~
[94/175] Building C object parsec/CMakeFiles/parsec.dir/remote_dep.c.obj
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.c:9:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
[96/175] Building C object parsec/CMakeFiles/parsec.dir/parsec_comm_engine.c.obj
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_comm_engine.c:9:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
[98/175] Building C object parsec/CMakeFiles/parsec.dir/remote_dep_mpi.c.obj
FAILED: parsec/CMakeFiles/parsec.dir/remote_dep_mpi.c.obj
C:\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static -IC:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/include -IC:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411 -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -D_GNU_SOURCE -Wno-implicit-function-declaration -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec.dir/remote_dep_mpi.c.obj -MF parsec\CMakeFiles\parsec.dir\remote_dep_mpi.c.obj.d -o parsec/CMakeFiles/parsec.dir/remote_dep_mpi.c.obj -c C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:20:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: At top level:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:254:57: error: expected identifier or '(' before numeric constant
  254 | #define remote_dep_mpi_initialize_execution_stream(ctx) 0
      |                                                         ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:415:1: note: in expansion of macro 'remote_dep_mpi_initialize_execution_stream'
  415 | remote_dep_mpi_initialize_execution_stream(parsec_context_t *context)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_dequeue_send':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:521:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  521 |     item->cmd.activate.task.source_deps = (remote_dep_datakey_t)deps;
      |                                           ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:525:52: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  525 |     item->cmd.activate.task.remote_callback_data = (remote_dep_datakey_t)NULL;
      |                                                    ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_mpi_pack_dep':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:1276:34: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1276 |     parsec_remote_deps_t *deps = (parsec_remote_deps_t*)item->cmd.activate.task.source_deps;
      |                                  ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_nothread_send':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:1478:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1478 |     deps = (parsec_remote_deps_t*)item->cmd.activate.task.source_deps;
      |            ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:1508:16: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1508 |         deps = (parsec_remote_deps_t*)item->cmd.activate.task.source_deps;
      |                ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_mpi_save_put_cb':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:1581:12: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
 1581 |     deps = (parsec_remote_deps_t*)(remote_dep_datakey_t)task->source_deps; /* get our deps back */
      |            ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_mpi_save_activate_cb':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:1921:38: error: 'parsec_remote_dep_context' undeclared (first use in this function); did you mean 'parsec_remote_dep_on'?
 1921 |         deps = remote_deps_allocate(&parsec_remote_dep_context.freelist);
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      parsec_remote_dep_on
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:1921:38: note: each undeclared identifier is reported only once for each function it appears in
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_mpi_get_start':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:2127:36: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
 2127 |         msg.remote_callback_data = (remote_dep_datakey_t)callback_data;
      |                                    ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c: In function 'remote_dep_ce_init':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:254:57: warning: statement with no effect [-Wunused-value]
  254 | #define remote_dep_mpi_initialize_execution_stream(ctx) 0
      |                                                         ^
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep_mpi.c:2279:5: note: in expansion of macro 'remote_dep_mpi_initialize_execution_stream'
 2279 |     remote_dep_mpi_initialize_execution_stream(context);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[99/175] Building C object parsec/CMakeFiles/parsec.dir/parsec_mpi_funnelled.c.obj
FAILED: parsec/CMakeFiles/parsec.dir/parsec_mpi_funnelled.c.obj
C:\msys64\mingw64\bin\gcc.exe -DBUILDING_PARSEC -DNDEBUG -DYYERROR_VERBOSE -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/include -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static -IC:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/include -IC:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411 -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix -IC:/msys64/usr/local/pkg_parsec/src/build-x86_64-w64-mingw32-static/parsec/data_dist/matrix/redistribute -march=nocona -msahf -mtune=generic -O2 -pipe -D_GNU_SOURCE -Wno-implicit-function-declaration -O3 -DNDEBUG -std=gnu11 -Wall -Wextra -fdiagnostics-color -MD -MT parsec/CMakeFiles/parsec.dir/parsec_mpi_funnelled.c.obj -MF parsec\CMakeFiles\parsec.dir\parsec_mpi_funnelled.c.obj.d -o parsec/CMakeFiles/parsec.dir/parsec_mpi_funnelled.c.obj -c C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c:12:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c: At top level:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c:51:2: error: #error "unsigned long is not large enough to hold a pointer!"
   51 | #error "unsigned long is not large enough to hold a pointer!"
      |  ^~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c: In function 'mpi_funneled_init_once':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c:489:5: warning: 'MPI_Attr_get' is deprecated: Deprecated in MPI 2.0, use 'MPI_Comm_get_attr'.  To disable deprecation, define MSMPI_NO_DEPRECATE_20. [-Wdeprecated-declarations]
  489 |     MPI_Attr_get(MPI_COMM_WORLD, MPI_TAG_UB, &ub, &mpi_tag_ub_exists);
      |     ^~~~~~~~~~~~
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c:7:
C:/msys64/mingw64/include/mpi.h:6692:1: note: declared here
 6692 | MPI_Attr_get(
      | ^~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c:510:5: error: 'parsec_param_enable_mpi_overtake' undeclared (first use in this function)
  510 |     parsec_param_enable_mpi_overtake = 0;  /* Default to 0 if not supported to avoid complaints about the MCA */
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/parsec_mpi_funnelled.c:510:5: note: each undeclared identifier is reported only once for each function it appears in
[101/175] Building C object parsec/CMakeFiles/parsec.dir/scheduling.c.obj
In file included from C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/scheduling.c:17:
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_rank_to_bit':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:28: warning: unused parameter 'rank' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                        ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:427:69: warning: unused parameter 'root' [-Wunused-parameter]
  427 | remote_dep_rank_to_bit(int rank, uint32_t *bank, uint32_t *bit, int root)
      |                                                                 ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h: In function 'remote_dep_bit_to_rank':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:44: warning: unused parameter 'bank' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                   ~~~~~~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:59: warning: unused parameter 'bit' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                  ~~~~~~~~~^~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/remote_dep.h:441:68: warning: unused parameter 'root' [-Wunused-parameter]
  441 | remote_dep_bit_to_rank(int *rank, uint32_t bank, uint32_t bit, int root)
      |                                                                ~~~~^~~~
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/scheduling.c: In function '__parsec_taskpool_test':
C:/msys64/usr/local/pkg_parsec/src/parsec-parsec-4.0.2411/parsec/scheduling.c:546:23: warning: unused variable 'parsec_context' [-Wunused-variable]
  546 |     parsec_context_t* parsec_context = es->virtual_process->parsec_context;
      |                       ^~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

@bosilca
Copy link
Contributor

bosilca commented Dec 12, 2024

We never build without MPI, so the code is really not handling it very well. The rest of the warnings have simple fixes or can be ignores.

I need to figure out a way to get a container with mingw (on a remote x86 machine).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants