-
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
unsynchronized newlib uintptr_t and PRIxPTR definition on xtensa #27006
Comments
I tried it with the following code added in
And it compiled and ran on
|
But with newlib, PRIxPTR is |
Fixes by zephyrproject-rtos/sdk-ng#257, which requires a new SDK build. |
@dcpleung / @andrewboie what's the urgency of a toolchain SDK with this fix? Trying to see if we need a 0.11.5 or does this wait for 0.12.x. |
I worked around it for the code I was working on with some casts to |
This will be fixed once the new SDK with newlib 3 is release. |
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. |
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. |
Newer SDK is merged via #31230. So closing this... |
Describe the bug
This seems to only affect Xtensa, I can only reproduce this with qemu_xtensa.
This assertion:
produces:
Expected behavior
The definitions of uintptr_t and PRIxPTR (and really any PRI.PTR) are in sync such that you get the right printf code for it.
Impact
Ugly workaround to hard-cast everything to just unsigned long which I'd rather not do.
The text was updated successfully, but these errors were encountered: