Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fakexecutable is not working anymore in latest rakudo/parrot #1018

Closed
p6rt opened this issue May 25, 2009 · 9 comments
Closed

Fakexecutable is not working anymore in latest rakudo/parrot #1018

p6rt opened this issue May 25, 2009 · 9 comments

Comments

@p6rt
Copy link

p6rt commented May 25, 2009

Migrated from rt.perl.org#65994 (status was 'resolved')

Searchable as RT65994$

@p6rt
Copy link
Author

p6rt commented May 25, 2009

From @azawawi

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)

@p6rt
Copy link
Author

p6rt commented Jul 27, 2010

From @coke

On Mon May 25 14​:16​:52 2009, ahmadz wrote​:

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)

Sorry for the long delay in replying.

Can you duplicate this issue with a recent rakudo, e.g. the "Atlanta"
release?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 27, 2010

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @azawawi

On Tue Jul 27 14​:25​:47 2010, coke wrote​:

On Mon May 25 14​:16​:52 2009, ahmadz wrote​:

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)

Sorry for the long delay in replying.

Can you duplicate this issue with a recent rakudo, e.g. the "Atlanta"
release?

Better late than never :)

I tried it on the latest in parrot_install and rakudo's parent folder
and it now fails on the second step​:

parrot\parrot -o hello.pbc hello.pir
error​:imcc​:syntax error, unexpected PREG, expecting '(' ('$P67')
  in file 'hello.pir' line 36
error​:imcc​:syntax error, unexpected PREG, expecting '(' ('$P69')
  in file 'hello.pir' line 40
error​:imcc​:syntax error, unexpected PREG, expecting '(' ('$P71')
  in file 'hello.pir' line 44
error​:imcc​:syntax error, unexpected PREG, expecting '(' ('$P1')
  in file 'hello.pir' line 64
error​:imcc​:syntax error ... somewhere
  in file 'hello.pir' line 103

Thanks,
Ahmad M. Zawawi (azawawi)

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @pmichaud

Now working in 51cc37​:

pmichaud@​plum​:~/rakudo$ ./perl6 --target=PIR hello.p6 >hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/parrot -o hello.pbc hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/pbc_to_exe hello.pbc
cc -o hello.o -I/home/pmichaud/rakudo/parrot_install/include/2.6.0-devel
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -pipe -fstack-protector
-I/usr/local/include -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 -c hello.c
Compiled​: hello.o
cc -o hello hello.o
/home/pmichaud/rakudo/parrot_install/lib/2.6.0-devel/parrot_config.o
-Wl,-rpath=/home/pmichaud/rakudo/parrot_install/lib
-L/home/pmichaud/rakudo/parrot_install/lib -lparrot -Wl,-E
-fstack-protector -L/usr/local/lib -Wl,-E -ldl -lm -lpthread -lcrypt
-lrt -lreadline -lm -L/usr/lib -licuuc -licudata -lm
Linked​: hello
pmichaud@​plum​:~/rakudo$ ./perl6 hello.p6
Hello, world!
pmichaud@​plum​:~/rakudo$ ./hello
Hello, world!
pmichaud@​plum​:~/rakudo$

Note that this requires an installed rakudo.

Pm

1 similar comment
@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @pmichaud

Now working in 51cc37​:

pmichaud@​plum​:~/rakudo$ ./perl6 --target=PIR hello.p6 >hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/parrot -o hello.pbc hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/pbc_to_exe hello.pbc
cc -o hello.o -I/home/pmichaud/rakudo/parrot_install/include/2.6.0-devel
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -pipe -fstack-protector
-I/usr/local/include -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 -c hello.c
Compiled​: hello.o
cc -o hello hello.o
/home/pmichaud/rakudo/parrot_install/lib/2.6.0-devel/parrot_config.o
-Wl,-rpath=/home/pmichaud/rakudo/parrot_install/lib
-L/home/pmichaud/rakudo/parrot_install/lib -lparrot -Wl,-E
-fstack-protector -L/usr/local/lib -Wl,-E -ldl -lm -lpthread -lcrypt
-lrt -lreadline -lm -L/usr/lib -licuuc -licudata -lm
Linked​: hello
pmichaud@​plum​:~/rakudo$ ./perl6 hello.p6
Hello, world!
pmichaud@​plum​:~/rakudo$ ./hello
Hello, world!
pmichaud@​plum​:~/rakudo$

Note that this requires an installed rakudo.

Pm

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

@pmichaud - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 3, 2010
@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @pmichaud

Now working in 51cc37​:

pmichaud@​plum​:~/rakudo$ ./perl6 --target=PIR hello.p6 >hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/parrot -o hello.pbc hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/pbc_to_exe hello.pbc
cc -o hello.o -I/home/pmichaud/rakudo/parrot_install/include/2.6.0-devel
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -pipe -fstack-protector
-I/usr/local/include -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 -c hello.c
Compiled​: hello.o
cc -o hello hello.o
/home/pmichaud/rakudo/parrot_install/lib/2.6.0-devel/parrot_config.o
-Wl,-rpath=/home/pmichaud/rakudo/parrot_install/lib
-L/home/pmichaud/rakudo/parrot_install/lib -lparrot -Wl,-E
-fstack-protector -L/usr/local/lib -Wl,-E -ldl -lm -lpthread -lcrypt
-lrt -lreadline -lm -L/usr/lib -licuuc -licudata -lm
Linked​: hello
pmichaud@​plum​:~/rakudo$ ./perl6 hello.p6
Hello, world!
pmichaud@​plum​:~/rakudo$ ./hello
Hello, world!
pmichaud@​plum​:~/rakudo$

Note that this requires an installed rakudo.

Pm

1 similar comment
@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From @pmichaud

Now working in 51cc37​:

pmichaud@​plum​:~/rakudo$ ./perl6 --target=PIR hello.p6 >hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/parrot -o hello.pbc hello.pir
pmichaud@​plum​:~/rakudo$ parrot_install/bin/pbc_to_exe hello.pbc
cc -o hello.o -I/home/pmichaud/rakudo/parrot_install/include/2.6.0-devel
-D_REENTRANT -D_GNU_SOURCE -DDEBIAN -pipe -fstack-protector
-I/usr/local/include -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 -c hello.c
Compiled​: hello.o
cc -o hello hello.o
/home/pmichaud/rakudo/parrot_install/lib/2.6.0-devel/parrot_config.o
-Wl,-rpath=/home/pmichaud/rakudo/parrot_install/lib
-L/home/pmichaud/rakudo/parrot_install/lib -lparrot -Wl,-E
-fstack-protector -L/usr/local/lib -Wl,-E -ldl -lm -lpthread -lcrypt
-lrt -lreadline -lm -L/usr/lib -licuuc -licudata -lm
Linked​: hello
pmichaud@​plum​:~/rakudo$ ./perl6 hello.p6
Hello, world!
pmichaud@​plum​:~/rakudo$ ./hello
Hello, world!
pmichaud@​plum​:~/rakudo$

Note that this requires an installed rakudo.

Pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant