Skip to content

compile jerry debugger with mingw failed #4512

Closed
@lygstate

Description

@lygstate
JerryScript revision

bf7fa39

Build log
[build] -- Build files have been written to: C:/work/study/languages/typescript/jerryscript/build/debug
[build] [10/27   3% :: 0.120] Building C object jerry-ext/CMakeFiles/jerry-ext.dir/handle-scope/handle-scope-allocator.c.obj
[build] FAILED: jerry-ext/CMakeFiles/jerry-ext.dir/handle-scope/handle-scope-allocator.c.obj
[build] C:\CI-Tools\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -DENABLE_INIT_FINI -DJERRY_CPOINTER_32_BIT=1 -DJERRY_DEBUGGER=1 -DJERRY_ERROR_MESSAGES=1 -DJERRY_EXTERNAL_CONTEXT=0 -DJERRY_GC_LIMIT=(0) -DJERRY_GC_MARK_LIMIT=(8) -DJERRY_GLOBAL_HEAP_SIZE=512000 -DJERRY_LINE_INFO=1 -DJERRY_LOGGING=0 -DJERRY_MEM_GC_BEFORE_EACH_ALLOC=0 -DJERRY_MEM_STATS=0 -DJERRY_PARSER=1 -DJERRY_PARSER_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_STRICT_MODE=0 -DJERRY_SNAPSHOT_EXEC=1 -DJERRY_SNAPSHOT_SAVE=1 -DJERRY_STACK_LIMIT=(0) -DJERRY_SYSTEM_ALLOCATOR=0 -DJERRY_VALGRIND=0 -DJERRY_VM_EXEC_STOP=0 -I../../jerry-ext/include -I../../jerry-ext/common -I../../jerry-core/include -I../../jerry-math/include -std=c99 -pedantic -fno-builtin -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wconversion -Werror=conversion -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wno-stack-protector -Wno-attributes -Werror -Wlogical-op -Werror=logical-op -Wno-implicit-fallthrough -g -MD -MT jerry-ext/CMakeFiles/jerry-ext.dir/handle-scope/handle-scope-allocator.c.obj -MF jerry-ext\CMakeFiles\jerry-ext.dir\handle-scope\handle-scope-allocator.c.obj.d -o jerry-ext/CMakeFiles/jerry-ext.dir/handle-scope/handle-scope-allocator.c.obj -c ../../jerry-ext/handle-scope/handle-scope-allocator.c
[build] ../../jerry-ext/handle-scope/handle-scope-allocator.c: In function 'jerryx_handle_scope_get_child':
[build] ../../jerry-ext/handle-scope/handle-scope-allocator.c:35:48: error: conversion from 'long long int' to 'long int' may change value [-Werror=conversion]
[build]    35 | #define JERRYX_HANDLE_SCOPE_PRELIST_IDX(scope) (scope - jerryx_handle_scope_pool.prelist)
[build]       |                                                ^
[build] ../../jerry-ext/handle-scope/handle-scope-allocator.c:129:14: note: in expansion of macro 'JERRYX_HANDLE_SCOPE_PRELIST_IDX'
[build]   129 |   long idx = JERRYX_HANDLE_SCOPE_PRELIST_IDX (scope);
[build]       |              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build] cc1.exe: all warnings being treated as errors
[build] [10/27   7% :: 0.129] Building C object jerry-main/CMakeFiles/jerry-test.dir/benchmarking.c.obj
[build] [10/27  11% :: 0.145] Building C object jerry-main/CMakeFiles/jerry-test.dir/main-unix-test.c.obj
[build] [10/27  14% :: 0.156] Building C object jerry-main/CMakeFiles/jerry.dir/main-utils.c.obj
[build] [10/27  18% :: 0.163] Building C object jerry-main/CMakeFiles/jerry-snapshot.dir/main-unix-snapshot.c.obj
[build] [10/27  22% :: 0.167] Building C object jerry-main/CMakeFiles/jerry-snapshot.dir/cli.c.obj
[build] [10/27  25% :: 0.171] Building C object jerry-main/CMakeFiles/jerry.dir/cli.c.obj
[build] [10/27  29% :: 0.173] Building C object jerry-main/CMakeFiles/jerry.dir/main-options.c.obj
[build] [10/27  33% :: 0.670] Building C object jerry-ext/CMakeFiles/jerry-ext.dir/debugger/debugger-tcp.c.obj
[build] FAILED: jerry-ext/CMakeFiles/jerry-ext.dir/debugger/debugger-tcp.c.obj
[build] C:\CI-Tools\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -DENABLE_INIT_FINI -DJERRY_CPOINTER_32_BIT=1 -DJERRY_DEBUGGER=1 -DJERRY_ERROR_MESSAGES=1 -DJERRY_EXTERNAL_CONTEXT=0 -DJERRY_GC_LIMIT=(0) -DJERRY_GC_MARK_LIMIT=(8) -DJERRY_GLOBAL_HEAP_SIZE=512000 -DJERRY_LINE_INFO=1 -DJERRY_LOGGING=0 -DJERRY_MEM_GC_BEFORE_EACH_ALLOC=0 -DJERRY_MEM_STATS=0 -DJERRY_PARSER=1 -DJERRY_PARSER_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_STRICT_MODE=0 -DJERRY_SNAPSHOT_EXEC=1 -DJERRY_SNAPSHOT_SAVE=1 -DJERRY_STACK_LIMIT=(0) -DJERRY_SYSTEM_ALLOCATOR=0 -DJERRY_VALGRIND=0 -DJERRY_VM_EXEC_STOP=0 -I../../jerry-ext/include -I../../jerry-ext/common -I../../jerry-core/include -I../../jerry-math/include -std=c99 -pedantic -fno-builtin -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wconversion -Werror=conversion -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wno-stack-protector -Wno-attributes -Werror -Wlogical-op -Werror=logical-op -Wno-implicit-fallthrough -g -MD -MT jerry-ext/CMakeFiles/jerry-ext.dir/debugger/debugger-tcp.c.obj -MF jerry-ext\CMakeFiles\jerry-ext.dir\debugger\debugger-tcp.c.obj.d -o jerry-ext/CMakeFiles/jerry-ext.dir/debugger/debugger-tcp.c.obj -c ../../jerry-ext/debugger/debugger-tcp.c
[build] ../../jerry-ext/debugger/debugger-tcp.c: In function 'jerryx_debugger_tcp_log_error':
[build] ../../jerry-ext/debugger/debugger-tcp.c:116:18: error: conversion to 'DWORD' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Werror=sign-conversion]
[build]   116 |                  errno_value,
[build]       |                  ^~~~~~~~~~~
[build] ../../jerry-ext/debugger/debugger-tcp.c: In function 'jerryx_debugger_tcp_send':
[build] ../../jerry-ext/debugger/debugger-tcp.c:196:51: error: pointer targets in passing argument 2 of 'send' differ in signedness [-Werror=pointer-sign]
[build]   196 |     ssize_t sent_bytes = send (tcp_p->tcp_socket, message_p, message_length, 0);
[build]       |                                                   ^~~~~~~~~
[build]       |                                                   |
[build]       |                                                   uint8_t * {aka unsigned char *}
[build] In file included from C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/WS2tcpip.h:17,
[build]                  from ../../jerry-ext/debugger/debugger-tcp.c:27:
[build] C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:1027:60: note: expected 'const char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
[build]  1027 |   WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
[build]       |                                                ~~~~~~~~~~~~^~~
[build] ../../jerry-ext/debugger/debugger-tcp.c:196:62: error: conversion from 'size_t' {aka 'long long unsigned int'} to 'int' may change value [-Werror=conversion]
[build]   196 |     ssize_t sent_bytes = send (tcp_p->tcp_socket, message_p, message_length, 0);
[build]       |                                                              ^~~~~~~~~~~~~~
[build] ../../jerry-ext/debugger/debugger-tcp.c: In function 'jerryx_debugger_tcp_receive':
[build] ../../jerry-ext/debugger/debugger-tcp.c:232:45: error: pointer targets in passing argument 2 of 'recv' differ in signedness [-Werror=pointer-sign]
[build]   232 |   ssize_t length = recv (tcp_p->tcp_socket, buffer_p, buffer_size, 0);
[build]       |                                             ^~~~~~~~
[build]       |                                             |
[build]       |                                             uint8_t * {aka unsigned char *}
[build] In file included from C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/WS2tcpip.h:17,
[build]                  from ../../jerry-ext/debugger/debugger-tcp.c:27:
[build] C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:1022:54: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'}
[build]  1022 |   WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
[build]       |                                                ~~~~~~^~~
[build] ../../jerry-ext/debugger/debugger-tcp.c:232:55: error: conversion from 'size_t' {aka 'long long unsigned int'} to 'int' may change value [-Werror=conversion]
[build]   232 |   ssize_t length = recv (tcp_p->tcp_socket, buffer_p, buffer_size, 0);
[build]       |                                                       ^~~~~~~~~~~
[build] ../../jerry-ext/debugger/debugger-tcp.c: In function 'jerryx_debugger_tcp_configure_socket':
[build] ../../jerry-ext/debugger/debugger-tcp.c:281:60: error: passing argument 4 of 'setsockopt' from incompatible pointer type [-Werror=incompatible-pointer-types]
[build]   281 |   if (setsockopt (server_socket, SOL_SOCKET, SO_REUSEADDR, &opt_value, sizeof (int)) != 0)
[build]       |                                                            ^~~~~~~~~~
[build]       |                                                            |
[build]       |                                                            int *
[build] In file included from C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/WS2tcpip.h:17,
[build]                  from ../../jerry-ext/debugger/debugger-tcp.c:27:
[build] C:/CI-Tools/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:1029:88: note: expected 'const char *' but argument is of type 'int *'
[build]  1029 |   WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
[build]       |                                                                            ~~~~~~~~~~~~^~~~~~
[build] ../../jerry-ext/debugger/debugger-tcp.c: In function 'jerryx_debugger_tcp_create':
[build] ../../jerry-ext/debugger/debugger-tcp.c:351:32: error: signed conversion from 'long unsigned int' to 'long int' changes value from '2147772030' to '-2147195266' [-Werror=sign-conversion]
[build]   351 |   if (ioctlsocket (tcp_socket, FIONBIO, &nonblocking_enabled) != NO_ERROR)
[build]       |                                ^~~~~~~
[build] cc1.exe: all warnings being treated as errors
[build] [10/27  37% :: 0.733] Building C object jerry-main/CMakeFiles/jerry.dir/main-unix.c.obj
[build] ninja: build stopped: subcommand failed.
[build] Build finished with exit code 1

new error

[build] C:\CI-Tools\msys64\mingw64\bin\x86_64-w64-mingw32-gcc.exe -DJERRY_CPOINTER_32_BIT=1 -DJERRY_DEBUGGER=1 -DJERRY_ERROR_MESSAGES=1 -DJERRY_EXTERNAL_CONTEXT=0 -DJERRY_GC_LIMIT=(0) -DJERRY_GC_MARK_LIMIT=(8) -DJERRY_GLOBAL_HEAP_SIZE=512000 -DJERRY_LINE_INFO=1 -DJERRY_LOGGING=0 -DJERRY_MEM_GC_BEFORE_EACH_ALLOC=0 -DJERRY_MEM_STATS=0 -DJERRY_NDEBUG -DJERRY_PARSER=1 -DJERRY_PARSER_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_DUMP_BYTE_CODE=0 -DJERRY_REGEXP_STRICT_MODE=0 -DJERRY_SNAPSHOT_EXEC=1 -DJERRY_SNAPSHOT_SAVE=1 -DJERRY_STACK_LIMIT=(0) -DJERRY_SYSTEM_ALLOCATOR=0 -DJERRY_VALGRIND=0 -DJERRY_VM_EXEC_STOP=0 -I../../jerry-core -I../../jerry-core/api -I../../jerry-core/debugger -I../../jerry-core/ecma/base -I../../jerry-core/ecma/builtin-objects -I../../jerry-core/ecma/builtin-objects/typedarray -I../../jerry-core/ecma/operations -I../../jerry-core/jcontext -I../../jerry-core/jmem -I../../jerry-core/jrt -I../../jerry-core/lit -I../../jerry-core/parser/js -I../../jerry-core/parser/regexp -I../../jerry-core/vm -I../../jerry-core/include -I../../jerry-port/default/include -std=c99 -pedantic -Wall -Werror=all -Wextra -Werror=extra -Wformat-nonliteral -Werror=format-nonliteral -Winit-self -Werror=init-self -Wconversion -Werror=conversion -Wsign-conversion -Werror=sign-conversion -Wformat-security -Werror=format-security -Wmissing-declarations -Werror=missing-declarations -Wshadow -Werror=shadow -Wstrict-prototypes -Werror=strict-prototypes -Wundef -Werror=undef -Wold-style-definition -Werror=old-style-definition -Wno-stack-protector -Wno-attributes -Werror -Wlogical-op -Werror=logical-op -Wno-implicit-fallthrough -Os -DNDEBUG -MD -MT tests/unit-core/CMakeFiles/unit-test-typedarray.dir/test-typedarray.c.obj -MF tests\unit-core\CMakeFiles\unit-test-typedarray.dir\test-typedarray.c.obj.d -o tests/unit-core/CMakeFiles/unit-test-typedarray.dir/test-typedarray.c.obj -c ../../tests/unit-core/test-typedarray.c
[build] In file included from ../../jerry-core/include/jerryscript-core.h:23,
[build]                  from ../../jerry-core/include/jerryscript.h:19,
[build]                  from ../../tests/unit-core/test-typedarray.c:16:
[build] ../../tests/unit-core/test-typedarray.c: In function 'test_property_by_index':
[build] ../../tests/unit-core/test-typedarray.c:381:33: error: conversion from 'double' to 'float' may change value [-Werror=float-conversion]
[build]   381 |             TEST_ASSERT (isinf (jerry_get_number_value (get_inf)));
[build]       |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[build] ../../jerry-core/include/jerryscript-compiler.h:45:47: note: in definition of macro 'JERRY_UNLIKELY'
[build]    45 | #define JERRY_UNLIKELY(x) __builtin_expect(!!(x), 0)
[build]       |                                               ^
[build] ../../tests/unit-core/test-typedarray.c:381:13: note: in expansion of macro 'TEST_ASSERT'
[build]   381 |             TEST_ASSERT (isinf (jerry_get_number_value (get_inf)));
[build]       |             ^~~~~~~~~~~
[build] cc1.exe: all warnings being treated as errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions