-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Zephyr project no longer builds #810
Comments
Project here |
Hi @ypearson-bdai, I just compiled your project without any issues: ![]() Please clean your project and compile it in verbose mode, then attach the logs here. Thanks. |
log attached This wasn't happening until I upgraded |
I see, I am also able to get the build linking but I do get the same warnings. I'd look at the log for what I'm actually dealing with which is my target code. Any way to target zephyr 3.6 instead of 3.7? PS sorry, ignore my toy example. My actual code doesn't link but used to link on a older version |
I think I found it. My code (which came from a zephyr example) had a |
You can downgrade the framework package via the platform_packages option, for example: [env:nucleo_f767zi]
platform = ststm32
board = nucleo_f767zi
framework = zephyr
...
platform_packages =
framework-zephyr @ ~2.30600.0
I can look into it, but I need a simple example to reproduce the issue. |
Ok, I'll provide that example soon. I'll try what you mentioned and report back |
Downgrading fixes this |
Here is the sample project, I think its easy to reproduce now. Let me know what you think. |
I've similar issues with zenoh-pico and Zephyr. I am using Zephyr 4.0: Changing the exit(-1) made no difference.
|
OK, found the issue, it relates to PR#586 ( eclipse-zenoh/zenoh-pico#586) File: platform_common.h They are calling a function within a Marco which causes a compilation problem:
Unfortunately, #define is a pre-processor directive used in C programs to define macros so the function has not been defined. Removing the function call and some logic amends it could be:
I will raise with zenoh team. Billy.. |
@WilliamGFish Thanks for confirming! I'm closing the issue as it seems that the culprit is a third-party dependency that has nothing to do with PlatformIO. |
@valeros |
Description of problem
Erased older platform IO, installed latest platform IO and broke my Zephyr build. The older version used Zephyr 3.6 and the latest uses Zephyr 3.7 now my code no longer compiles
PlatformIO Core, version 6.1.16
Ubuntu 22 LTS
Actual Results
Expected Results
Build success
Steps to Reproduce
prj.conf
andplatformio.ini
The text was updated successfully, but these errors were encountered: