-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Esp32 compilation error after enabling CONFIG_NEWLIB_LIBC #38978
Comments
@sylvioalves It looks like there are some compatibility issues with the newlib provided by the Espressif toolchain. |
@stephanosio @tejlmand, There is no support yet for newlib on esp32. I have started working on it a few weeks ago and will eventually update the toolchain to allow this. This #38540 was part of it. This PR improves Espressif's toolchain handling, allowing new version to be seamlessly updated using proper command. Zephyr uses this strategy for cmake version and SDK, with a warning message and build failure. |
just on the
should probably have been:
|
@tejlmand Toolchain supports newlib in esp-idf, however, needs some updates to work in Zephyr's. One of the issues are the one related in this ticket. ESP32 toolchain
|
Any plans for a fix, or maybe a workaround which can be used in the meantime (like a custom-built toolchain)? I'm trying to port an application to ESP32, which was originally developed with Nordic Connect SDK (also Zephyr) for an nRF board. I hoped that because of already using Zephyr, my porting effort would be minimal, but I'm now getting blocked by a dependency on As ESP32 support in Zephyr is currently expanding, this is a critical feature IMO. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Re-opened, as this is still valid. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
Bump |
Is this still WIP? Recently I try to run microTVM auto tuning example on ESP32 with Zephyr,but got the exactly same error. |
Merged: #43534 |
Describe the bug
Esp32 compilation error after enabling CONFIG_NEWLIB_LIBC
To Reproduce
Steps to reproduce the behavior:
CONFIG_NEWLIB_LIBC=y
to samples\hello_world\prj.confExpected behavior
Build pass
Impact
I want to use Zephyr's posix on esp32
Logs and console output
The error message shows that zephyr's build system first finds the posix header file in hal_espresslf, and the inconsistency of its API definition and zephyr leads to an error.
The text was updated successfully, but these errors were encountered: