Skip to content

Lib191 #7

Merged
merged 5 commits into from May 15, 2011

2 participants

@lateau
lateau commented May 15, 2011

No description provided.

lateau added some commits May 5, 2011
@lateau lateau Integer#chr 4ea63c3
@lateau lateau Integer#ord a6751a2
@lateau lateau modify src/parser/actions.pm to return CardinalFloat instead Float:
  to keep ruby class inheritances
add new classes:
  CardinalNumeric
  CardinalFloat
add new methods:
  Integer#chr
  Integer#even
  Integer#odd
  Float#to_f
  Float#zero
fixme:
  Cardinal#round
    round does not return C<self>
    see ruby-1.9.2-p180/numeric.c:3188
    also src/classes/Integer.pir:326
c4f6029
@lateau lateau recover misfixed stuff
  Integer#ord
d7a30e6
@tadzik
Parrot Virtual Machine member
tadzik commented May 15, 2011

Doesn't build for me:

```┌─[tadzik@yavin4]─~/src/cardinal
└─[%]─> parrot setup.pir clean
unlink Test.pir
unlink src/gen_grammar.pir
unlink src/gen_actions.pir
unlink src/gen_builtins.pir
unlink cardinal.pbc
unlink installable_cardinal
unlink cardinal.c
unlink cardinal.o
┌─[tadzik@yavin4]─~/src/cardinal
└─[%]─> parrot setup.pir test
"/home/tadzik/src/rakudo/parrot_install/bin/parrot" /home/tadzik/src/rakudo/parrot_install/lib/3.3.0-devel/library/PGE/Perl6Grammar.pbc --output=src/gen_grammar.pir src/parser/grammar.pg
"/home/tadzik/src/rakudo/parrot_install/bin/parrot-nqp" --target=pir --output=src/gen_actions.pir src/parser/actions.pm
creat src/gen_builtins.pir
"/home/tadzik/src/rakudo/parrot_install/bin/parrot" -o cardinal.pbc cardinal.pir
"/home/tadzik/src/rakudo/parrot_install/bin/pbc_to_exe" cardinal.pbc --install && strip installable_cardinal
x86_64-pc-linux-gnu-gcc -o cardinal.o -I"/home/tadzik/src/rakudo/parrot_install/include/3.3.0-devel" -D_REENTRANT -D_GNU_SOURCE -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -DHASATTRIBUTE_HOT -DHASATTRIBUTE_COLD -DDISABLE_GC_DEBUG=1 -DNDEBUG -DHAS_GETTEXT -I/usr/lib64/libffi-3.0.10rc8/include -march=native -O2 -pipe -c cardinal.c
Compiled: cardinal.o
x86_64-pc-linux-gnu-gcc -o installable_cardinal "cardinal.o" "/home/tadzik/src/rakudo/parrot_install/lib/3.3.0-devel/parrot_config.o" -Wl,-rpath="/home/tadzik/src/rakudo/parrot_install/lib" -L/home/tadzik/src/rakudo/parrot_install/lib -lparrot -Wl,-E -Wl,-O1 -Wl,--as-needed -Wl,-E -lnsl -ldl -lm -lcrypt -lutil -lpthread -lrt -lgmp -lreadline -lffi -lpthread -ldl -lm -L/usr/lib64 -licuuc -licudata -lpthread -ldl -lm

Linked: installable_cardinal
"/home/tadzik/src/rakudo/parrot_install/bin/parrot" cardinal.pbc --target=pir --output=Test.pir Test.rb
Parent of 'CardinalInteger' is null
current instr.: 'parrot;P6metaclass;add_parent' pc 278 (runtime/parrot/library/P6object.pir:243)
called from Sub 'parrot;P6metaclass;register' pc 708 (runtime/parrot/library/P6object.pir:465)
called from Sub 'cardinal;CardinalInteger;onload' pc 3464 (src/builtins/op.pir:23)
called from Sub 'cardinal;cardinal;Compiler;main' pc 78924 (src/gen_grammar.pir:5351)
... call repeated 1 times
exit status: 256
command: "/home/tadzik/src/rakudo/parrot_install/bin/parrot" cardinal.pbc --target=pir --output=Test.pir Test.rb

current instr.: 'setup' pc 885 (runtime/parrot/library/distutils.pir:390)

thrown from:
called from Sub 'system' pc 57 (runtime/parrot/library/osutils.pir:42)
called from Sub 'postbuild' pc 357 (setup.pir:152)
called from Sub 'run_step' pc 939 (runtime/parrot/library/distutils.pir:418)
called from Sub '_test' pc 5893 (runtime/parrot/library/distutils.pir:2010)
called from Sub 'run_step' pc 939 (runtime/parrot/library/distutils.pir:418)
current instr.: 'setup' pc 885 (runtime/parrot/library/distutils.pir:390)```

No problems on master though

@lateau
lateau commented May 15, 2011

thanks tadzik.
I did only check this commits with rake. I have modified setup.pir and can be builded without err now.

@tadzik
Parrot Virtual Machine member
tadzik commented May 15, 2011

Okay, now it builds fine for me and the tests pass. Good job, merging.

@tadzik tadzik closed this May 15, 2011
@tadzik tadzik reopened this May 15, 2011
@tadzik tadzik merged commit 6dc91ec into parrot:master May 15, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.