Skip to content

mingw and 4.0.2411 error #718

@3rav

Description

@3rav

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions