[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
/home/ice/u0/leres/esp/openvehicles-xtensa-esp32-elf/requirements.txt
are satisfied.
App "ovms3" version: 3.2.008-34-gd1a0e982-dirty
CC
/home/ice/u0/leres/src/Open-Vehicle-Monitoring-System-3/vehicle/OVMS.V3/build/duktape/src/duktape.o
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]: ***
[/home/ice/u0/leres/esp/openvehicles-xtensa-esp32-elf/make/component_wrapper.mk:290:
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:
https://github.com/espressif/crosstool-NG
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?
Craig
More information about the OvmsDev
mailing list