[Ovmsdev] Scripting: Duktape update to version 2.5.0

Michael Balzer dexter at expeedo.de
Sun Dec 29 21:32:48 HKT 2019


Craig,

yes, that looks like a compiler bug. It doesn't show with crosstool-ng-1.22.0-98-g4638c4f, so it seems that version does include some gcc fixes.

Can you build duktape with that warning disabled?

Regards,
Michael


Am 28.12.19 um 23:11 schrieb Craig Leres:
> 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
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26



More information about the OvmsDev mailing list