niner / Inline-Perl6

Use Perl 6 in Perl 5 code.
Artistic License 2.0
10 stars 3 forks source link

fail test Can round-trip, got nan, expected rat #5

Closed daxim closed 5 years ago

daxim commented 5 years ago
Inline-Perl6-0.09› perl6 -MInline::Perl5 -e'say Inline::Perl5.^ver'
(Mu)

Inline-Perl6-0.09› rpm -q --qf %{VERSION} perl6-Inline-Perl5
0.38

Inline-Perl6-0.09› perl Makefile.PL 
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Inline::Perl6
Writing MYMETA.yml and MYMETA.json

Inline-Perl6-0.09› make test
Running Mkbootstrap for Perl6 ()
chmod 644 "Perl6.bs"
"/home/daxim/local/share/perlbrew/perls/perl-5.30.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Perl6.bs blib/arch/auto/Inline/Perl6/Perl6.bs 644
"/home/daxim/local/share/perlbrew/perls/perl-5.30.0/bin/perl" "/home/daxim/local/share/perlbrew/perls/perl-5.30.0/lib/5.30.0/ExtUtils/xsubpp"  -typemap '/home/daxim/local/share/perlbrew/perls/perl-5.30.0/lib/5.30.0/ExtUtils/typemap'  Perl6.xs > Perl6.xsc
Please specify prototyping behavior for Perl6.xs (see perlxs manual)
mv Perl6.xsc Perl6.c
cc -c  -I/usr/include/moar -I/usr/include/dynasm -I/usr/include/dyncall -I/usr/include/libatomic_ops -I/usr/include/libtommath -I/usr/include/libuv -I/usr/include/linenoise -I/usr/include/sha1 -I/usr/include/tinymt -D_REENTRANT -D_GNU_SOURCE -fPIC -DUSE_THREAD_SAFE_LOCALE -fwrapv -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -g   -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" -fPIC "-I/home/daxim/local/share/perlbrew/perls/perl-5.30.0/lib/5.30.0/x86_64-linux-thread-multi-ld/CORE"   Perl6.c
In file included from Perl6.xs:6:
ppport.h:4385: warning: "WIDEST_UTYPE" redefined
 4385 | # define WIDEST_UTYPE U64TYPE
      | 
In file included from /home/daxim/local/share/perlbrew/perls/perl-5.30.0/lib/5.30.0/x86_64-linux-thread-multi-ld/CORE/perl.h:2508,
                 from Perl6.xs:3:
/home/daxim/local/share/perlbrew/perls/perl-5.30.0/lib/5.30.0/x86_64-linux-thread-multi-ld/CORE/handy.h:1072: note: this is the location of the previous definition
 1072 | #   define WIDEST_UTYPE U64
      | 
rm -f blib/arch/auto/Inline/Perl6/Perl6.so
LD_RUN_PATH="/usr/lib/../lib64" cc  -shared -O2 -g -L/usr/local/lib -fstack-protector-strong  Perl6.o  -o blib/arch/auto/Inline/Perl6/Perl6.so  \
   -L/usr/lib -lmoar   \

chmod 755 blib/arch/auto/Inline/Perl6/Perl6.so
cp lib/Inline/Perl6.pm blib/lib/Inline/Perl6.pm
cp lib/Inline/Perl6/Helper.pm blib/lib/Inline/Perl6/Helper.pm
PERL_DL_NONLAZY=1 "/home/daxim/local/share/perlbrew/perls/perl-5.30.0/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01load.t ........... ok   
t/02eval.t ........... ok   
t/03eval_return.t .... ok   
t/04call_function.t .. ok   
t/05p6_to_p5.t ....... 1/? 
#   Failed test at t/05p6_to_p5.t line 11.
#          got: 'nan'
#     expected: '5.5'
# Looks like you failed 1 test of 11.
t/05p6_to_p5.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/11 subtests 
t/06p5_to_p6.t ....... 1/? 
#   Failed test 'Can round-trip '
#   at t/06p5_to_p6.t line 17.
#          got: '-nan'
#     expected: '2.4'
# Looks like you failed 1 test of 8.
t/06p5_to_p6.t ....... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests 
t/07call_method.t .... ok   
t/use.t .............. skipped: Lexical module loading in rakudo broke this
t/warn.t ............. foo
  in block <unit> at EVAL_0 line 1
  in method run at /usr/share/perl6/vendor/sources/130449F27E85303EEC9A19017246A5ED249F99E4 (Inline::Perl5) line 744

t/warn.t ............. ok   

Test Summary Report
-------------------
t/05p6_to_p5.t     (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/06p5_to_p6.t     (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
Files=9, Tests=30,  3 wallclock secs ( 0.03 usr  0.01 sys +  3.80 cusr  0.36 csys =  4.20 CPU)
Result: FAIL
Failed 2/9 test programs. 2/30 subtests failed.
make: *** [Makefile:1028: test_dynamic] Fehler 255
niner commented 5 years ago

Do I see that correctly, that you installed Inline-Perl5 from the openSUSE package but use a perlbrew perl for Inline::Perl6? In that case I'm actually surprised that it doesn't explode more violently as Inline-Perl5 is compiled against system perl and will load the system's libperl.so

daxim commented 5 years ago

I see; passes tests with system perl