CivetWeb samples fail to build with CONFIG_NEWLIB_LIBC #39037
Labels
area: civetweb
area: newlib
Newlib C Standard Library
Enhancement
Changes/Updates/Additions to existing features
known issue
Known issue
Describe the bug
The websocket_server sample application fails to build with
conflicting types
errors on pthread-related types when compiled with CONFIG_NEWLIB_LIBC.I originally discovered this problem when working on a custom C++ application, where newlib was used to get some of the C++ standard library. However, the issue can be readily reproduced using the websocket server sample, as long as the libc_extension.c is removed from CMakeLists.txt.
To Reproduce
Steps to reproduce the behavior:
west build samples/net/civetweb/websocket_server/ -b nucleo_f767zi --build-dir build/
Expected behavior
The build should succeed.
Impact
Our application uses code that relies on the C++ standard libary (std::string, std::chrono), so disabling newlib is hence not really an option. This hence means that Zephyr's Civetweb implementation is unusable.
Logs and console output
The full build log is this on Ubuntu 20.04 with Zephyr SDK 0.13.1:
Environment (please complete the following information):
The build log above is from Ubuntu 20.04 with Zephyr SDK 0.13.1, but the same issue appears on Windows using GNU ARM Embedded 10-2020-q4-major.
The text was updated successfully, but these errors were encountered: