Issue #14971 has been updated by duerst (Martin Drst).


This issue has been masked by #15072, but has resurfaced.

@nobu: Ping!

----------------------------------------
Bug #14971: error: implicit declaration of function °∆rb_vm_call0
https://bugs.ruby-lang.org/issues/14971#change-73925

* Author: duerst (Martin Drst)
* Status: Open
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-08-01 trunk 64156) [x86_64-cygwin]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
I get the errors below when making `make up install-nodoc`.
I'm not at v64208.

```
compiling vm.c
In file included from vm_insnhelper.c:1570:0,
                 from vm.c:310:
vm_args.c: In function °∆vm_to_proc°«:
vm_args.c:813:17: error: implicit declaration of function °∆rb_vm_call0°« [-Werror=implicit-function-declaration]
             b = rb_vm_call0(GET_EC(), proc, idTo_proc, 0, NULL, me);
                 ^~~~~~~~~~~
In file included from vm.c:310:0:
vm_insnhelper.c: In function °∆vm_call_bmethod_body°«:
vm_insnhelper.c:1977:11: error: implicit declaration of function °∆vm_invoke_bmethod°« [-Werror=implicit-function-declaration]
     val = vm_invoke_bmethod(ec, proc, calling->recv, calling->argc, argv, calling->block_handler);
           ^~~~~~~~~~~~~~~~~
In file included from vm.c:308:0:
/cygdrive/c/Data/ruby/insns.def: In function °∆vm_exec_core°«:
vm_insnhelper.h:109:20: warning: passing argument 1 of °∆vm_expandarray°« from incompatible pointer type [-Wincompatible-pointer-types]
 #define GET_SP()   (COLLECT_USAGE_REGISTER_HELPER(SP, GET, VM_REG_SP))
                    ^
/cygdrive/c/Data/ruby/insns.def:449:20: note: in expansion of macro °∆GET_SP°«
     vm_expandarray(GET_SP(), ary, num, (int)flag);
                    ^~~~~~
In file included from vm.c:310:0:
vm_insnhelper.c:1240:1: note: expected °∆rb_control_frame_t * {aka struct rb_control_frame_struct *}°« but argument is of type °∆VALUE * {aka long unsigned int *}°«
 vm_expandarray(rb_control_frame_t *cfp, VALUE ary, rb_num_t num, int flag)
 ^~~~~~~~~~~~~~
In file included from vm.c:318:0:
vm_eval.c: At top level:
vm_eval.c:44:1: error: conflicting types for °∆rb_vm_call0°«
 rb_vm_call0(rb_execution_context_t *ec, VALUE recv, ID id, int argc, const VALUE *argv, const rb_callable_method_entry_t *me)
 ^~~~~~~~~~~
In file included from vm_insnhelper.c:1570:0,
                 from vm.c:310:
vm_args.c:813:17: note: previous implicit declaration of °∆rb_vm_call0°« was here
             b = rb_vm_call0(GET_EC(), proc, idTo_proc, 0, NULL, me);
                 ^~~~~~~~~~~
cc1: warning: unrecognized command line option °∆-Wno-cast-function-type°«
cc1: warning: unrecognized command line option °∆-Wno-self-assign°«
cc1: warning: unrecognized command line option °∆-Wno-constant-logical-operand°«
cc1: warning: unrecognized command line option °∆-Wno-parentheses-equality°«
cc1: some warnings being treated as errors
make[1]: *** [Makefile:403: vm.o] Error 1
make[1]: Leaving directory '/cygdrive/c/Data/ruby'
make: [uncommon.mk:1147: up] Error 2 (ignored)
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>