Skip to content

[Bug]: PlatformIO without SINGLE_THREADED causes fatal error: semphr.h: No such file #7533

@gojimmypi

Description

@gojimmypi

Contact Details

No response

Version

latest master

Description

While working on #7528 I discovered a new problem with the PlatformIO build of wolfSSL.

The problem seems manifested itself only when SINGLE_THREADED is not defined in the user_settings.h.

Temporary workaround: ensure this line is in the user_settings.h:

#define SINGLE_THREADED

Reproduction steps

build the latest test example in the staging preview of the PlatformIO library:

https://registry.platformio.org/libraries/wolfssl-staging/wolfSSL

Relevant log output

Compiling .pio\build\esp32dev\bootloader_support\src\bootloader_common_loader.o
In file included from src/main.c:1:
.pio/libdeps/esp32dev/wolfSSL/src/wolfssl/wolfcrypt/settings.h:1119:18: fatal error: semphr.h: No such file or directory

****************************************************************
* Looking for semphr.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:semphr.h"
* Web  > https://registry.platformio.org/search?q=header:semphr.h
*
****************************************************************

 1119 |         #include "semphr.h"
      |                  ^~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp32dev\bootloader_support\src\bootloader_clock_init.o
*** [.pio\build\esp32dev\src\main.o] Error 1
=================================================================== [FAILED] Took 35.35 seconds 

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions