-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nimble compile error (IDFGH-11343) #12491
Comments
Hi @AxelLin , May i know which example you attempting to compile ? We tried both peripheral and central and don't see the issue. Also enabled / disabled the ENABLE_CONN_REATTEMPT flag, but don't see the issue. The code being pointed is not modifed since a year. Is there any specific GCC version being used for this ? |
@rahult-github |
BTW, I didn't hit this issue when I build with v5.1 branch. |
Seems to be an upstream code issue. |
Hi @AxelLin , Not able to hit the issue at my end yet. Will investigate on the toolchain input provided. In meantime, can you check if attached patch helps ? |
Hi @rahult-github |
Hi @rahult-github |
Hi @AxelLin , noted . Will raise fix internally. |
I reopen this issue because I still cannot find this fix in esp-nimble. |
Hi @AxelLin , the change is done on master and backported to release/v5.2 and release/v5.1 internally. It should be visible soon on github, once the sync / mirror happens . |
Answers checklist.
IDF version.
v5.2-dev-3775-gb4268c874a
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
build success.
What is the actual behavior?
/home/axel/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c: In function 'ble_gap_master_connect_reattempt':
/home/axel/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:1036:40: error: storing the address of local variable 'conn' in 'ble_conn_reattempt[idx].cb_arg' [-Werror=dangling-pointer=]
1036 | ble_conn_reattempt[idx].cb_arg = &conn;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/axel/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:992:30: note: 'conn' declared here
992 | struct ble_gap_conn_desc conn;
| ^~~~
/home/axel/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_gap.c:130:46: note: 'ble_conn_reattempt' declared here
130 | static struct ble_gap_connect_reattempt_ctxt ble_conn_reattempt[MYNEWT_VAL(BLE_MAX_CONNECTIONS)];
|
Steps to reproduce.
Just build with nimble for esp32c3.
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: