-
Notifications
You must be signed in to change notification settings - Fork 1
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
tests fail on Raspberry Pi Debian/Wheezy #5010
Comments
From @jonathanstoweAs below: t/04-nativecall/02-simple-args.t (Wstat: 256 Tests: 13 Failed: 1) The union one looks like nativesizeof() is not taking the correct byte alignment into account (it looks like it's not taking the padding of the first long in MyStruct, but that may be a concidence.): ok 1 - sizeof union is sizeof biggest member # Failed test 'sizeof(MyStruct)' # Failed test 'sizeof(MyStruct2)' # Failed test 'sizeof(UnionOfStructs)' t/04-nativecall/11-cpp.t : 1..21 # Failed test 'sizeof(Derived1)' # Failed test 'can pass arguments to method' The first failure is also related to the nativesizeof, the second is probably an aligment issue. t/04-nativecall/03-simple-returns.t : 1..11 # Failed test 'returning char works' This looks like a problem with the unsigned parts. t/04-nativecall/02-simple-args.t : 1..13 # Failed test 'passed uint16 0xFFFE' The failing test here it gets -2 in the function (i.e. it is becoming signed.) Certainly the nativesizeof() problem may militate against being able to use anything more than simple NativeCall bindings on ARM as getting the wrong allocated size may cause a segfault in native code. |
From @FROGGSThis issue is fixed if you configure MoarVM with --has-libffi as of today. |
1 similar comment
From @FROGGSThis issue is fixed if you configure MoarVM with --has-libffi as of today. |
@FROGGS - Status changed from 'new' to 'resolved' |
From @jonathanstoweIt actually seems to mostly pass now without doing anything specific The only failure I am seeing now is jonathan@canneloni:~/devel/perl6/rakudo$ install/bin/perl6 t/04-nativecall/02-simple-args.t # Failed test 'passed uint8 0xFFFE' Let me test with the ffi On Sun Oct 09 04:22:23 2016, FROGGS.de wrote:
|
From @jonathanstoweYep, that's all good with the libffi - top work! All tests successful. On Sun Oct 09 04:22:23 2016, FROGGS.de wrote:
|
Migrated from rt.perl.org#127194 (status was 'resolved')
Searchable as RT127194$
The text was updated successfully, but these errors were encountered: