Latest ESP-IDF compilation error

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Latest ESP-IDF compilation error

Postby jerome » Thu Oct 03, 2019 7:35 am

Dear all, I just updated esp-idf and now I'm facing a compilation error :
esp-idf/components/bt/controller/bt.c:963:15: error: 'mem_start' may be used uninitialized in this function [-Werror=maybe-uninitialized]
Any workaround for the above issue ?
Thanks

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Re: Latest ESP-IDF compilation error

Postby jerome » Thu Oct 03, 2019 10:12 am

I solved the above issue by initializing men_start = 0;

Now new issues appear :
'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
line 133, external location: /esp-idf/components/bt/esp_ble_mesh/api/core/esp_ble_mesh_provisioning_api.c C/C++ Problem

'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation]
line 454, external location: /esp-idf/components/bt/esp_ble_mesh/btc/btc_ble_mesh_prov.c C/C++ Problem
Am'I alone having those issues ?

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Re: Latest ESP-IDF compilation error

Postby jerome » Thu Oct 03, 2019 11:53 am

Ok, the compilation error occurs only when compiling with option "Optimize for speed".
When "Optimize for size" is selected, no error...

jerome
Posts: 37
Joined: Wed Jan 23, 2019 2:28 pm

Re: Latest ESP-IDF compilation error

Postby jerome » Fri Oct 18, 2019 8:01 am

Nobody here trying to compile a project optimized for performance, using bluetooth ?

I'd like to favor speed, not binary size, using bluetooth..
Thanks

solution-ice
Posts: 4
Joined: Tue May 08, 2018 1:18 am

Re: Latest ESP-IDF compilation error

Postby solution-ice » Mon Nov 18, 2019 3:18 am

Hi I have the same errors...

esp-idf/components/bt/controller/bt.c:964:15: error: 'mem_start' may be used uninitialized in this function [-Werror=maybe-uninitialized]
int ret = heap_caps_add_region(start, end);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

opcode
Posts: 1
Joined: Tue Nov 19, 2019 3:21 pm

Re: Latest ESP-IDF compilation error

Postby opcode » Tue Nov 19, 2019 3:26 pm

Same here. Blocking development for my team. Any solution? For me changing the optimization flag didn't help

Elektrik
Posts: 1
Joined: Wed Jan 22, 2020 2:59 am

Re: Latest ESP-IDF compilation error

Postby Elektrik » Wed Jan 22, 2020 3:00 am

This issue still persists

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Latest ESP-IDF compilation error

Postby ESP_Angus » Wed Jan 22, 2020 3:19 am

Hi Elektrik,

What ESP-IDF version are you using? Do you get any warnings from the build system about the toolchain not being the version that is expected?

Thanks,

Angus

User avatar
mattcaron
Posts: 1
Joined: Sat Mar 07, 2020 4:37 pm

Re: Latest ESP-IDF compilation error

Postby mattcaron » Sat Mar 07, 2020 4:45 pm

I am having the same issue. ESP-IDF is at sha 5dbabae9dc32da3e639a0531b5337848a9e3317a. sdkconfig is attached.
Attachments
sdkconfig.txt
(30.79 KiB) Downloaded 824 times

esp_liu
Posts: 35
Joined: Wed Nov 28, 2018 4:12 am

Re: Latest ESP-IDF compilation error

Postby esp_liu » Thu Apr 02, 2020 8:08 am

Hi mattcaron,

Sorry for the late response. Will fix the compile issue when -O2 option is chosen.

Who is online

Users browsing this forum: No registered users and 295 guests