Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created December 6, 2011 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/1440125 to your computer and use it in GitHub Desktop.
Save tadzik/1440125 to your computer and use it in GitHub Desktop.
┌─[tadzik@yavin4]─[~/src/perl/zavolaj] (master)
└─[%]─> g pull
Updating da482b1..b082d38
Fast-forward
README | 23 ++----
examples/win32-api-call.p6 | 2 +-
lib/NativeCall.pm6 | 205 +++++++++++++++++++++++---------------------
3 files changed, 113 insertions(+), 117 deletions(-)
┌─[tadzik@yavin4]─[~/src/perl/zavolaj] (master)
└─[%]─> make test
perl6 --target=pir --output=lib/NativeCall.pir lib/NativeCall.pm6
env PERL6LIB=lib LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib prove -e perl6 -r t/
t/02-resident.t ... ===SORRY!===
No applicable candidates found to dispatch to for 'trait_mod:<is>'. Available candidates are:
:(Attribute $attr, Any $rw)
:(Attribute $attr, Any $readonly)
:(Attribute $attr, Any $box_target)
:(Routine $r, Any $rw)
:(Routine $r, Any $default)
:(Routine $r, Any $info, Any $inlinable)
:(Parameter $param, Any $readonly)
:(Parameter $param, Any $rw)
:(Parameter $param, Any $copy)
:(Parameter $param, Any $required)
:(Routine $r, Any $export)
:(Routine $r, Any $hidden_from_backtrace)
:(Routine $r, Any $libname, Any $native)
:(Routine $r, Any $name, Any $nativeconv)
:(Parameter $p, Any $name, Any $encoded)
:(Routine $p, Any $name, Any $encoded)
:(Mu $type, Any $rw)
:(Mu $type, Any $size, Any $nativesize)
:(Mu $type, Any $export)
:(Mu $docee, Any $doc, Any $docs)
:(Mu $docee, Any $doc, Any $docs)
:(Mu $child, Mu $parent)
t/02-resident.t ... Dubious, test returned 1 (wstat 256, 0x100)
No subtests run
t/03-customlib.t .. ===SORRY!===
CHECK FAILED:
Undefined routine '&NativeArray' called (line 32)
t/03-customlib.t .. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run
Test Summary Report
-------------------
t/02-resident.t (Wstat: 256 Tests: 0 Failed: 0)
Non-zero exit status: 1
Parse errors: No plan found in TAP output
t/03-customlib.t (Wstat: 256 Tests: 0 Failed: 0)
Non-zero exit status: 1
Parse errors: No plan found in TAP output
Files=2, Tests=0, 15 wallclock secs ( 0.03 usr 0.01 sys + 13.74 cusr 0.47 csys = 14.25 CPU)
Result: FAIL
make: *** [test] Error 1
┌─[tadzik@yavin4]─[~/src/perl/zavolaj] (master)
└─[%]─> perl6 --ll-exception t/02-resident.t
No applicable candidates found to dispatch to for 'trait_mod:<is>'. Available candidates are:
:(Attribute $attr, Any $rw)
:(Attribute $attr, Any $readonly)
:(Attribute $attr, Any $box_target)
:(Routine $r, Any $rw)
:(Routine $r, Any $default)
:(Routine $r, Any $info, Any $inlinable)
:(Parameter $param, Any $readonly)
:(Parameter $param, Any $rw)
:(Parameter $param, Any $copy)
:(Parameter $param, Any $required)
:(Routine $r, Any $export)
:(Routine $r, Any $hidden_from_backtrace)
:(Routine $r, Any $libname, Any $native)
:(Routine $r, Any $name, Any $nativeconv)
:(Parameter $p, Any $name, Any $encoded)
:(Routine $p, Any $name, Any $encoded)
:(Mu $type, Any $rw)
:(Mu $type, Any $size, Any $nativesize)
:(Mu $type, Any $export)
:(Mu $docee, Any $doc, Any $docs)
:(Mu $docee, Any $doc, Any $docs)
:(Mu $child, Mu $parent)
current instr.: 'trait_mod:<is>' pc 722521 (src/gen/CORE.setting.pir:161685) (src/gen/CORE.setting:12)
called from Sub 'nqp;Perl6;SymbolTable;apply_trait' pc 28131 (src/gen/perl6-symboltable.pir:11396) (src/Perl6/SymbolTable.pm:1488)
called from Sub 'nqp;Perl6;Actions;_block3757' pc 81887 (src/gen/perl6-actions.pir:33178) (src/Perl6/Actions.pm:2467)
called from Sub 'nqp;Perl6;Actions;_block3111' pc 64112 (src/gen/perl6-actions.pir:25507) (src/Perl6/Actions.pm:1562)
called from Sub 'nqp;Perl6;Actions;routine_def' pc 62483 (src/gen/perl6-actions.pir:24840) (src/Perl6/Actions.pm:1562)
called from Sub 'nqp;Regex;Cursor;!reduce' pc 2703 (src/Regex/Cursor.pir:1023)
called from Sub 'nqp;Regex;Cursor;!cursor_pass' pc 2116 (src/Regex/Cursor.pir:660)
called from Sub 'nqp;Perl6;Grammar;routine_def' pc 163254 (src/gen/perl6-grammar.pir:47752) (src/Perl6/Grammar.pm:1423)
called from Sub 'nqp;Perl6;Grammar;routine_declarator:sym<sub>' pc 160421 (src/gen/perl6-grammar.pir:47030) (src/Perl6/Grammar.pm:1414)
called from Sub 'nqp;Regex;Cursor;!protoregex' pc 4018 (src/Regex/Cursor.pir:81)
called from Sub 'nqp;Perl6;Grammar;routine_declarator' pc 160139 (src/gen/perl6-grammar.pir:46943) (src/Perl6/Grammar.pm:1412)
called from Sub 'nqp;Perl6;Grammar;term:sym<routine_declarator>' pc 101489 (src/gen/perl6-grammar.pir:29240) (src/Perl6/Grammar.pm:807)
called from Sub 'nqp;Regex;Cursor;!protoregex' pc 4018 (src/Regex/Cursor.pir:81)
called from Sub 'nqp;Perl6;Grammar;term' pc 189124 (src/gen/perl6-grammar.pir:54966) (src/Perl6/Grammar.pm:1746)
called from Sub 'nqp;Perl6;Grammar;termish' pc 220731 (src/gen/perl6-grammar.pir:64521) (src/Perl6/Grammar.pm:2089)
called from Sub 'nqp;HLL;Grammar;EXPR' pc 24091 (src/stage2/gen/NQPHLL.pir:7083) (src/stage2/gen/NQPHLL.pm:558)
called from Sub 'nqp;Perl6;Grammar;EXPR' pc 221627 (src/gen/perl6-grammar.pir:64824) (src/Perl6/Grammar.pm:2110)
called from Sub 'nqp;Perl6;Grammar;statement' pc 67241 (src/gen/perl6-grammar.pir:19171) (src/Perl6/Grammar.pm:503)
called from Sub 'nqp;Perl6;Grammar;statementlist' pc 66098 (src/gen/perl6-grammar.pir:18864) (src/Perl6/Grammar.pm:489)
called from Sub 'nqp;Perl6;Grammar;comp_unit' pc 63860 (src/gen/perl6-grammar.pir:17968) (src/Perl6/Grammar.pm:457)
called from Sub 'nqp;Perl6;Grammar;TOP' pc 31568 (src/gen/perl6-grammar.pir:7906) (src/Perl6/Grammar.pm:35)
called from Sub 'nqp;Regex;Cursor;parse' pc 1781 (src/Regex/Cursor.pir:470)
called from Sub 'nqp;HLL;Compiler;parse' pc 37898 (src/stage2/gen/NQPHLL.pir:13748) (src/stage2/gen/NQPHLL.pm:1496)
called from Sub 'nqp;HLL;Compiler;_block2033' pc 37400 (src/stage2/gen/NQPHLL.pir:13519) (src/stage2/gen/NQPHLL.pm:1472)
called from Sub 'nqp;HLL;Compiler;compile' pc 37267 (src/stage2/gen/NQPHLL.pir:13448) (src/stage2/gen/NQPHLL.pm:1470)
called from Sub 'nqp;HLL;Compiler;eval' pc 33582 (src/stage2/gen/NQPHLL.pir:11637) (src/stage2/gen/NQPHLL.pm:1256)
called from Sub 'nqp;HLL;Compiler;evalfiles' pc 36654 (src/stage2/gen/NQPHLL.pir:13147) (src/stage2/gen/NQPHLL.pm:1456)
called from Sub 'nqp;HLL;Compiler;_block1864' pc 35548 (src/stage2/gen/NQPHLL.pir:12598) (src/stage2/gen/NQPHLL.pm:1386)
called from Sub 'nqp;HLL;Compiler;command_eval' pc 34977 (src/stage2/gen/NQPHLL.pir:12358) (src/stage2/gen/NQPHLL.pm:1401)
called from Sub 'nqp;Perl6;Compiler;command_eval' pc 944 (src/gen/perl6-compiler.pir:370) (src/Perl6/Compiler.nqp:18)
called from Sub 'nqp;HLL;Compiler;command_line' pc 34641 (src/stage2/gen/NQPHLL.pir:12200) (src/stage2/gen/NQPHLL.pm:1353)
called from Sub 'MAIN' pc 715 (src/gen/perl6.pir:275) (src/main.nqp src/gen/main-version.nqp:30)
called from Sub '_block1000' pc 100 (src/gen/perl6.pir:71) (src/main.nqp src/gen/main-version.nqp:1)
┌─[tadzik@yavin4]─[~/src/perl/zavolaj] (master)
└─[%]─> perl6 --ll-exception t/03-customlib.t
CHECK FAILED:
Undefined routine '&NativeArray' called (line 32)
current instr.: 'nqp;Perl6;Optimizer;_block1075' pc 2482 (src/gen/perl6-optimizer.pir:972) (src/Perl6/Optimizer.pm:58)
called from Sub 'nqp;Perl6;Optimizer;optimize' pc 2309 (src/gen/perl6-optimizer.pir:887) (src/Perl6/Optimizer.pm:49)
called from Sub 'nqp;Perl6;Compiler;optimize' pc 1034 (src/gen/perl6-compiler.pir:414) (src/Perl6/Compiler.nqp:24)
called from Sub 'nqp;HLL;Compiler;_block2033' pc 37400 (src/stage2/gen/NQPHLL.pir:13519) (src/stage2/gen/NQPHLL.pm:1472)
called from Sub 'nqp;HLL;Compiler;compile' pc 37267 (src/stage2/gen/NQPHLL.pir:13448) (src/stage2/gen/NQPHLL.pm:1470)
called from Sub 'nqp;HLL;Compiler;eval' pc 33582 (src/stage2/gen/NQPHLL.pir:11637) (src/stage2/gen/NQPHLL.pm:1256)
called from Sub 'nqp;HLL;Compiler;evalfiles' pc 36654 (src/stage2/gen/NQPHLL.pir:13147) (src/stage2/gen/NQPHLL.pm:1456)
called from Sub 'nqp;HLL;Compiler;_block1864' pc 35548 (src/stage2/gen/NQPHLL.pir:12598) (src/stage2/gen/NQPHLL.pm:1386)
called from Sub 'nqp;HLL;Compiler;command_eval' pc 34977 (src/stage2/gen/NQPHLL.pir:12358) (src/stage2/gen/NQPHLL.pm:1401)
called from Sub 'nqp;Perl6;Compiler;command_eval' pc 944 (src/gen/perl6-compiler.pir:370) (src/Perl6/Compiler.nqp:18)
called from Sub 'nqp;HLL;Compiler;command_line' pc 34641 (src/stage2/gen/NQPHLL.pir:12200) (src/stage2/gen/NQPHLL.pm:1353)
called from Sub 'MAIN' pc 715 (src/gen/perl6.pir:275) (src/main.nqp src/gen/main-version.nqp:30)
called from Sub '_block1000' pc 100 (src/gen/perl6.pir:71) (src/main.nqp src/gen/main-version.nqp:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment