-
Notifications
You must be signed in to change notification settings - Fork 8.3k
kernel: events: Depend on multithreading #98489
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
kernel: events: Depend on multithreading #98489
Conversation
Kernel events depend on multithreading being enabled, and mixing them with a non-multithreaded build gives linker failures internal to events.c. To avoid this, make events depend on multithreading. ``` libkernel.a(events.c.obj): in function `k_event_post_internal': 175: undefined reference to `z_sched_waitq_walk' events.c:183: undefined reference to `z_sched_wake_thread' events.c:191: undefined reference to `z_reschedule' libkernel.a(events.c.obj): in function `k_sched_current_thread_query': kernel.h:216: undefined reference to `z_impl_k_sched_current_thread_query' libkernel.a(events.c.obj): in function `k_event_wait_internal': events.c:312: undefined reference to `z_pend_curr' ``` Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
ed4a9a7 to
8118545
Compare
|
peter-mitsis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The failing CI test does not appear to be related to the proposed change.
|
@carlescufi I see this in the summary of the latest Seems likely to be related to this PR? |
Looks like it's coming from this: The full(er) error is this: That looks pretty strange to me - why something from an espressif soc file for a qemu build? |



Kernel events depend on multithreading being enabled, and mixing them with a non-multithreaded build gives linker failures internal to events.c. To avoid this, make events depend on multithreading.