-
Notifications
You must be signed in to change notification settings - Fork 198
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
macOS arm64 test failure: cconv_array.t #604
Comments
I suspect this is a LuaJIT bug. Can you please help me with this test?
#include <stdint.h>
int8_t f(int8_t x0, int8_t x1, int8_t x2, int8_t x3, int8_t x4, int8_t x5, int8_t x6, int8_t x7, int8_t x8, int8_t x9) {
return x0 + x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8 + x9;
}
local c = terralib.includecstring [[
#include <stdint.h>
int8_t f(int8_t x0, int8_t x1, int8_t x2, int8_t x3, int8_t x4, int8_t x5, int8_t x6, int8_t x7, int8_t x8, int8_t x9);
]]
terralib.linklibrary("libbug604.dylib")
print(c.f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9))
local ffi = require("ffi")
ffi.cdef [[
int8_t f(int8_t x0, int8_t x1, int8_t x2, int8_t x3, int8_t x4, int8_t x5, int8_t x6, int8_t x7, int8_t x8, int8_t x9);
]]
local c = ffi.load("libbug604")
print(c.f(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)) Then run:
It should print |
Looks like it's still failing: $ ../build/bin/terra bug604.t
bug604.t:9: NYI: cannot call this C function (yet)
stack traceback:
[C]: in function 'f'
bug604.t:9: in main chunk
$ ../build/bin/terra bug604.lua
bug604.lua:9: NYI: cannot call this C function (yet)
stack traceback:
[C]: in function 'f'
bug604.lua:9: in main chunk |
Ok, definitely a LuaJIT bug. I'll file an issue shortly. It might help to have:
|
Version info:
|
Upstream issue submitted: LuaJIT/LuaJIT#888 |
The upstream issue was closed as a duplicate of LuaJIT/LuaJIT#205, which has been open for six years with no indication of being a priority. I think at this point the best we can do is modify the bounds on this test so that we stick to what works. |
@shoe42 Is this still failing? What does the output look like on |
Looks like on commit 71f2180, the test fails with:
|
Sigh. Ok, if you take out |
|
Thanks. I'll make a new workaround. |
Can you try running the version of |
Yup, looks like that PR makes |
Thanks! Merged. I think all tests should pass in |
@shoe42 if you'd like to do one last check, I can get a release rolling. |
Looks like everything is passing successfully - thanks for the work in bringing M1 test pass rate up to scratch! |
Thanks, will release here shortly. |
Just FYI: as of #642 I have pulled in an updated LuaJIT that fixes the root cause, and with that, we can now run the full |
The
cconv_array.t
test fails on macOS arm64 (M1). macOS 12.5, using system clang and Homebrew LLVM 13. Trimmed output:The text was updated successfully, but these errors were encountered: