[Ovmsdev] Scripting: Duktape update to version 2.5.0

Craig Leres leres at xse.com
Sun Dec 29 06:11:46 HKT 2019

Hum... I haven't tried to build for a week or so and am now getting a 
error from the new duktape:

     ice 840 % gmake
     Toolchain path: /home/ice/u0/leres/bin/xtensa-esp32-elf-gcc
     Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
     Compiler version: 5.2.0
     Python requirements from 
are satisfied.

     App "ovms3" version: 3.2.008-34-gd1a0e982-dirty
     duk_js_call.c: In function 'duk__handle_call_raw':
     duk_js_call.c:2268:32: error: 'func' may be used uninitialized in 
this function [-Werror=maybe-uninitialized]
     cc1: some warnings being treated as errors
     gmake[1]: *** 
src/duktape.o] Error 1
     gmake: *** [/home/ice/u0/leres/esp/esp-idf/make/project.mk:552: 
component-duktape-build] Error 2

I looked at the code and don't see the problem:

                 /* XXX: native funcptr could come out of call setup. */
                 if (func) {
                         rc = ((duk_hnatfunc *) func)->func(thr); // 2268
                 } else {
                         duk_tval *tv_func;

My guess is my toolchain is too old? I'm using 1.22.0-80-g6c4433a5. 
Looking here:


Should I switch to the esp-1.23.x branch? Or am I just SOL because 
you're all using a binary release toolchain and espressif hasn't 
released the source to the crosstool-NG they're using to build it?


More information about the OvmsDev mailing list