Skip to content

Instantly share code, notes, and snippets.

@dumarchie
Created November 3, 2020 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dumarchie/e891f3184ca6d324b90b93712ab2d751 to your computer and use it in GitHub Desktop.
Save dumarchie/e891f3184ca6d324b90b93712ab2d751 to your computer and use it in GitHub Desktop.
MoarVM compiler warnings on Windows
compiling src\debug\debugserver.o
src\debug\debugserver.c: In function 'request_thread_resumes':
src\debug\debugserver.c:713:55: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "wrong state to resume from: %zu\n", MVM_load(&tc->gc_status));
^
src\debug\debugserver.c:713:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "wrong state to resume from: %zu\n", MVM_load(&tc->gc_status));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:713:55: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "wrong state to resume from: %zu\n", MVM_load(&tc->gc_status));
^
src\debug\debugserver.c:713:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "wrong state to resume from: %zu\n", MVM_load(&tc->gc_status));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:749:70: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "success resuming thread; its status is now %zu\n", MVM_load(&tc->gc_status));
^
src\debug\debugserver.c:749:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "success resuming thread; its status is now %zu\n", MVM_load(&tc->gc_status));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:749:70: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "success resuming thread; its status is now %zu\n", MVM_load(&tc->gc_status));
^
src\debug\debugserver.c:749:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "success resuming thread; its status is now %zu\n", MVM_load(&tc->gc_status));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c: In function 'send_thread_info':
src\debug\debugserver.c:913:13: warning: implicit declaration of function 'pthread_getname_np'; did you mean 'pthread_sigmask'? [-Wimplicit-function-declaration]
if (pthread_getname_np((pthread_t)cur_thread->body.native_thread_id, threadname, 16) != 0) {
^~~~~~~~~~~~~~~~~~
pthread_sigmask
src\debug\debugserver.c:913:33: error: 'pthread_t' undeclared (first use in this function); did you mean 'uv_read_t'?
if (pthread_getname_np((pthread_t)cur_thread->body.native_thread_id, threadname, 16) != 0) {
^~~~~~~~~
uv_read_t
src\debug\debugserver.c:913:33: note: each undeclared identifier is reported only once for each function it appears in
src\debug\debugserver.c:913:43: error: expected ')' before 'cur_thread'
if (pthread_getname_np((pthread_t)cur_thread->body.native_thread_id, threadname, 16) != 0) {
^~~~~~~~~~
)
src\debug\debugserver.c: In function 'request_find_method':
src\debug\debugserver.c:1305:104: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^
src\debug\debugserver.c:1305:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:1305:104: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^
src\debug\debugserver.c:1305:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c: In function 'request_object_decontainerize':
src\debug\debugserver.c:1337:104: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^
src\debug\debugserver.c:1337:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:1337:104: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^
src\debug\debugserver.c:1337:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c: In function 'create_context_or_code_obj_debug_handle':
src\debug\debugserver.c:1369:104: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^
src\debug\debugserver.c:1369:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:1369:104: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^
src\debug\debugserver.c:1369:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "can only retrieve a context or code obj handle if thread is 'UNABLE' (is %zu)\n", to_do->body.tc->gc_status);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c: In function 'socket_reader':
src\debug\debugserver.c:2295:41: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "asked to read %zu bytes\n", limit);
^
src\debug\debugserver.c:2295:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "asked to read %zu bytes\n", limit);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:2295:41: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "asked to read %zu bytes\n", limit);
^
src\debug\debugserver.c:2295:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "asked to read %zu bytes\n", limit);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:2307:31: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "%zu ", read);
^
src\debug\debugserver.c:2307:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "%zu ", read);
^~~~~~
src\debug\debugserver.c:2307:31: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "%zu ", read);
^
src\debug\debugserver.c:2307:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "%zu ", read);
^~~~~~
src\debug\debugserver.c:2313:45: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "... recv received %zu bytes\n", total_read);
^
src\debug\debugserver.c:2313:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "... recv received %zu bytes\n", total_read);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:2313:45: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "... recv received %zu bytes\n", total_read);
^
src\debug\debugserver.c:2313:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "... recv received %zu bytes\n", total_read);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c: In function 'socket_writer':
src\debug\debugserver.c:2327:42: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "asked to send %3zu bytes: ", limit);
^
src\debug\debugserver.c:2327:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "asked to send %3zu bytes: ", limit);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:2327:42: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "asked to send %3zu bytes: ", limit);
^
src\debug\debugserver.c:2327:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "asked to send %3zu bytes: ", limit);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:2339:32: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "%2zu ", sent);
^
src\debug\debugserver.c:2339:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "%2zu ", sent);
^~~~~~~
src\debug\debugserver.c:2339:32: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "%2zu ", sent);
^
src\debug\debugserver.c:2339:29: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "%2zu ", sent);
^~~~~~~
src\debug\debugserver.c:2344:42: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "... send sent %3zu bytes\n", total_sent);
^
src\debug\debugserver.c:2344:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "... send sent %3zu bytes\n", total_sent);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c:2344:42: warning: unknown conversion type character 'z' in format [-Wformat=]
fprintf(stderr, "... send sent %3zu bytes\n", total_sent);
^
src\debug\debugserver.c:2344:25: warning: too many arguments for format [-Wformat-extra-args]
fprintf(stderr, "... send sent %3zu bytes\n", total_sent);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\debug\debugserver.c: In function 'debugserver_worker':
src\debug\debugserver.c:2659:5: warning: implicit declaration of function 'pthread_setname_np'; did you mean 'pthread_sigmask'? [-Wimplicit-function-declaration]
pthread_setname_np(pthread_self(), "debugserver");
^~~~~~~~~~~~~~~~~~
pthread_sigmask
src\debug\debugserver.c:2659:24: warning: implicit declaration of function 'pthread_self'; did you mean 'uv_thread_self'? [-Wimplicit-function-declaration]
pthread_setname_np(pthread_self(), "debugserver");
^~~~~~~~~~~~
uv_thread_self
src\debug\debugserver.c:2678:71: warning: format '%n' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
MVM_panic(1, "Debugserver: WSAStartup failed with error: %n", error);
~^ ~~~~~
%d
src\debug\debugserver.c:2687:26: warning: comparison of integer expressions of different signedness: 'Socket' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
if (listensocket == -1)
^~
compiling src\core\interp.o
src\core\interp.c: In function 'MVM_interp_run':
src\core\interp.c:5557:51: warning: unknown conversion type character 'h' in format [-Wformat=]
MVM_exception_throw_adhoc(tc, "Invalid flags (%"PRIu64") or size (%hhu) value for writeint", flags, size);
^~~~~~~~~~~~~~~~~~
src\core\interp.c:5557:89: note: format string is defined here
MVM_exception_throw_adhoc(tc, "Invalid flags (%"PRIu64") or size (%hhu) value for writeint", flags, size);
^
src\core\interp.c:5557:51: warning: too many arguments for format [-Wformat-extra-args]
MVM_exception_throw_adhoc(tc, "Invalid flags (%"PRIu64") or size (%hhu) value for writeint", flags, size);
^~~~~~~~~~~~~~~~~~
src\core\interp.c:3320:36: warning: variable 'coderef' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
MVMObject *coderef;
^~~~~~~
compiling src\core\threads.o
In file included from src/moar.h:156,
from src\core\threads.c:1:
src\core\threads.c: In function 'MVM_thread_set_self_name':
src\core\threads.c:357:39: warning: implicit declaration of function 'pthread_setname_np'; did you mean 'thread_stage_name'? [-Wimplicit-function-declaration]
if (strlen(c_name) > 0 && pthread_setname_np(pthread_self(), c_name) == 0) {
^~~~~~~~~~~~~~~~~~
src/gc/roots.h:70:5: note: in definition of macro 'MVMROOT'
block \
^~~~~
src\core\threads.c:357:58: warning: implicit declaration of function 'pthread_self'; did you mean 'uv_thread_self'? [-Wimplicit-function-declaration]
if (strlen(c_name) > 0 && pthread_setname_np(pthread_self(), c_name) == 0) {
^~~~~~~~~~~~
src/gc/roots.h:70:5: note: in definition of macro 'MVMROOT'
block \
^~~~~
@dumarchie
Copy link
Author

Warnings seen when trying to build Rakudo Star 2020.10 on Windows 10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment