# New Ticket Created by Ahmad Zawawi
# Please include the string: [perl #65994]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=65994 >
This does not work anymore on the latest rakudo.
---- fakexecutable.bat
perl6 --target=PIR hello.p6 > hello.pir
parrot\parrot -o hello.pbc hello.pir
parrot\pbc_to_exe hello.pbc
dir hello.exe
perl6 hello.p6
hello.exe
---- output from fakexecutable.bat in latest rakudo
C:\tools\rakudo>perl6 --target=PIR hello.p6 1>hello.pir
C:\tools\rakudo>parrot\parrot -o hello.pbc hello.pir
C:\tools\rakudo>parrot\pbc_to_exe hello.pbc
gcc -o hello.o -I"C:/tools/rakudo/parrot\include" -DWIN32
-DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC
-DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE
-DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT
-falign-functions=16 -funit-at-a-time -maccumulate-outgoing-args -W
-Wall -Waggregate-return -Wcast-align -Wcast-qual -Wchar-subscripts
-Wcomment -Wdisabled-optimization -Wendif-labels -Wextra -Wformat
-Wformat-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k
-Wimplicit -Wimport -Winit-self -Winline -Winvalid-pch
-Wmissing-braces -Wno-missing-format-attribute -Wpacked -Wparentheses
-Wpointer-arith -Wreturn-type -Wsequence-point -Wno-shadow
-Wsign-compare -Wstrict-aliasing -Wstrict-aliasing=2 -Wswitch
-Wswitch-default -Wtrigraphs -Wundef -Wunknown-pragmas -Wno-unused
-Wwrite-strings -Wbad-function-cast -Wdeclaration-after-statement
-Wimplicit-function-declaration -Wimplicit-int -Wmain
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wnonnull
-c hello.c
Compiled: hello.o
gcc -o hello.exe "hello.o" C:/tools/rakudo/parrot\src\parrot_config.o
"C:/tools/rakudo/parrot\libparrot.dll" -lmsvcrt -lmoldname
-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32
-lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion
-lodbc32 -lodbccp32 -lgmp
Linked: hello.exe
C:\tools\rakudo>dir hello.exe
Volume in drive C has no label.
Volume Serial Number is 454A-3B37
Directory of C:\tools\rakudo
05/25/2009 11:42 PM 503,606 hello.exe
1 File(s) 503,606 bytes
0 Dir(s) 118,089,220,096 bytes free
C:\tools\rakudo>perl6 hello.p6
Hello world
C:\tools\rakudo>hello.exe
Class '[ 'parrot' ; 'Perl6MultiSub' ]' not found
current instr.: 'perl6;Perl6Role;!add_variant' pc 3638 (src\classes\Role.pir:42)
called from Sub '!create_simple_role' pc 20888 (src\builtins\guts.pir:1363)
called from Sub '' pc 3939 (src\classes\Abstraction.pir:15)
called from Sub '' pc 35 (hello.pir:25)
called from Sub '_block11' pc -1 ((unknown file):-1)