-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[BUG] GCC/POSIX port does not compile on FreeBSD #1239
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
Labels
bug
Something isn't working
Comments
Hi @tymmej |
tymmej
pushed a commit
to tymmej/FreeRTOS-Kernel
that referenced
this issue
Feb 6, 2025
On FreeBSD pthread_once_t is a struct and cast is required. Otherwise there's compilation error: ../../mocks/freertos/port.c:261:23: error: expected expression hSigSetupThread = PTHREAD_ONCE_INIT; ^ PTHREAD_ONCE_INIT is defined as: { PTHREAD_NEEDS_INIT, NULL } on FreeBSD
3 tasks
I've created #1240. |
kar-rahul-aws
pushed a commit
that referenced
this issue
Feb 7, 2025
On FreeBSD pthread_once_t is a struct and cast is required. Otherwise there's compilation error: ../../mocks/freertos/port.c:261:23: error: expected expression hSigSetupThread = PTHREAD_ONCE_INIT; ^ PTHREAD_ONCE_INIT is defined as: { PTHREAD_NEEDS_INIT, NULL } on FreeBSD Co-authored-by: Jakub Tymejczyk <jakub.tymejczyk@enigma.com.pl>
The PR #1240 which addresses this issue has been verified and merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
GCC/POSIX port does not compile on FreeBSD target. Using FreeRTOS 202406.1 LTS
Target
Host
To Reproduce
Expected behavior
No errors during compilation.
Screenshots
Additional context
To fix problem it is enough to add cast
(pthread_once_t)PTHREAD_ONCE_INIT
On main version it looks like https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/portable/ThirdParty/GCC/Posix/port.c#L307 also needs cast.
The text was updated successfully, but these errors were encountered: