Raku / old-issue-tracker

Tickets from RT
https://github.com/Raku/old-issue-tracker/issues
2 stars 1 forks source link

test failures on armv7l (e.g. Jolla phone) #4367

Open p6rt opened 9 years ago

p6rt commented 9 years ago

Migrated from rt.perl.org#125517 (status was 'open')

Searchable as RT125517$

p6rt commented 9 years ago

From @sjn

[nemo@​Jolla moar-nom]$ uname -a Linux Jolla 3.4.106.20150416.1 #​1 SMP PREEMPT Thu Apr 23 02​:16​:13 UTC 2015 armv7l armv7l armv7l GNU/Linux

Running "make test" gives the following report​:

Test Summary Report


t/04-nativecall/02-simple-args.t (Wstat​: 256 Tests​: 12 Failed​: 1)   Failed test​: 11   Non-zero exit status​: 1 t/04-nativecall/03-simple-returns.t (Wstat​: 256 Tests​: 11 Failed​: 1)   Failed test​: 3   Non-zero exit status​: 1 t/04-nativecall/13-union.t (Wstat​: 768 Tests​: 28 Failed​: 3)   Failed tests​: 2, 15, 24   Non-zero exit status​: 3 Files=40, Tests=514, 236 wallclock secs ( 0.84 usr 0.18 sys + 161.06 cusr 8.02 csys = 170.10 CPU) Result​: FAIL

=============================================

Here's the output of "prove -e perl6 -v" for the above test files​:

=============================================

[nemo@​Jolla moar-nom]$ prove -e perl6 -v t/04-nativecall/02-simple-args.t t/04-nativecall/03-simple-returns.t t/04-nativecall/13-union.t t/04-nativecall/02-simple-args.t ..... 1..12 ok 1 - passed int 42 ok 2 - passed two shorts ok 3 - passed an int32, int16 and int8 ok 4 - passed a double ok 5 - passed a float ok 6 - passed a string ok 7 - checked previously passed string ok 8 - wrapped sub ok 9 - passed int64 0xFFFFFFFFFF ok 10 - passed uint8 0xFE not ok 11 - passed uint8 0xFFFE

# Failed test 'passed uint8 0xFFFE' # at t/04-nativecall/02-simple-args.t line 61 # expected​: '11' # got​: '0' ok 12 - passed uint8 0xFFFFFFFE # Looks like you failed 1 test of 12 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/12 subtests t/04-nativecall/03-simple-returns.t .. 1..11 ok 1 - returning int works ok 2 - returning short works not ok 3 - returning char works

# Failed test 'returning char works' # at t/04-nativecall/03-simple-returns.t line 18 # expected​: '-103' # got​: '153' ok 4 - returning double works ok 5 - returning float works ok 6 - returning string works ok 7 - returning null string pointer ok 8 - returning int64 works ok 9 - returning uint8 works ok 10 - returning uint16 works ok 11 - returning uint32 works # Looks like you failed 1 test of 11 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/11 subtests t/04-nativecall/13-union.t ........... 1..28 ok 1 - sizeof union is sizeof biggest member not ok 2 - sizeof(MyStruct)

# Failed test 'sizeof(MyStruct)' # at t/04-nativecall/13-union.t line 42 # expected​: '32' # got​: '28' ok 3 - getting long ok 4 - getting num ok 5 - getting int8 ok 6 - getting num32 ok 7 - getting long from C-created struct ok 8 - getting num from C-created struct ok 9 - getting int8 from C-created struct ok 10 - getting num32 from C-created struct ok 11 - long in union ok 12 - int in union ok 13 - short in union ok 14 - char in union not ok 15 - sizeof(MyStruct2)

# Failed test 'sizeof(MyStruct2)' # at t/04-nativecall/13-union.t line 94 # expected​: '32' # got​: '28' ok 16 - getting long from C-created struct ok 17 - getting num from C-created struct ok 18 - getting int8 from C-created struct ok 19 - getting num32 from C-created struct ok 20 - long in union* ok 21 - int in union* ok 22 - short in union* ok 23 - char in union* not ok 24 - sizeof(UnionOfStructs)

# Failed test 'sizeof(UnionOfStructs)' # at t/04-nativecall/13-union.t line 132 # expected​: '32' # got​: '28' ok 25 - member a of union is-a MyStruct ok 26 - member b of union is-a YourStruct ok 27 - a.byte was set to 42 by C ok 28 - b.byte must be the same # Looks like you failed 3 tests of 28 Dubious, test returned 3 (wstat 768, 0x300) Failed 3/28 subtests

Test Summary Report


t/04-nativecall/02-simple-args.t (Wstat​: 256 Tests​: 12 Failed​: 1)   Failed test​: 11   Non-zero exit status​: 1 t/04-nativecall/03-simple-returns.t (Wstat​: 256 Tests​: 11 Failed​: 1)   Failed test​: 3   Non-zero exit status​: 1 t/04-nativecall/13-union.t (Wstat​: 768 Tests​: 28 Failed​: 3)   Failed tests​: 2, 15, 24   Non-zero exit status​: 3 Files=3, Tests=51, 26 wallclock secs ( 0.22 usr 0.04 sys + 24.47 cusr 0.92 csys = 25.65 CPU) Result​: FAIL

p6rt commented 8 years ago

From @jonathanstowe

This is still the same with a current snapshot Test Summary Report


t/04-nativecall/02-simple-args.t (Wstat​: 256 Tests​: 13 Failed​: 1)   Failed test​: 11   Non-zero exit status​: 1 t/04-nativecall/03-simple-returns.t (Wstat​: 256 Tests​: 11 Failed​: 1)   Failed test​: 3   Non-zero exit status​: 1 t/04-nativecall/11-cpp.t (Wstat​: 256 Tests​: 21 Failed​: 1)   Failed test​: 1   Non-zero exit status​: 1 t/04-nativecall/13-union.t (Wstat​: 768 Tests​: 28 Failed​: 3)   Failed tests​: 2, 15, 24   Non-zero exit status​: 3

This on a raspberry pi Linux canneloni 4.1.19-v7+ #​858 SMP Tue Mar 15 15​:56​:00 GMT 2016 armv7l GNU/Linux

p6rt commented 8 years ago

The RT System itself - Status changed from 'new' to 'open'

p6rt commented 7 years ago

From @FROGGS

Please check if it works now.

If not, please try to pass --has-libffi, perhaps after installing the libffi-dev package.