-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Linking external lib against POSIX API #28124
Comments
Zephyr's POSIX infrastructure doesn't support the clock_gettime() API, and does not have the various |
No, I'm wrong about that. I applied the patch you give above to the external library function and am able to build for that platform. This may be a recent fix due to #27939. Please check the current master branch, or 2.4.0-rc1. |
I guess that I have yesterday's branch of Zephyr. Here you have a list of commands for replicating it:
My complete output:
|
Thanks; apparently I had patched the version in my personal development area then built in my nordic development. I've reproduced the problem now. Based on the description in the documentation this should probably work, but it doesn't. The problem is that To do it without modifying the source you'd have to somehow communicate the
but this doesn't work because Zephyr's To make progress, change the source to include Fixing the larger issue of making the Zephyr POSIX subsystem able to be used by an external library is likely to be a major effort. I'm going to mark this a bug so we can discuss it in triage today, but it'll probably get converted to an enhancement. |
Ok, thank you very much @pabigot |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
@pabigot @MaureenHelm any update on this? |
Not to my knowledge. |
Hello, I'm trying to use Zephyr POSIX API inside an external lib. In order to do that for example I test the
sample/application_development/external_lib/
with the following changes:And I get the following error:
If I put the same couple of lines inside the
main.c
of the app it builds. Can you provide me some help with the required configuration for this requirement?Update:
I'm building with this command:
west build -b olimex_stm32_e407 -p auto zephyr/samples/application_development/external_lib/
The text was updated successfully, but these errors were encountered: