Skip to content

Instantly share code, notes, and snippets.

@masak
Created May 9, 2013 16:13
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 masak/5548488 to your computer and use it in GitHub Desktop.
Save masak/5548488 to your computer and use it in GitHub Desktop.
this is the error I get from doing the 'has %!elems{Any}'
masak@mutex ~/ours/rakudo $ git di
diff --git a/src/core/Set.pm b/src/core/Set.pm
index 5f8d556..763c625 100644
--- a/src/core/Set.pm
+++ b/src/core/Set.pm
@@ -1,5 +1,5 @@
my class Set is Iterable does Associative {
- has %!elems;
+ has %!elems{Any};
method keys { %!elems.keys }
method values { %!elems.values }
diff --git a/tools/build/Makefile.in b/tools/build/Makefile.in
index 218f77e..aedaf60 100644
--- a/tools/build/Makefile.in
+++ b/tools/build/Makefile.in
@@ -234,12 +234,12 @@ CORE_SOURCES = \
src/core/Temporal.pm \
src/core/EXPORTHOW.pm \
src/core/Pod.pm \
+ src/core/operators.pm \
src/core/Set.pm \
src/core/Bag.pm \
src/core/ObjAt.pm \
src/core/Version.pm \
src/core/ForeignCode.pm \
- src/core/operators.pm \
src/core/metaops.pm \
src/core/terms.pm \
src/core/you_are_here.pm \
masak@mutex ~/ours/rakudo $ make && make spectest
/usr/bin/perl tools/build/gen-cat.pl src/core/traits.pm src/core/Positional.pm src/core/Associative.pm src/core/Callable.pm src/core/natives.pm src/core/stubs.pm src/core/control.pm src/core/Mu.pm src/core/Stringy.pm src/core/Any.pm src/core/Scalar.pm src/core/Code.pm src/core/WhateverCode.pm src/core/Block.pm src/core/Attribute.pm src/core/Routine.pm src/core/Sub.pm src/core/Macro.pm src/core/Method.pm src/core/Submethod.pm src/core/Junction.pm src/core/Cool.pm src/core/Enumeration.pm src/core/Whatever.pm src/core/Bool.pm src/core/Numeric.pm src/core/Real.pm src/core/Int.pm src/core/Order.pm src/core/UInt64.pm src/core/Num.pm src/core/Str.pm src/core/Capture.pm src/core/Parcel.pm src/core/Iterable.pm src/core/Iterator.pm src/core/Nil.pm src/core/Range.pm src/core/ListIter.pm src/core/MapIter.pm src/core/GatherIter.pm src/core/List.pm src/core/LoL.pm src/core/Array.pm src/core/Enum.pm src/core/Pair.pm src/core/EnumMap.pm src/core/Hash.pm src/core/Stash.pm src/core/PseudoStash.pm src/core/Parameter.pm src/core/Signature.pm src/core/Buf.pm src/core/Rational.pm src/core/Rat.pm src/core/Complex.pm src/core/Backtrace.pm src/core/Exception.pm src/core/Failure.pm src/core/Match.pm src/core/Cursor.pm src/core/Grammar.pm src/core/Regex.pm src/core/IO/Spec/Unix.pm src/core/IO/Spec/Win32.pm src/core/IO/Spec/Cygwin.pm src/core/IO/Spec.pm src/core/IO.pm src/core/IO/ArgFiles.pm src/core/IO/Socket.pm src/core/IO/Socket/INET.pm src/core/AST.pm src/core/CallFrame.pm src/core/Main.pm src/core/tai-utc.pm src/core/Instant.pm src/core/Duration.pm src/core/Temporal.pm src/core/EXPORTHOW.pm src/core/Pod.pm src/core/operators.pm src/core/Set.pm src/core/Bag.pm src/core/ObjAt.pm src/core/Version.pm src/core/ForeignCode.pm src/core/metaops.pm src/core/terms.pm src/core/you_are_here.pm > src/gen/CORE.setting
The following step can take a long time, please be patient.
./perl6 --setting=NULL --optimize=3 --target=pir --stagestats --output=src/gen/CORE.setting.pir src/gen/CORE.setting
Stage start : 0.000
Stage parse : 228.038
Stage syntaxcheck: 0.000
Stage ast : 0.000
Stage optimize : 21.882
Stage post : 109.018
Stage pir : 10.099
/home/masak/ours/rakudo/install/bin/parrot -o CORE.setting.pbc src/gen/CORE.setting.pir
./perl6 --target=pir --output=src/gen/RESTRICTED.setting.pir src/RESTRICTED.setting
Could not find sub &infix:<,>
current instr.: 'STORE' pc 305143 (src/gen/CORE.setting.pir:133941) (src/gen/CORE.setting:6880)
called from Sub '' pc 230823 (src/gen/CORE.setting.pir:102557) (src/gen/CORE.setting:4462)
called from Sub '' pc 18383 (src/gen/CORE.setting.pir:6896) (src/gen/CORE.setting:3964)
called from Sub '' pc 14 (src/gen/CORE.setting.pir:21) (src/gen/CORE.setting:1)
called from Sub '' pc 619237 (src/gen/CORE.setting.pir:241531) (src/gen/CORE.setting:13785)
called from Sub '' pc 5173 (src/gen/perl6-moduleloader.pir:2195) (src/Perl6/ModuleLoader.nqp:276)
called from Sub '' pc 5336 (src/gen/perl6-moduleloader.pir:2259) (src/Perl6/ModuleLoader.nqp:281)
called from Sub 'load_setting' pc 5108 (src/gen/perl6-moduleloader.pir:2163) (src/Perl6/ModuleLoader.nqp:276)
called from Sub '' pc 5699 (src/gen/perl6-symboltable.pir:2304) (src/Perl6/World.nqp:332)
called from Sub 'load_setting' pc 5557 (src/gen/perl6-symboltable.pir:2236) (src/Perl6/World.nqp:325)
called from Sub '' pc 55965 (src/gen/perl6-grammar.pir:20172) (src/Perl6/Grammar.nqp:774)
called from Sub 'comp_unit' pc 54954 (src/gen/perl6-grammar.pir:19753) (src/Perl6/Grammar.nqp:704)
called from Sub 'TOP' pc 22129 (src/gen/perl6-grammar.pir:8399) (src/Perl6/Grammar.nqp:336)
called from Sub 'parse' pc 20289 (src/stage2/QRegex.pir:8139) (src/stage2/QRegex.nqp:1193)
called from Sub 'parse' pc 33728 (src/stage2/gen/NQPHLL.pir:13306) (src/stage2/gen/NQPHLL.nqp:1413)
called from Sub '' pc 33128 (src/stage2/gen/NQPHLL.pir:13078) (src/stage2/gen/NQPHLL.nqp:1368)
called from Sub 'compile' pc 32906 (src/stage2/gen/NQPHLL.pir:12989) (src/stage2/gen/NQPHLL.nqp:1360)
called from Sub 'eval' pc 28463 (src/stage2/gen/NQPHLL.pir:11130) (src/stage2/gen/NQPHLL.nqp:1118)
called from Sub 'evalfiles' pc 31847 (src/stage2/gen/NQPHLL.pir:12559) (src/stage2/gen/NQPHLL.nqp:1327)
called from Sub 'command_eval' pc 30589 (src/stage2/gen/NQPHLL.pir:12064) (src/stage2/gen/NQPHLL.nqp:1257)
called from Sub 'command_eval' pc 369 (src/gen/perl6-compiler.pir:194) (src/Perl6/Compiler.nqp:17)
called from Sub 'command_line' pc 29612 (src/stage2/gen/NQPHLL.pir:11659) (src/stage2/gen/NQPHLL.nqp:1207)
called from Sub 'MAIN' pc 362 (src/gen/perl6.pir:141) (src/main.nqp src/gen/main-version.nqp:41)
called from Sub '' pc 77 (src/gen/perl6.pir:56) (src/main.nqp src/gen/main-version.nqp:1)
called from Sub '' pc 1127 (src/gen/perl6.pir:404) (src/main.nqp src/gen/main-version.nqp:52)
make: *** [RESTRICTED.setting.pbc] Error 1
masak@mutex ~/ours/rakudo $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment