-
Notifications
You must be signed in to change notification settings - Fork 127
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
Enabling Threads - Linux OS #202
Comments
Just to add, I though the compiler had the thread flag disabled, so I checked the version details, where I can see that:
|
You can't use POSIX threads in Bouffalo SDK, as it does not provide POSIX compatible threading. That's mainly because this SDK is without any RTOS by default, and optionally you can use FreeRTOS, but you still need to use their functions/API, instead of classic pthread headers. |
Yes I get that, However, in the linux version, the kernel is there, so upon checking elsewhere I understood for that to work I will need to compile the code with Linux tool chain instead. 1-Is this correct? Eventually, I downloaded the toolchain and setup the env. var then upon compilation, I face another issues:
Which I assume it's due to the difference between the elf (Newlib) & linux (libc) tool chain. 2 - Is this also correct? Probably I missed updating configuration in the make files or compilation flags, 3-Can you please explain to me how to properly migrate into the linuxtool chain in this case? |
Hello All,
I was trying to test threading with this SDK, looks like I'm not able to wrap my head over the proper library and setup in the CMakeLists.txt file. Can anyone help me please?
The below is an example of my CMakeLists.txt file:
while I do
#include <pthread.h>
, I can see the below warning only message during compilation, which end successfully:Below is the complete log.
The text was updated successfully, but these errors were encountered: