-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Compile error when CONFIG_ESP_CONSOLE_NONE=y (IDFGH-11900) #12984
Comments
BTW, I also got below build warnings when CONFIG_ESP_CONSOLE_NONE=y [429/938] Building C object esp-idf/console/CMakeFiles/__idf_console.dir/esp_console_repl.c.obj |
@AxelLin Thanks for reporting this issue, will take a look. |
@Dazza0 |
This commit fixes the following build issues when CONFIG_ESP_CONSOLE_NONE is enabled: - esp_console_repl.c will have 'defined but unused' warnings on various console functions. - esp_console_repl.c does not use "TAG" when CONFIG_ESP_CONSOLE_NONE is enabled, leading to a "defined by not used" warning. Closes #12984
This commit fixes the following build issues when CONFIG_ESP_CONSOLE_NONE is enabled: - esp_console_repl.c will have 'defined but unused' warnings on various console functions. - esp_console_repl.c does not use "TAG" when CONFIG_ESP_CONSOLE_NONE is enabled, leading to a "defined by not used" warning. Closes #12984
Answers checklist.
IDF version.
v5.3-dev-1353-gb3f7e2c8a4
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 should work with CONFIG_ESP_CONSOLE_NONE=y.
What is the actual behavior?
/home/axel/esp/esp-idf/components/vfs/vfs_console.c: In function 'esp_vfs_console_register':
/home/axel/esp/esp-idf/components/vfs/vfs_console.c:210:35: error: 'primary_path' undeclared (first use in this function); did you mean 'primary_vfs'?
210 | err = esp_vfs_register_common(primary_path, strlen(primary_path), primary_vfs, NULL, &primary_vfs_index);
| ^~~~~~~~~~~~
| primary_vfs
/home/axel/esp/esp-idf/components/vfs/vfs_console.c:210:35: note: each undeclared identifier is reported only once for each function it appears in
[514/1450] Building C object esp-idf/driver/CMakeFiles/__idf_driver.dir/deprecated/rmt_legacy.c.obj
ninja: build stopped: subcommand failed.
Steps to reproduce.
Build for ESP32C6 with CONFIG_ESP_CONSOLE_NONE=y.
Build or installation Logs.
No response
More Information.
No response
The text was updated successfully, but these errors were encountered: