-
Notifications
You must be signed in to change notification settings - Fork 171
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
Add missing __builtin_clz definition for MSVC #1808
base: main
Are you sure you want to change the base?
Add missing __builtin_clz definition for MSVC #1808
Conversation
ae5d3cb
to
214c3fb
Compare
Huh, anybody have an idea what's happening here? https://dev.azure.com/MoarVM/MoarVM/_build/results?buildId=1423&view=logs&j=97945c8c-7ab8-5ec2-f2c7-7c8541d3bf5c&t=439f2dd7-104a-517a-a6b1-3f392bb69fda&l=2266 |
It was missed when copying #defines from https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/int_lib.h.
…length-null-terminator) than I calculate?
2fcfe0b
to
9e3ee7f
Compare
do you know that the name exists in the dll for sure? maybe something changed somewhere. you should be able to use |
I think the nativecall errors are unrelated to this change. But if you can explain https://dev.azure.com/MoarVM/MoarVM/_build/results?buildId=1436&view=logs&j=d36c29d8-9236-5cd5-d848-768a0b8a3eb3&t=d8ee4cfd-785a-54f9-bf7e-80664ee220b4&l=34 I would most grateful. If I pull our i64toa_jeaiii out into a separate file and run it with 1449334664 it's just fine. Is this a windows-only problem? |
And if I build this branch locally (with all the extra checks and debug fprintfs) it builds just fine without printing anything. |
The native call thing is tracked over in: rakudo/rakudo#5587, I'm pretty sure that's a different issue. |
Well, that definitely needs to be clarified, but it shouldn't be the cause. That's just to figure out how big of a string to allocate, but even writing into a definitely-big-enough stack-allocated string initialized to all 0 ends up wrong. |
not sure if this does anything, but try |
yeah at least some of the numbers in the debug output are suspiciously 31 bits long and then a much longer number for the output of m and m2 |
Maybe this could be related. After finding some test failures in What i found was, the tests sometime cause I mentioned my observations with a bit more detail here. |
This is probably helpful information, thanks. I wonder if we can easily add 32-bit Alpine Linux to our CI pipeline? |
Alpine itself uses Gitlab for CI, which is where i first noticed this issue, while trying to upgrade Rakudo and its dependencies. As for Github, an Alpine developer has this project which you may find helpful: https://github.com/jirutka/setup-alpine |
It was missed when copying #defines from
https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/int_lib.h.